OSDN Git Service

android-x86/external-webkit.git
15 years agoMerge change 1772
Android (Google) Code Review [Mon, 18 May 2009 20:31:56 +0000 (13:31 -0700)]
Merge change 1772

* changes:
  Apply fixes for webkit bugs 24776 and 25616 to add ENABLE(DATABASE) guards. This makes the macro work, so ENABLE_DATABASE can be toggled in config.h and the JavaScriptCore.derived.mk or V8Bindings.derived.mk.

15 years agoMerge change 1884
Android (Google) Code Review [Mon, 18 May 2009 18:29:30 +0000 (11:29 -0700)]
Merge change 1884

* changes:
  skip rectangular focus ring check in browser if no picture

15 years agoskip rectangular focus ring check in browser if no picture
Cary Clark [Mon, 18 May 2009 18:22:48 +0000 (14:22 -0400)]
skip rectangular focus ring check in browser if no picture

15 years agofix browser monkey crash; add null check
Cary Clark [Mon, 18 May 2009 17:51:42 +0000 (13:51 -0400)]
fix browser monkey crash; add null check

http://b/issue?id=1742161

15 years agoMerge change 1872
Android (Google) Code Review [Mon, 18 May 2009 16:40:55 +0000 (09:40 -0700)]
Merge change 1872

* changes:
  Fix a valgrind complaint.

15 years agoFix a valgrind complaint.
Patrick Scott [Mon, 18 May 2009 16:34:53 +0000 (12:34 -0400)]
Fix a valgrind complaint.

15 years agoTrackball moves UI focus, but leaves DOM focus unchanged
Cary Clark [Fri, 15 May 2009 12:31:15 +0000 (08:31 -0400)]
Trackball moves UI focus, but leaves DOM focus unchanged

remove unused commonKitFocus function in WebView

leave recompute focus position for now, but don't
look at node index as a condition to abort fixOutOfDateFocus()

15 years agoMerge change 1684
Android (Google) Code Review [Mon, 18 May 2009 14:07:57 +0000 (07:07 -0700)]
Merge change 1684

* changes:
  remove printf error in private browser nav cache debug

15 years agoApply fixes for webkit bugs 24776 and 25616 to add ENABLE(DATABASE) guards. This...
Ben Murdoch [Wed, 13 May 2009 16:58:43 +0000 (17:58 +0100)]
Apply fixes for webkit bugs 24776 and 25616 to add ENABLE(DATABASE) guards. This makes the macro work, so ENABLE_DATABASE can be toggled in config.h and the JavaScriptCore.derived.mk or V8Bindings.derived.mk.

15 years agoremove printf error in private browser nav cache debug
Cary Clark [Thu, 14 May 2009 21:03:03 +0000 (17:03 -0400)]
remove printf error in private browser nav cache debug

15 years agoMove Browser test plugin from webkit project to development project.
Grace Kloba [Thu, 14 May 2009 19:48:20 +0000 (12:48 -0700)]
Move Browser test plugin from webkit project to development project.

Change how we set plugin path as we can support more than one path now.

15 years agoremove isClick parameter in browser touch event handler
Cary Clark [Thu, 14 May 2009 14:07:26 +0000 (10:07 -0400)]
remove isClick parameter in browser touch event handler

isClick is always set to true by the callers, so remove
it and simplify the code
(http://b/issue?id=1666780; see also change in framework/base)

15 years agoMerge change 1562
Android (Google) Code Review [Wed, 13 May 2009 19:53:31 +0000 (12:53 -0700)]
Merge change 1562

* changes:
  Remove uncommented makefile conditional. Fix an assert condition.

15 years agoRemove uncommented makefile conditional. Fix an assert condition.
Patrick Scott [Wed, 13 May 2009 19:27:26 +0000 (15:27 -0400)]
Remove uncommented makefile conditional. Fix an assert condition.

15 years agoMerge change 1541
Android (Google) Code Review [Wed, 13 May 2009 18:04:54 +0000 (11:04 -0700)]
Merge change 1541

* changes:
  add test for plugin api for paths (and some fixes)

15 years agoMerge change 1550
Android (Google) Code Review [Wed, 13 May 2009 18:02:23 +0000 (11:02 -0700)]
Merge change 1550

* changes:
  use one rectangle for browser focus ring

15 years agouse one rectangle for browser focus ring
Cary Clark [Wed, 13 May 2009 16:50:01 +0000 (12:50 -0400)]
use one rectangle for browser focus ring

Check to see if the potentially larger hit-test bounds
can be used in place of the normal bounds, or if the
normal bounds can be used in place of the individual
text bounds.

Construct a region out of the individual focus ring
rectangles, then see if any text is drawn inside the
bounds but outside of the focus ring. If not, use one
rectangle instead of the rings.

15 years agoadd test for plugin api for paths (and some fixes)
Mike Reed [Wed, 13 May 2009 15:24:27 +0000 (11:24 -0400)]
add test for plugin api for paths (and some fixes)

15 years agoMerge change 1412
Android (Google) Code Review [Tue, 12 May 2009 20:32:16 +0000 (13:32 -0700)]
Merge change 1412

* changes:
  Fix #1833296. Initialize m_blockNotifyFocus as releaseFrameCache can be called before sendFinalFocus which leads it to uninitialized.

15 years agoFix #1833296. Initialize m_blockNotifyFocus as releaseFrameCache can be called before...
Grace Kloba [Tue, 12 May 2009 17:41:43 +0000 (10:41 -0700)]
Fix #1833296. Initialize m_blockNotifyFocus as releaseFrameCache can be called before sendFinalFocus which leads it to uninitialized.

15 years agoFix a warning with an Android edit.
Patrick Scott [Tue, 12 May 2009 17:27:25 +0000 (13:27 -0400)]
Fix a warning with an Android edit.

15 years agoFix #1835655. Hold a GlobalRef for WeakReferenceClass as it is used as a global variable.
Grace Kloba [Tue, 12 May 2009 18:03:36 +0000 (11:03 -0700)]
Fix #1835655. Hold a GlobalRef for WeakReferenceClass as it is used as a global variable.

15 years agoShave ~60k off of libwebcore.so and make webcore_test always build.
Patrick Scott [Tue, 12 May 2009 15:43:16 +0000 (11:43 -0400)]
Shave ~60k off of libwebcore.so and make webcore_test always build.

Build libwebcore as a static library first. Then build it as a shared library
using the jni entry point as the single source file. This strips uneeded code
out of the final library.

Have webcore_test link against the static library so that the symbols are all
visible. Update webcore_test to link against the new webkit drop as well.

Rearrange the main makefile to create WEBKIT_* variables that a sub-makefile
like webcore_test can use to define includes, cflags, and libraries. Manually
add a dependency on the generated webkit source files.

Verified that svg and v8 work as well as the simulator.

15 years agomerged d15fb80, resolved conflicts
Guang Zhu [Tue, 12 May 2009 01:10:15 +0000 (18:10 -0700)]
merged d15fb80, resolved conflicts

15 years agoAdd WebStorage C++ implementation needed for the Browser UI
Nicolas Roard [Thu, 7 May 2009 22:23:56 +0000 (23:23 +0100)]
Add WebStorage C++ implementation needed for the Browser UI

15 years agoMerge change 1323
Android (Google) Code Review [Mon, 11 May 2009 17:11:34 +0000 (10:11 -0700)]
Merge change 1323

* changes:
  Revert the POST content-length change as the fix in Java side is a better fix.

15 years agoRevert the POST content-length change as the fix in Java side is a better fix.
Grace Kloba [Sat, 9 May 2009 01:39:03 +0000 (18:39 -0700)]
Revert the POST content-length change as the fix in Java side is a better fix.

15 years agoAdded JNI binding for new onJsTimeout callback
Guang Zhu [Fri, 8 May 2009 22:54:24 +0000 (15:54 -0700)]
Added JNI binding for new onJsTimeout callback

15 years agoMerge change 1252
Android (Google) Code Review [Fri, 8 May 2009 16:56:25 +0000 (09:56 -0700)]
Merge change 1252

* changes:
  Temp turn off POST content-length as it breaks the Google log in page.

15 years agoTemp turn off POST content-length as it breaks the Google log in page.
Grace Kloba [Fri, 8 May 2009 16:55:10 +0000 (09:55 -0700)]
Temp turn off POST content-length as it breaks the Google log in page.

15 years agoDo not store invalid URLs in the database.
Leon Scroggins [Fri, 8 May 2009 15:41:09 +0000 (11:41 -0400)]
Do not store invalid URLs in the database.

Partial fix for issue 1364749: awesome bar is storing 404s.  When webkit
tells us to update the global history, do not do it if the we did not
reach a web page.

15 years agoMerge change 940
Android (Google) Code Review [Fri, 8 May 2009 13:52:16 +0000 (06:52 -0700)]
Merge change 940

* changes:
  add path apis for plugins. also add drawLine to canvas

15 years agoMerge change 1119
Android (Google) Code Review [Thu, 7 May 2009 16:00:38 +0000 (09:00 -0700)]
Merge change 1119

* changes:
  Fix SVG build with V8.

15 years agoFix SVG build with V8.
Feng Qian [Thu, 7 May 2009 02:13:31 +0000 (19:13 -0700)]
Fix SVG build with V8.

Because some SVG anomation source files depend on generic sort functions,
we cannot compile them. Add as ENABLE_SVG_ANIMATION build flag to disable
SVG Animation.

15 years agoFix 1807059. For POST, even there is no formdata, we need to add "content-length...
Grace Kloba [Thu, 7 May 2009 01:26:45 +0000 (18:26 -0700)]
Fix 1807059. For POST, even there is no formdata, we need to add "content-length" in the http header. This is confirmed with Mac and qt port.

15 years agoMerge change 1080
Android (Google) Code Review [Wed, 6 May 2009 19:10:04 +0000 (12:10 -0700)]
Merge change 1080

* changes:
  Make <select> elements' text always visible.

15 years agoMerge change 999
Android (Google) Code Review [Wed, 6 May 2009 18:44:56 +0000 (11:44 -0700)]
Merge change 999

* changes:
  Fix memory leaks in Java binding and some code cleanup.

15 years agoFix memory leaks in Java binding and some code cleanup.
Feng Qian [Tue, 5 May 2009 18:52:10 +0000 (11:52 -0700)]
Fix memory leaks in Java binding and some code cleanup.

WebCoreFrameBridge.cpp needs to release NPObject to get proper ref count
because the way V8 binding works.

JObjectWraper holds a weak reference to the Java object to break cycles.

Also fix ScriptController::haveWindowShell to match KJS build, this should be
upstreamed to Chrome project (I am going to do it).

The binding does not use weak reference to hold Java objects, currently
it does not create cycles between Java and JavaScript objects. I didn't see
it is an issue here. A future work is to add logging/debugging code to
make sure global Java references are dropped.

15 years agoMake <select> elements' text always visible.
Leon Scroggins [Wed, 6 May 2009 17:52:08 +0000 (13:52 -0400)]
Make <select> elements' text always visible.

Fix for buganizer issue 1377239.  The <select> element's text was not visible on this page because it was the same color as our treatment.  With this change, we now mimic the Mac's behavior and make the text black for enabled elements and dark gray for disabled elements.

15 years agoMerge change 983
Android (Google) Code Review [Wed, 6 May 2009 15:40:05 +0000 (08:40 -0700)]
Merge change 983

* changes:
  Fix an issue with the null plugin drawing even when there is fallback content.

15 years agoMerge change 1043
Android (Google) Code Review [Wed, 6 May 2009 05:48:41 +0000 (22:48 -0700)]
Merge change 1043

* changes:
  Workaround GCC 4.3.1 issue.

15 years agoWorkaround GCC 4.3.1 issue.
Feng Qian [Wed, 6 May 2009 03:21:33 +0000 (20:21 -0700)]
Workaround GCC 4.3.1 issue.

-fno-tree-sink disable the buggy optimization and with this option, V8 works fine. I suggested Doug Kwan to add the flag to the default build system.

15 years agoMerge change 982
Android (Google) Code Review [Tue, 5 May 2009 19:14:08 +0000 (12:14 -0700)]
Merge change 982

* changes:
  Enable Database API V8 bindings.

15 years agoMerge change 987
Android (Google) Code Review [Tue, 5 May 2009 19:01:30 +0000 (12:01 -0700)]
Merge change 987

* changes:
  Remove unused LOW_BANDWIDTH defines. The Cache.cpp change is from webkit.org.

15 years agoMerge change 894
Android (Google) Code Review [Tue, 5 May 2009 17:25:51 +0000 (10:25 -0700)]
Merge change 894

* changes:
  Pick up npruntime.cpp fix from Chrome tree.

15 years agoRemove unused LOW_BANDWIDTH defines. The Cache.cpp change is from webkit.org.
Patrick Scott [Tue, 5 May 2009 15:21:38 +0000 (11:21 -0400)]
Remove unused LOW_BANDWIDTH defines. The Cache.cpp change is from webkit.org.

15 years agoMerge change 984
Android (Google) Code Review [Tue, 5 May 2009 14:44:13 +0000 (07:44 -0700)]
Merge change 984

* changes:
  Fix an assert around solid colors.

15 years agoEnable Database API V8 bindings.
Ben Murdoch [Tue, 5 May 2009 12:09:04 +0000 (13:09 +0100)]
Enable Database API V8 bindings.

15 years agoFix an assert around solid colors.
Patrick Scott [Tue, 5 May 2009 13:27:35 +0000 (09:27 -0400)]
Fix an assert around solid colors.

15 years agoFix an issue with the null plugin drawing even when there is fallback content.
Patrick Scott [Tue, 5 May 2009 12:44:22 +0000 (08:44 -0400)]
Fix an issue with the null plugin drawing even when there is fallback content.

Use similar logic in ObjectContentType as in the Window's port. Still use
ObjectContentOtherPlugin so that <object> tags work properly (Mike's test
plugin).

Fix a build warning in PlatformGraphicsContext.h as well.

15 years agoFix double-definition of jsc_pcre_default_tables.
Jack Palevich [Tue, 5 May 2009 01:13:16 +0000 (18:13 -0700)]
Fix double-definition of jsc_pcre_default_tables.

The generated file chartables.c was being both explicitly #included inside
of pcre_tables.cpp and also added to LOCAL_GENERATED_SOURCES. This lead to
a duplicate symbol definition.

The reason this ever worked was that the Android build system
accidentally ignored ".c" files in  LOCAL_GENERATED_SOURCES. Now that the
.c files are being compiled the problem is exposed.

Fixed by simply not adding chartables.c to LOCAL_GENERATED_SOURCES.

15 years agoadd path apis for plugins. also add drawLine to canvas
Mike Reed [Mon, 4 May 2009 19:34:23 +0000 (15:34 -0400)]
add path apis for plugins. also add drawLine to canvas

15 years agoMerge change 871
Android (Google) Code Review [Mon, 4 May 2009 14:05:39 +0000 (07:05 -0700)]
Merge change 871

* changes:
  Remove unneeded SKIA_SGL platform flag

15 years agoMerge change 928
Android (Google) Code Review [Mon, 4 May 2009 13:22:07 +0000 (06:22 -0700)]
Merge change 928

* changes:
  webcore pointer may be null in svg

15 years agowebcore pointer may be null in svg
Cary Clark [Mon, 4 May 2009 12:55:10 +0000 (08:55 -0400)]
webcore pointer may be null in svg

Fix crash during frame deconstruction; the scrollview used
by svg may have a null pointer to webcore.

15 years agoPick up npruntime.cpp fix from Chrome tree.
Feng Qian [Fri, 1 May 2009 20:11:53 +0000 (13:11 -0700)]
Pick up npruntime.cpp fix from Chrome tree.

Chrome fix is here. http://codereview.chromium.org/100242
and the description:

http://code.google.com/p/chromium/issues/detail?id=11264

Integer 0 and -1 have special meaning in HashMap<int, ...>, both cannot be used
as key.
Specially filter out these two keys.

15 years agoMerge change 885
Android (Google) Code Review [Fri, 1 May 2009 19:35:06 +0000 (12:35 -0700)]
Merge change 885

* changes:
  add svg support to v8 experiment

15 years agoadd svg support to v8 experiment
Cary Clark [Fri, 1 May 2009 15:43:15 +0000 (11:43 -0400)]
add svg support to v8 experiment

15 years agoMerge change 866
Android (Google) Code Review [Fri, 1 May 2009 16:24:10 +0000 (09:24 -0700)]
Merge change 866

* changes:
  Add plugin plumbing with V8 binding.

15 years agoadd additional svg support and compliance
Cary Clark [Thu, 30 Apr 2009 13:31:31 +0000 (09:31 -0400)]
add additional svg support and compliance

turn on SVG_FONTS, SVG_AS_IMAGE, SVG_FILTERS, SVG_FOREIGN_OBJECT, SVG_USE

getWebCore may return null for SVG ScrollView
add FontPlatformData.size()
add more stl sort interfaces

15 years agoRemove unneeded SKIA_SGL platform flag
Mike Reed [Fri, 1 May 2009 12:09:04 +0000 (08:09 -0400)]
Remove unneeded SKIA_SGL platform flag

15 years agoAdd plugin plumbing with V8 binding.
Feng Qian [Fri, 1 May 2009 07:44:46 +0000 (00:44 -0700)]
Add plugin plumbing with V8 binding.

Hook up plugin with V8 binding. You can take the patch and play on your local
machine. It is almost there, I need do more testing.

15 years agoImplement Java <-> JS bindings.
Feng Qian [Fri, 1 May 2009 03:00:54 +0000 (20:00 -0700)]
Implement Java <-> JS bindings.

Implemented invoke Java methods and fecth Java fields from JavaScript.
Java-side access native-JS objects is not supported. JavaScript-side
modification of JS objects is not supported.

The implementation uses NPAPI, which is simple, but less efficient.
Java abstraction is very much copied from original WebCore/bridge/jni,
except all JSC bindings are replaced by NPAPI.

15 years agoMerge change 801
Android (Google) Code Review [Thu, 30 Apr 2009 17:14:05 +0000 (10:14 -0700)]
Merge change 801

* changes:
  Pick up fix in npruntime.cpp.

15 years agoPick up fix in npruntime.cpp.
Feng Qian [Thu, 30 Apr 2009 16:34:00 +0000 (09:34 -0700)]
Pick up fix in npruntime.cpp.

Chrome side fix is waiting for review, tested already.
This should allow us to debug Gears issue.

15 years agoMerges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.
Ben Murdoch [Wed, 22 Apr 2009 11:36:50 +0000 (12:36 +0100)]
Merges p9 CLs 144856 and 145055 to GIT to enable the Database API in the browser.

15 years agoam caa8647: Merge change 598 into donut
android-build SharedAccount [Thu, 30 Apr 2009 01:57:34 +0000 (18:57 -0700)]
am caa8647: Merge change 598 into donut

15 years agoam 870c405: Merge change 587 into donut
Android (Google) Code Review [Thu, 30 Apr 2009 01:55:05 +0000 (18:55 -0700)]
am 870c405: Merge change 587 into donut

Merge commit '870c40582102e848fd71f82a9e65e7dbd7b8835c'

* commit '870c40582102e848fd71f82a9e65e7dbd7b8835c':
  Move imagecache into android_runtime from browser

15 years agoam b23d00d: Respect globalAlpha (fill, stroke, images)
android-build SharedAccount [Thu, 30 Apr 2009 01:54:44 +0000 (18:54 -0700)]
am b23d00d: Respect globalAlpha (fill, stroke, images)

15 years agoMerge commit 'goog/master-v8droid' into HEAD
Feng Qian [Wed, 29 Apr 2009 20:44:39 +0000 (13:44 -0700)]
Merge commit 'goog/master-v8droid' into HEAD

The CL imports V8 source from trunk, and V8 binding code from Chromium,
and small changes from future WebKit revision.

To enable V8, add ENABLE_V8 := true in buildspec.mk.

15 years agoMerge commit 'goog/master' into merge_webkit_from_master
Feng Qian [Wed, 29 Apr 2009 20:07:39 +0000 (13:07 -0700)]
Merge commit 'goog/master' into merge_webkit_from_master

15 years agoChagne JS_ENGINE to ENABLE_V8.
Feng Qian [Wed, 29 Apr 2009 18:31:40 +0000 (11:31 -0700)]
Chagne JS_ENGINE to ENABLE_V8.

To enable V8, set ENABLE_V8 := true in the buildspec.mk in the home directory.
Also fixed one SVG build issue in JSC build case.

15 years agoAdd first round JNI bindings.
Feng Qian [Wed, 29 Apr 2009 18:05:23 +0000 (11:05 -0700)]
Add first round JNI bindings.

Not compiling yet, and not enabled in the build script. Get it checked it, and
will merge the branch back to master and work there.

15 years agoshare xfermode and color routines with chrome port
Mike Reed [Wed, 29 Apr 2009 14:47:10 +0000 (10:47 -0400)]
share xfermode and color routines with chrome port

Besides sharing those routines in SkiaUtils.cpp, also remove our (now redundant)
android_setrect, etc. calls, since the type-conversion extras we added earlier
take care of this by using constructors.

15 years agoMerge change 671
Android (Google) Code Review [Wed, 29 Apr 2009 12:36:44 +0000 (05:36 -0700)]
Merge change 671

* changes:
  fix line dashing and patterns in svg

15 years agofix line dashing and patterns in svg
Cary Clark [Tue, 28 Apr 2009 21:17:42 +0000 (17:17 -0400)]
fix line dashing and patterns in svg

remove unused methods in PlatformGraphicsContext.h
make PlatformGraphicsContext constructors more similar
set local matrix in pattern
set dash path effect in graphics context

15 years agoFirst cut at sharing graphics code with chrome
Mike Reed [Tue, 28 Apr 2009 20:37:06 +0000 (16:37 -0400)]
First cut at sharing graphics code with chrome

Introduce (short lived I hope) platform SKIA_SGL, signifying that this code
is used by both platforms (SKIA) and (SGL). This change is meant to be the
foundation for more significant sharing later (e.g. TransformationMatrix,
Pattern, Gradient, etc.)

15 years agoMerge change 598 into donut
Android (Google) Code Review [Tue, 28 Apr 2009 19:29:22 +0000 (12:29 -0700)]
Merge change 598 into donut

* changes:
  Remove call to purge image-cache. Now handled by ActivityThread

15 years agoMerge change 587 into donut
Android (Google) Code Review [Tue, 28 Apr 2009 12:17:37 +0000 (05:17 -0700)]
Merge change 587 into donut

* changes:
  Move imagecache into android_runtime from browser

15 years agofix svg radial gradients
Cary Clark [Mon, 27 Apr 2009 20:43:03 +0000 (16:43 -0400)]
fix svg radial gradients

Webkit has two radial gradients; the one describing the focus
length isn't used by SVG, so if it's zero, use the other one.

http://b/issue?id=1794403

15 years agoRemove call to purge image-cache. Now handled by ActivityThread
Mike Reed [Mon, 27 Apr 2009 18:33:09 +0000 (14:33 -0400)]
Remove call to purge image-cache. Now handled by ActivityThread

15 years agoRespect globalAlpha (fill, stroke, images)
Mike Reed [Mon, 27 Apr 2009 17:06:14 +0000 (13:06 -0400)]
Respect globalAlpha (fill, stroke, images)

15 years agoMove imagecache into android_runtime from browser
Mike Reed [Mon, 27 Apr 2009 15:41:25 +0000 (11:41 -0400)]
Move imagecache into android_runtime from browser

Now that Java is also using ashmem and globalpool for images, move the management
of the globalpool budget into android_runtime

15 years agoFix the threading issue.
Feng Qian [Sat, 25 Apr 2009 00:10:18 +0000 (17:10 -0700)]
Fix the threading issue.

Make a new thread initialization V8::initializeThreading similar to JSC::initializeThreading.

15 years agoMake WebCore built with V8.
Feng Qian [Fri, 24 Apr 2009 23:01:03 +0000 (16:01 -0700)]
Make WebCore built with V8.

Picked up several new files from Chrome port.

15 years agoBuild V8 as a static library.
Feng Qian [Fri, 24 Apr 2009 22:55:58 +0000 (15:55 -0700)]
Build V8 as a static library.

To switch between jsc and v8, one needs to edit webkit/Android.mk to change the value of JS_ENGINE, make sure no white space after 'jsc' or 'v8'.

15 years ago(1 of 2) add call to determine if picture is ready
Cary Clark [Fri, 24 Apr 2009 13:33:29 +0000 (09:33 -0400)]
(1 of 2) add call to determine if picture is ready

This is a half-checkin. The other half is in frameworks/base.

Add WebViewCore::pictureReady(). This uses the last reported
progress when the picture was recorded, and checks to see if
the picture itself is blank. The caller can use this to show
a cached picture or switch to a new one.

http://b/issue?id=1802703

15 years agoFix some unexpected cases of image maps.
Leon Scroggins [Wed, 22 Apr 2009 15:47:59 +0000 (11:47 -0400)]
Fix some unexpected cases of image maps.

Fix for buganizer issue 1800613: Image map not accessible.  We were attempting to cache associtations of <area> elements to their RenderImages so we would not have to search for them.  However, we were storing them in CacheBuilder.  When we search for them, we search in the <area> element's frame, even though when we built the cache, we stored it in the main frame.  Another issue arose on a page where <area> elements show up before their RenderImages.  In this case, we were storing an empty rectangle for the bounds, and caching the associations afterwards, when it was too late.  In order to clean up/simplify things, while fixing both bugs, I have changed validNode into a static function which takes the starting Frame as a parameter.  Any time we need to find the rectangle of an <area> element, we have to traverse the DOM to find its associated RenderImage.  This may be slower, but it will always get the correct answer.  In the future, we may need to investigate a universal location for caching the associations for better performance.

15 years agokeep webkit focus in sync with ui cache for text fields
Cary Clark [Wed, 22 Apr 2009 19:09:18 +0000 (15:09 -0400)]
keep webkit focus in sync with ui cache for text fields

If WebViewCore::sendFinalFocus is called from the UI thread,
postpone calls to WebViewCore::notifyFocusSet until after
the focus is set.

Don't allow WebViewCore::setSelection or
WebViewCore::passToJs to change the webkit
focus.

In WebView::notifyFocusSet, read the cache after it has been
updated.

In WebView::focusIsTextArea and WebView::nativeFindAll,
don't allow the new frame cache to fix the focus.

If CachedFrame::setFocus has already set the focus, don't
recompute its position.

Add/revise debugging.

15 years agoMerge change 295
Android (Google) Code Review [Thu, 23 Apr 2009 13:09:53 +0000 (06:09 -0700)]
Merge change 295

* changes:
  remove obsolete browser nav cache debug dump

15 years agoMerge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 01:33:16 +0000 (18:33 -0700)]
Merge donut into master

15 years agomerge cupcake into donut
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:56:58 +0000 (17:56 -0700)]
merge cupcake into donut

15 years agoMerge donut into master
Jean-Baptiste Queru [Thu, 23 Apr 2009 00:12:31 +0000 (17:12 -0700)]
Merge donut into master

15 years agoAdd V8 binding make file.
Feng Qian [Wed, 22 Apr 2009 18:54:42 +0000 (11:54 -0700)]
Add V8 binding make file.

Add CHROME_REVISION file to remember which Chrome revision sync'ed to.

15 years agoCopy V8DOMMap.h and V8DOMMap.cpp from future WebKit merge.
Feng Qian [Wed, 22 Apr 2009 18:51:33 +0000 (11:51 -0700)]
Copy V8DOMMap.h and V8DOMMap.cpp from future WebKit merge.

These two files will be removed in our next WebKit merge after r42135.

15 years agoAdding WTF to Vector as both Android and WTF has Vector<>.
Grace Kloba [Wed, 22 Apr 2009 16:45:00 +0000 (09:45 -0700)]
Adding WTF to Vector as both Android and WTF has Vector<>.

15 years agoSmall fix of JSC binding makefiles.
Feng Qian [Wed, 22 Apr 2009 18:40:34 +0000 (11:40 -0700)]
Small fix of JSC binding makefiles.

15 years agoMove WTF files into Android.wtf.mk
Feng Qian [Tue, 21 Apr 2009 21:39:59 +0000 (14:39 -0700)]
Move WTF files into Android.wtf.mk

This file can be shared by both JavaScriptCore and V8 builds.

15 years agoImport V8binding code from Chromium tree.
Feng Qian [Tue, 21 Apr 2009 19:03:24 +0000 (12:03 -0700)]
Import V8binding code from Chromium tree.

Sync'ed at Chromium trunk r12846.
http://src.chromium.org/viewvc/chrome?view=rev&revision=12846

15 years agoSeparate JSC and JSC binding from WebCore build file.
Feng Qian [Tue, 21 Apr 2009 00:23:12 +0000 (17:23 -0700)]
Separate JSC and JSC binding from WebCore build file.

Introduce a flag JS_ENGINE, which can be set to 'jsc' or 'v8'. Currently only 'jsc' is working.