OSDN Git Service

android-x86/external-webkit.git
14 years agoMerge "Updates the use of weak references in the script-to-Java bridge for V8." into...
Steve Block [Fri, 8 Jan 2010 17:15:31 +0000 (09:15 -0800)]
Merge "Updates the use of weak references in the script-to-Java bridge for V8." into eclair-mr2

14 years agoUpdates the use of weak references in the script-to-Java bridge for V8.
Steve Block [Fri, 18 Dec 2009 12:28:23 +0000 (12:28 +0000)]
Updates the use of weak references in the script-to-Java bridge for V8.

Currently, V8 uses weak references to the Java object owned by JObjectWrapper.
This is in contrast to JSC, which uses strong references in JObjectWrapper.
However, for the special-case where JObjectWrapper is used in JavaInstance in
WebCoreFrameBridge, JSC uses WeakJavaInstance to swap the strong references for
weak references.

This change updates the V8 version of JObjectWrapper to use strong references
to match the JSC version. To maintain the weak reference behavior where
JObjectWrapper is used in JavaInstance in WebCoreFrameBridge, V8 now make use of
WeakJavaInstance too. This requires changes to jni_npobject to call the
necessary methods on JavaInstance to swap the references when the object is
accessed.

Change-Id: I3724d7e6437588feb0268a2670b02a93b52e54f0

14 years agoMerge "Updates V8 version of JavaInstance to use RefCounted, rather than implementing...
Steve Block [Fri, 8 Jan 2010 12:41:56 +0000 (04:41 -0800)]
Merge "Updates V8 version of JavaInstance to use RefCounted, rather than implementing custom ref and deref methods." into eclair-mr2

14 years agoIn motionUp, update the CachedHistory's mMouseBounds.
Leon Scroggins [Thu, 7 Jan 2010 20:19:19 +0000 (15:19 -0500)]
In motionUp, update the CachedHistory's mMouseBounds.

mMouseBounds is later used to determine the point of clicking.

Fixes http://b/issue?id=2313991

14 years agoremove unused jni interfaces
Cary Clark [Thu, 7 Jan 2010 16:49:50 +0000 (11:49 -0500)]
remove unused jni interfaces

companion change is in frameworks/base

14 years agoRequest <label> info only when accessing a textfield.
Leon Scroggins [Wed, 6 Jan 2010 22:06:11 +0000 (17:06 -0500)]
Request <label> info only when accessing a textfield.

Previously, we were storing the label info each time we build the
navigation cache.

Requires a change to frameworks/base.

14 years agoIn findBestHitAt, set x and y to the intersection of slop and cursor.
Leon Scroggins [Wed, 6 Jan 2010 15:49:08 +0000 (10:49 -0500)]
In findBestHitAt, set x and y to the intersection of slop and cursor.

Fixes http://b/issue?id=2201866

14 years agoStore label information to be used for hint text.
Leon Scroggins [Tue, 5 Jan 2010 15:56:57 +0000 (10:56 -0500)]
Store label information to be used for hint text.

Fix for http://b/issue?id=2331526

Requires a change to frameworks/base.

14 years agoRevert to ENABLE_ORIENTATION_EVENTS=1
Nicolas Roard [Mon, 4 Jan 2010 19:46:12 +0000 (19:46 +0000)]
Revert to ENABLE_ORIENTATION_EVENTS=1

14 years agowebkit layers support
Nicolas Roard [Mon, 4 Jan 2010 19:33:17 +0000 (19:33 +0000)]
webkit layers support

14 years agoMerge "If the DOM changes textfield focus, make the IME work properly." into eclair-mr2
Leon Scroggins [Mon, 4 Jan 2010 15:27:55 +0000 (07:27 -0800)]
Merge "If the DOM changes textfield focus, make the IME work properly." into eclair-mr2

14 years agoMerge "Cherry-picks a WebKit change to revert recent changes to String addition for...
Steve Block [Mon, 4 Jan 2010 15:20:25 +0000 (07:20 -0800)]
Merge "Cherry-picks a WebKit change to revert recent changes to String addition for JSC." into eclair-mr2

14 years agoCherry-picks a WebKit change to revert recent changes to String addition for JSC.
Steve Block [Mon, 4 Jan 2010 12:50:03 +0000 (12:50 +0000)]
Cherry-picks a WebKit change to revert recent changes to String addition for JSC.

WebKit change http://trac.webkit.org/changeset/51975 modified String addition in
JSC to use ropes. However, the change was incorrect, so was rolled back in
http://trac.webkit.org/changeset/51978.

The last WebKit merge was to revision r51976, so picked up the initial, broken
change only.

This change cherry-picks http://trac.webkit.org/changeset/51978 to revert the
original change.

Bug: 2336856
Change-Id: I7f48bce6a7f605779424ba0a7601524ab3a71990

14 years agoIf the DOM changes textfield focus, make the IME work properly.
Leon Scroggins [Tue, 15 Dec 2009 21:33:28 +0000 (16:33 -0500)]
If the DOM changes textfield focus, make the IME work properly.

Fix for http://b/issue?id=2219166

Requires a change to frameworks/base

Remove the old change to update the WebTextView when a key is pressed,
since the IME does not generate key events.  Instead, when the focus
changes, and the IME is serving the WebTextView, immediately clear
the cursor and update the WebTextView, so the user can continue
typing.  Also, allow "Next" to work on the currently focused
textfield, even if it's not the cursor.  Further, check for
a new action if there is a focus but not a cursor.

14 years agoUpdates V8 version of JavaInstance to use RefCounted, rather than implementing custom...
Steve Block [Wed, 30 Dec 2009 13:37:15 +0000 (13:37 +0000)]
Updates V8 version of JavaInstance to use RefCounted, rather than implementing custom ref and deref methods.

Change-Id: I9cc775224edcda65884461eaf0f4ff7efb5922be

14 years agoMerge change Iab49f046 into eclair-mr2
Android (Google) Code Review [Fri, 18 Dec 2009 16:46:32 +0000 (08:46 -0800)]
Merge change Iab49f046 into eclair-mr2

* changes:
  Fix to ensure plugin is notified even when the screen width does not change.

14 years agoMerge change I21d39461 into eclair-mr2
Android (Google) Code Review [Fri, 18 Dec 2009 14:41:41 +0000 (06:41 -0800)]
Merge change I21d39461 into eclair-mr2

* changes:
  Adds a 'using namespace JSC::Bindings;' declaration in WebCoreFrameBridge.

14 years agoFix to ensure plugin is notified even when the screen width does not change.
Derek Sollenberger [Fri, 18 Dec 2009 14:01:01 +0000 (09:01 -0500)]
Fix to ensure plugin is notified even when the screen width does not change.

14 years agoAdds a 'using namespace JSC::Bindings;' declaration in WebCoreFrameBridge.
Steve Block [Fri, 18 Dec 2009 12:22:36 +0000 (12:22 +0000)]
Adds a 'using namespace JSC::Bindings;' declaration in WebCoreFrameBridge.

Also fixes some style issues.

Change-Id: I21d39461b488a5f490ea3557b24fe1674903c286

14 years agoMerge change I49687314 into eclair-mr2
Android (Google) Code Review [Fri, 18 Dec 2009 10:11:06 +0000 (02:11 -0800)]
Merge change I49687314 into eclair-mr2

* changes:
  Fixes a Geolocation bug with cached positions.

14 years agoAdds notes to upstream feature guards added in V8DOMWrapper.cpp.
Steve Block [Tue, 15 Dec 2009 15:45:02 +0000 (15:45 +0000)]
Adds notes to upstream feature guards added in V8DOMWrapper.cpp.

Change-Id: Id7659cfcab17f24e48958086b4206b1906562d74

14 years agoFixes a Geolocation bug with cached positions.
Steve Block [Wed, 16 Dec 2009 12:57:38 +0000 (12:57 +0000)]
Fixes a Geolocation bug with cached positions.

In the case where a watch request returns a cached position, we must clear the cached position to prevent it from being used repeatedly in the case where the watch timer later fires.

Also cleans up some code and adds some comments.

This will be upstreamed to webkit.org in https://bugs.webkit.org/show_bug.cgi?id=30676

Change-Id: I4968731453c3dfd34a8d3466fdaee91d4c4158be

14 years agoMerge webkit.org at r51976 : Update WebKit revision number.
Steve Block [Wed, 25 Nov 2009 18:46:40 +0000 (18:46 +0000)]
Merge webkit.org at r51976 : Update WebKit revision number.

Change-Id: I71ebb1ee90bbca9328a3c6ca30f0beaefebbede2

14 years agoMerge webkit.org at r51976 : ColorSpace type has been removed.
Steve Block [Thu, 26 Nov 2009 14:10:10 +0000 (14:10 +0000)]
Merge webkit.org at r51976 : ColorSpace type has been removed.

See the following WebKit changes ...
http://trac.webkit.org/changeset/50614
http://trac.webkit.org/changeset/51124
http://trac.webkit.org/changeset/51161

Change-Id: I690bb3aebc75b5a45396bb9bbcc4ee797ca3465b

14 years agoMerge webkit.org at r51976 : GraphicsContext::setPlatformShadow now takes a ColorSpac...
Steve Block [Thu, 26 Nov 2009 16:08:52 +0000 (16:08 +0000)]
Merge webkit.org at r51976 : GraphicsContext::setPlatformShadow now takes a ColorSpace argument.

See http://trac.webkit.org/changeset/50852

Change-Id: Ie6ddbe8da1ce7bc2dffbd57bb93aee5d5e9a1068

14 years agoMerge webkit.org at r51976 : ScriptValue::getString now takes a ScriptState parameter.
Steve Block [Wed, 9 Dec 2009 16:48:47 +0000 (16:48 +0000)]
Merge webkit.org at r51976 : ScriptValue::getString now takes a ScriptState parameter.

See http://trac.webkit.org/changeset/51801

Change-Id: I819c17c8609dd65799bd8a2245cc454e27271969

14 years agoMerge webkit.org at r51976 : Image::draw() and drawPattern() now take a ColorSpace.
Steve Block [Wed, 9 Dec 2009 15:40:02 +0000 (15:40 +0000)]
Merge webkit.org at r51976 : Image::draw() and drawPattern() now take a ColorSpace.

See http://trac.webkit.org/changeset/51212

Change-Id: I276253611ffe7518733fc7af51b0dfcc5f5d8691

14 years agoMerge webkit.org at r51976 : V8Proxy::sourceName now returns bool.
Steve Block [Thu, 26 Nov 2009 21:00:59 +0000 (21:00 +0000)]
Merge webkit.org at r51976 : V8Proxy::sourceName now returns bool.

See http://trac.webkit.org/changeset/50327

Change-Id: If8461f4f433a8addac9cd593f5f66571399a31bb

14 years agoMerge webkit.org at r51976 : externalRepresentation now takes a Frame argument.
Steve Block [Wed, 9 Dec 2009 15:19:26 +0000 (15:19 +0000)]
Merge webkit.org at r51976 : externalRepresentation now takes a Frame argument.

See http://trac.webkit.org/changeset/50923

Change-Id: I8c7bb8af6e40fd449e27f28ff0d2e58fbb4d9eb3

14 years agoMerge webkit.org at r51976 : A ColorSpace argument is now passed to GraphicsContext...
Steve Block [Thu, 26 Nov 2009 14:21:22 +0000 (14:21 +0000)]
Merge webkit.org at r51976 : A ColorSpace argument is now passed to GraphicsContext methods.

See http://trac.webkit.org/changeset/50760

Change-Id: I50c0864b1347e81839b8276a832311d7d1281148

14 years agoMerge webkit.org at r51976 : Icon::createIconForFile has been removed.
Steve Block [Thu, 26 Nov 2009 13:10:36 +0000 (13:10 +0000)]
Merge webkit.org at r51976 : Icon::createIconForFile has been removed.

See http://trac.webkit.org/changeset/50632

Change-Id: I3b10aff021d89b66d4d3d5f52773e4922654fbfa

14 years agoMerge webkit.org at r51976 : Geolocation error code UNKNOWN_ERROR is deprecated.
Steve Block [Wed, 9 Dec 2009 15:16:27 +0000 (15:16 +0000)]
Merge webkit.org at r51976 : Geolocation error code UNKNOWN_ERROR is deprecated.

See http://trac.webkit.org/changeset/50605

Change-Id: Iaad2055f169f56b7d43e2e3195041f0796506092

14 years agoMerge webkit.org at r51976 : Implement new FrameLoaderClient page state methods.
Steve Block [Wed, 9 Dec 2009 15:01:27 +0000 (15:01 +0000)]
Merge webkit.org at r51976 : Implement new FrameLoaderClient page state methods.

See http://trac.webkit.org/changeset/51644

Change-Id: I539af311723c20648d4958c46ee3ebe502e680b8

14 years agoMerge webkit.org at r51976 : FrameLoaderClient::windowObjectCleared has been replaced...
Steve Block [Wed, 9 Dec 2009 14:47:50 +0000 (14:47 +0000)]
Merge webkit.org at r51976 : FrameLoaderClient::windowObjectCleared has been replaced with dispatchDidClearWindowObjectInWorld.

See http://trac.webkit.org/changeset/50973

Change-Id: I54093cd917f15a51412b07b5495f32502cfd23b5

14 years agoMerge webkit.org at r51976 : Implement new ChromeClient::focusedNodeChanged method.
Steve Block [Wed, 9 Dec 2009 14:40:12 +0000 (14:40 +0000)]
Merge webkit.org at r51976 : Implement new ChromeClient::focusedNodeChanged method.

See http://trac.webkit.org/changeset/50351

Change-Id: Ia3fa68ebb7f54b3a88635c9e8ebade0180a62e21

14 years agoMerge webkit.org at r51976 : Changes to InspectorController.
Steve Block [Wed, 9 Dec 2009 14:36:06 +0000 (14:36 +0000)]
Merge webkit.org at r51976 : Changes to InspectorController.

See http://trac.webkit.org/changeset/51631

Change-Id: Ic0973105e04df1023d4df6f6e1d20052e869ac4a

14 years agoMerge webkit.org at r51976 : Fix Makefiles.
Steve Block [Thu, 26 Nov 2009 12:12:20 +0000 (12:12 +0000)]
Merge webkit.org at r51976 : Fix Makefiles.

Change-Id: I7d9d5788efda1d0e985242ab03c8016069798acd

14 years agoMerge webkit.org at r51976 : Fix general conflicts.
Steve Block [Tue, 15 Dec 2009 11:15:20 +0000 (11:15 +0000)]
Merge webkit.org at r51976 : Fix general conflicts.

Notes ...
For FrameLoader.cpp/h, see http://trac.webkit.org/changeset/51644
For FrameView.cpp and ScrolView.cpp, see http://trac.webkit.org/changeset/51636
For PluginInfoStore.cpp, see http://trac.webkit.org/changeset/51257
For Geolocation.cpp, see http://trac.webkit.org/changeset/50605
For V8DOMWrapper.cpp, see http://trac.webkit.org/changeset/51004
For V8Proxy.cpp, see http://trac.webkit.org/changeset/50441, http://trac.webkit.org/changeset/50327, http://trac.webkit.org/changeset/50406 and http://trac.webkit.org/changeset/50523
For HTMLInputElement.cpp, see http://trac.webkit.org/changeset/50996
For RenderBlock.cpp/RenderInline.cpp, see https://android-git.corp.google.com/g/#change,33465
Android-specific change to now-deleted JSCanvasArrayCustom.cpp was trivial.

Change-Id: Iddc8d43bdcb6208d6a991a7a1d591e8a4f918bf7

14 years agoMerge webkit.org at r51976 : Fix conflicts in Makefiles.
Steve Block [Tue, 15 Dec 2009 11:09:43 +0000 (11:09 +0000)]
Merge webkit.org at r51976 : Fix conflicts in Makefiles.

Android Makefiles were upstreamed in http://trac.webkit.org/changeset/51858
and http://trac.webkit.org/changeset/51926

Change-Id: I00f30d4894c1c5064fb7bd9be27317c039dbb0ad

14 years agoMerge webkit.org at r51976 : Initial merge by git.
Steve Block [Tue, 15 Dec 2009 10:12:09 +0000 (10:12 +0000)]
Merge webkit.org at r51976 : Initial merge by git.

Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43

14 years agoregister the eventinterface with our dispatcher list
Mike Reed [Thu, 17 Dec 2009 16:10:47 +0000 (11:10 -0500)]
register the eventinterface with our dispatcher list

14 years agoMerge change Ifcce71fa into eclair-mr2
Android (Google) Code Review [Wed, 16 Dec 2009 22:11:38 +0000 (14:11 -0800)]
Merge change Ifcce71fa into eclair-mr2

* changes:
  Implement the full screen WebView plugin.

14 years agoImplement the full screen WebView plugin.
Grace Kloba [Wed, 16 Dec 2009 19:39:26 +0000 (11:39 -0800)]
Implement the full screen WebView plugin.

Use a NoTitleBar_Fullscreen dialog to implement the
full screen plugin. This runs in the same thread as
WebView (UI in the Browser case). One catch is that
the SurfaceView provided by the plugin needs to be
opaque if it doesn't want to see through the WebView.

The PluginFullScreenHolder translates the events to
the underline WebView. Special treatment in the touch
case as it needs to translate the coordinates.

WebView can't be panned, or double tap to zoom, or
long press to trigger the context menu while having
a full screen plugin.

Inside webkit, we also give the plugin element focus
when it goes to the full screen so that it takes key
events. While handling key events, we don't let it
loose focus or scroll out.

Todo:
When a plugin goes to full screen, we should make
sure the embedded plugin is fully visible. Otherwise
when we translate the touch events back, they will be
outside of the visible rect and will be ignored.

This is part 2 of 2-project check in.

14 years agoFix the benchmark app yet again to work in mr2 (and master).
Patrick Scott [Tue, 15 Dec 2009 20:34:48 +0000 (15:34 -0500)]
Fix the benchmark app yet again to work in mr2 (and master).

The signature of startLoadingResource changed. The PageCache can change the
FrameView so don't use the local one. Add a few more function intercepts in the
fake vm.

14 years agocheck to see if nav cache is up to date on tap
Cary Clark [Fri, 11 Dec 2009 17:50:10 +0000 (12:50 -0500)]
check to see if nav cache is up to date on tap

- WebKit/android/jni/WebViewCore.cpp
- WebKit/android/jni/WebViewCore.h
Add validNodeAndBounds() to determine if the clicked cached
node is good. First check to see if the pointer
to the frame and node still exist in the DOM. If
they do, see if the hit test bounds they point
to is the same as when the cache was recorded.

-  WebKit/android/nav/CacheBuilder.cpp
-  WebKit/android/nav/CachedNode.h
Record the original absolute bounds for later
comparison.

-  WebKit/android/nav/CacheBuilder.h
Make getAreaRect() public so it can be called by
validation.

- WebKit/android/nav/WebView.cpp
Enhance motionUp() with additional validation:
use pointInNavCache() to see if there's a cached node;
wait for message from webkit to see if bounds is unchanged;
then use motionUp() to pass the original or altered click.

This is a two-part change with frameworks/base.

Fixes http://b/2249425

14 years agoProvide localized strings for <input> labels.
Leon Scroggins [Fri, 11 Dec 2009 20:12:12 +0000 (15:12 -0500)]
Provide localized strings for <input> labels.

Fix for http://b/issue?id=2178786

Call up to Java to get strings for <input> labels, and use them
on inputs.

Requires a change in frameworks/base.

14 years agoDo not merge
Andrei Popescu [Tue, 15 Dec 2009 12:26:47 +0000 (12:26 +0000)]
Do not merge

Replicate https://android-git.corp.google.com/g/#change,35704 to mr2
to leave this branch in a sane state. Otherwise, the browser crashes on startup.

14 years agoMerge change Ic29b39b8 into eclair-mr2
Android (Google) Code Review [Mon, 14 Dec 2009 19:41:37 +0000 (11:41 -0800)]
Merge change Ic29b39b8 into eclair-mr2

* changes:
  Replace the C-cast used to determine whether the resource handle represent the main resource.

14 years agoReplace the C-cast used to determine whether the resource handle represent the main...
Andrei Popescu [Mon, 14 Dec 2009 12:45:34 +0000 (12:45 +0000)]
Replace the C-cast used to determine whether the resource handle represent the main resource.

Fix style to match webkit style.

14 years agoNotify native plugin code when the browser discards the customView.
Derek Sollenberger [Tue, 8 Dec 2009 20:44:57 +0000 (15:44 -0500)]
Notify native plugin code when the browser discards the customView.

14 years agoRollback to return density for scaleFactor.
Grace Kloba [Fri, 11 Dec 2009 21:53:22 +0000 (13:53 -0800)]
Rollback to return density for scaleFactor.

Move the comment to HTMLCanvasElement and always use 1.0 there.

14 years agoBreak the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.
Andrei Popescu [Tue, 8 Dec 2009 18:37:43 +0000 (18:37 +0000)]
Break the WebCore -> WebKit dependency in ResourceHandleAndroid.cpp.

14 years agoMerge change I6efdd453 into eclair-mr2
Android (Google) Code Review [Fri, 11 Dec 2009 16:41:57 +0000 (08:41 -0800)]
Merge change I6efdd453 into eclair-mr2

* changes:
  Fix the crash in RenderTableSection for Small Screen rendering. The code path was not exercised in the  Browser and the crash was triggered by the WebKit integration.

14 years agoFix the crash in RenderTableSection for Small Screen
Grace Kloba [Fri, 11 Dec 2009 00:18:32 +0000 (16:18 -0800)]
Fix the crash in RenderTableSection for Small Screen
rendering. The code path was not exercised in the
Browser and the crash was triggered by the WebKit
integration.

Fix http://b/issue?id=2285748

14 years agoMerge change I514e3218 into eclair-mr2
Android (Google) Code Review [Thu, 10 Dec 2009 21:20:25 +0000 (13:20 -0800)]
Merge change I514e3218 into eclair-mr2

* changes:
  add event interface for plugins, so they can post an event to themselves (from any thread)

14 years agoadd event interface for plugins, so they can post an event to themselves (from any...
Mike Reed [Thu, 10 Dec 2009 16:36:37 +0000 (11:36 -0500)]
add event interface for plugins, so they can post an event to themselves (from any thread)

14 years agofix sim build: only issue -Wno-psabi if we building for arm
Mike Reed [Thu, 10 Dec 2009 19:31:40 +0000 (14:31 -0500)]
fix sim build: only issue -Wno-psabi if we building for arm

14 years agoremove 100s of warnings about va_list mangling in GCC 4.4
Mike Reed [Thu, 10 Dec 2009 16:35:25 +0000 (11:35 -0500)]
remove 100s of warnings about va_list mangling in GCC 4.4

 On branch warning
 Changes to be committed:
   (use "git reset HEAD <file>..." to unstage)

modified:   Android.mk

14 years agoMerge change Ice11d745 into eclair-mr2
Android (Google) Code Review [Thu, 10 Dec 2009 11:31:00 +0000 (03:31 -0800)]
Merge change Ice11d745 into eclair-mr2

* changes:
  Removes superfluous SocketStreamHandleBase.cpp from Android build.

14 years agoRemoves superfluous SocketStreamHandleBase.cpp from Android build.
Steve Block [Wed, 9 Dec 2009 16:09:31 +0000 (16:09 +0000)]
Removes superfluous SocketStreamHandleBase.cpp from Android build.

Change-Id: Ice11d7459e425b18f07b77527aa71696c880ae77

14 years agoMerge change I85087ab0 into eclair-mr2
Android (Google) Code Review [Wed, 9 Dec 2009 19:30:03 +0000 (11:30 -0800)]
Merge change I85087ab0 into eclair-mr2

* changes:
  Enable orientation events.

14 years agoEnable longpress and doubletap to WebKit as touch
Grace Kloba [Tue, 8 Dec 2009 17:50:32 +0000 (09:50 -0800)]
Enable longpress and doubletap to WebKit as touch
event if it is requested.

14 years agoEnable orientation events.
Patrick Scott [Wed, 2 Dec 2009 13:32:13 +0000 (08:32 -0500)]
Enable orientation events.

Remove our old orientation hacks as webkit now supports the orientation event.
Call down into webkit when the orientation changes to send the js event.

The change to Frame.cpp has been submited to bugs.webkit.org as issue 32321.

14 years agoPass a message to move the focus when user hits "Next".
Leon Scroggins [Tue, 8 Dec 2009 21:59:46 +0000 (16:59 -0500)]
Pass a message to move the focus when user hits "Next".

Directly move the focus rather than passing a click.

Fixes http://b/issue?id=2292683

Requires a change to frameworks/base

14 years agoMerge change I85893753 into eclair-mr2
Android (Google) Code Review [Wed, 9 Dec 2009 14:11:13 +0000 (06:11 -0800)]
Merge change I85893753 into eclair-mr2

* changes:
  Pull down change 51321 from webkit.org.

14 years agoPull down change 51321 from webkit.org.
Patrick Scott [Wed, 9 Dec 2009 13:56:19 +0000 (08:56 -0500)]
Pull down change 51321 from webkit.org.

Calls to EventNames() was causing multiple copies of the event names to be
created. This could cause false negatives in hash map lookups.

14 years agouse twopoint gradients
Mike Reed [Tue, 8 Dec 2009 19:15:05 +0000 (14:15 -0500)]
use twopoint gradients

14 years agoMerge change I0b9d36d9 into eclair-mr2
Android (Google) Code Review [Tue, 8 Dec 2009 17:45:22 +0000 (09:45 -0800)]
Merge change I0b9d36d9 into eclair-mr2

* changes:
  Modify AndroidWebHistoryBridge to prepare uploading detachHistoryItem() to WebKit.

14 years agoShow "Go" for the last textfield in a form.
Leon Scroggins [Mon, 7 Dec 2009 21:54:56 +0000 (16:54 -0500)]
Show "Go" for the last textfield in a form.

Fixes http://b/issue?id=2210152

14 years agoexclude from cache nodes that are entirely clipped out
Cary Clark [Tue, 8 Dec 2009 15:00:36 +0000 (10:00 -0500)]
exclude from cache nodes that are entirely clipped out

Google's real time search has many results outside of an overflow
div that should be ignored by the nav cache. Make it so.

fixes http://b/2298478

14 years agoMerge change Ia8a49e0d into eclair-mr2
Android (Google) Code Review [Tue, 8 Dec 2009 14:59:01 +0000 (06:59 -0800)]
Merge change Ia8a49e0d into eclair-mr2

* changes:
  fix debugging output

14 years agoSwitching from activity based full screen plugins to a view system overlay.
Derek Sollenberger [Mon, 7 Dec 2009 21:18:43 +0000 (16:18 -0500)]
Switching from activity based full screen plugins to a view system overlay.

14 years agoMerge change I747854ee into eclair-mr2
Android (Google) Code Review [Tue, 8 Dec 2009 12:37:02 +0000 (04:37 -0800)]
Merge change I747854ee into eclair-mr2

* changes:
  Remove an accidentally added include.

14 years agoMerge change I640d5ca9 into eclair-mr2
Android (Google) Code Review [Tue, 8 Dec 2009 11:48:26 +0000 (03:48 -0800)]
Merge change I640d5ca9 into eclair-mr2

* changes:
  Merges V8 version of jni_utility with JSC version at WebCore/bridge/jni.

14 years agoModify AndroidWebHistoryBridge to prepare uploading
Grace Kloba [Mon, 7 Dec 2009 22:27:17 +0000 (14:27 -0800)]
Modify AndroidWebHistoryBridge to prepare uploading
detachHistoryItem() to WebKit.

I think it is easy to read this way that the constructor
sets the m_historyItem and the new method will detach it.

14 years agofix debugging output
Cary Clark [Mon, 7 Dec 2009 22:09:30 +0000 (17:09 -0500)]
fix debugging output

14 years agoProvide <input> type information to Java side.
Leon Scroggins [Mon, 7 Dec 2009 18:42:46 +0000 (13:42 -0500)]
Provide <input> type information to Java side.

Help to fix http://b/issue?id=1890360 and http://b/issue?id=2150538

CacheBuilder.cpp:
Explicitly set isTextField to false for textareas.

CachedRoot:
Remove the code which checks to see if the textfield is a search,
since if it is, we can avoid this path altogether.

WebView:
Return a single integer which tells what type the current text
input field is.

Requires a change to frameworks/base.

14 years agoContinue https://android-git.corp.google.com/g/#change,34687,
Grace Kloba [Mon, 7 Dec 2009 17:54:17 +0000 (09:54 -0800)]
Continue https://android-git.corp.google.com/g/#change,34687,

We should use #if PLATFORM(ANDROID) now

14 years agoMerge change I38601c0e into eclair-mr2
Android (Google) Code Review [Mon, 7 Dec 2009 17:39:36 +0000 (09:39 -0800)]
Merge change I38601c0e into eclair-mr2

* changes:
  Fix the wrong layout in the layout test.

14 years agofix crash reading readonly node state
Cary Clark [Mon, 7 Dec 2009 15:36:50 +0000 (10:36 -0500)]
fix crash reading readonly node state

Something about rebuildTextView() invalidates the current cached
frame -- reading the last obtained frame after calling it may
crash. Why, I don't know. Until I figure that out, read the
cached state first.

Also remove some tests for null frame and node since the null
case has already been handled earlierin motionUp().

fixes http://b/2307964

14 years agoRemove an accidentally added include.
Ben Murdoch [Mon, 7 Dec 2009 15:29:26 +0000 (15:29 +0000)]
Remove an accidentally added include.

Change-Id: I747854ee918df97d12d7d0ed1a5fecfb10d8d805

14 years agoStore InputType information for <input> fields, return SEARCH action for SEARCH ...
Leon Scroggins [Fri, 4 Dec 2009 19:54:57 +0000 (14:54 -0500)]
Store InputType information for <input> fields, return SEARCH action for SEARCH <input>

Fixes http://b/issue?id=2299660 and http://b/issue?id=2299650
Also remove isPassword, which is redundant.

14 years agoMerge change I9a5736f5 into eclair-mr2
Android (Google) Code Review [Mon, 7 Dec 2009 15:03:46 +0000 (07:03 -0800)]
Merge change I9a5736f5 into eclair-mr2

* changes:
  Fixes a Geolocation bug with cached positions.

14 years agoFixes a Geolocation bug with cached positions.
Steve Block [Thu, 3 Dec 2009 12:52:03 +0000 (12:52 +0000)]
Fixes a Geolocation bug with cached positions.

When a Geolocation watch calls back with a cached position, it could be cleared in the callback.
This change makes sure the watch still exists after the callback before starting the Geolocation service.

Change-Id: I9a5736f5ce78e1c4bb36659245ffb61b485c4018

14 years agoMerges V8 version of jni_utility with JSC version at WebCore/bridge/jni.
Steve Block [Mon, 7 Dec 2009 12:05:28 +0000 (12:05 +0000)]
Merges V8 version of jni_utility with JSC version at WebCore/bridge/jni.

Change-Id: I640d5ca9e38d78fd662550fa389cf8b463dc78b6

14 years agoMoves JSC-specific functions from jni_utility and moves them to a new jsc/jni_utility...
Steve Block [Fri, 4 Dec 2009 15:36:28 +0000 (15:36 +0000)]
Moves JSC-specific functions from jni_utility and moves them to a new jsc/jni_utility_private.h.

See https://bugs.webkit.org/show_bug.cgi?id=32157

Change-Id: I1f7f0bb6fa9e72ee3eeb31160e0a828b3d076fee

14 years agoFix the wrong layout in the layout test.
Grace Kloba [Thu, 3 Dec 2009 01:39:47 +0000 (17:39 -0800)]
Fix the wrong layout in the layout test.

When we create a new WebFrameView, the bounds needs
to be transferred from the old WebFrameView. Otherwise
the new View will have (0,0) as bounds.

Add transitionToCommitted() for transitionToCommittedFromCachedFrame().

14 years agoam daa8318d: (-s ours) DO NOT MERGE. This is cherry picked from https://android-git...
Grace Kloba [Sat, 5 Dec 2009 01:37:14 +0000 (17:37 -0800)]
am daa8318d: (-s ours) DO NOT MERGE. This is cherry picked from https://android-git.corp.google.com/g/#change,28737

Merge commit 'daa8318de3c63a28eccb52546c230e5c5caee962' into eclair-mr2

* commit 'daa8318de3c63a28eccb52546c230e5c5caee962':
  DO NOT MERGE.

14 years agoDO NOT MERGE.
Grace Kloba [Sat, 3 Oct 2009 00:38:57 +0000 (17:38 -0700)]
DO NOT MERGE.
This is cherry picked from
https://android-git.corp.google.com/g/#change,28737

Fix http://b/issue?id=2304741

Add check null of getRealObject(). When a WebView is
removed, there is a slight chance that getRealObject()
for WebView's JavaObject be null.

Fix http://b/issue?id=2159815

14 years agoMerge change I2b870c71 into eclair-mr2
Android (Google) Code Review [Fri, 4 Dec 2009 19:21:16 +0000 (11:21 -0800)]
Merge change I2b870c71 into eclair-mr2

* changes:
  Enables x-mac-cyrillic on Android, now that this is in our version of ICU.

14 years agoMerge change If686b999 into eclair-mr2
Android (Google) Code Review [Fri, 4 Dec 2009 19:08:35 +0000 (11:08 -0800)]
Merge change If686b999 into eclair-mr2

* changes:
  Pass up flags for the main resource and user gesture.

14 years agoMerge change I49b2fbe0 into eclair-mr2
Android (Google) Code Review [Fri, 4 Dec 2009 18:53:31 +0000 (10:53 -0800)]
Merge change I49b2fbe0 into eclair-mr2

* changes:
  Only re-center the page if it is zoom change or orientation change. Do not re-center the page if it is caused by show/hide soft keyboard.

14 years agofix nav cache debugging
Cary Clark [Fri, 4 Dec 2009 18:33:04 +0000 (13:33 -0500)]
fix nav cache debugging

last change broke debugging code outside of the build

14 years agoPass up flags for the main resource and user gesture.
Patrick Scott [Fri, 4 Dec 2009 18:18:31 +0000 (13:18 -0500)]
Pass up flags for the main resource and user gesture.

This requires a change to the framework.

14 years agomove input-related fields out of CachedNode to expand
Cary Clark [Thu, 3 Dec 2009 16:02:54 +0000 (11:02 -0500)]
move input-related fields out of CachedNode to expand

Some of the fields in CachedNode are relevant only to input
fields and text areas. Move these into their own vector
so that we can add more data without making all CacheNodes
bigger.

Remove CacheNode entries that are no longer used, or can
be consolidated into the node type. Alphabetize some interfaces
and implementations. Update the debugging output.

part of http://b/2299660

14 years agoEnables x-mac-cyrillic on Android, now that this is in our version of ICU.
Steve Block [Fri, 4 Dec 2009 13:42:01 +0000 (13:42 +0000)]
Enables x-mac-cyrillic on Android, now that this is in our version of ICU.

See https://android-git.corp.google.com/g/#change,34457,
which adds the encoding to ICU 3.8 in eclair-mr2, and
https://android-git.corp.google.com/g/#change,34758,
which adds the encoding to ICU 4.2 in master.

Change-Id: I2b870c714a3ee397964e6bfe14c95bdcca9ea24a

14 years agoOnly re-center the page if it is zoom change or
Grace Kloba [Fri, 4 Dec 2009 08:32:52 +0000 (00:32 -0800)]
Only re-center the page if it is zoom change or
orientation change. Do not re-center the page if
it is caused by show/hide soft keyboard.

Fix http://b/issue?id=2303918

14 years agoMerge change Iceb63592 into eclair-mr2
Android (Google) Code Review [Thu, 3 Dec 2009 23:47:48 +0000 (15:47 -0800)]
Merge change Iceb63592 into eclair-mr2

* changes:
  Experimental change. Cache pages with unload event for back/forward. This will improve the history navigation. But it may break some sites. See discussion in https://bugs.webkit.org/show_bug.cgi?id=29021.

14 years agoExperimental change. Cache pages with unload event
Grace Kloba [Thu, 3 Dec 2009 17:53:55 +0000 (09:53 -0800)]
Experimental change. Cache pages with unload event
for back/forward. This will improve the history
navigation. But it may break some sites. See discussion
in https://bugs.webkit.org/show_bug.cgi?id=29021.

14 years agoRework CL, https://android-git.corp.google.com/g/#change,34511
Grace Kloba [Thu, 3 Dec 2009 19:39:15 +0000 (11:39 -0800)]
Rework CL, https://android-git.corp.google.com/g/#change,34511
due to the history unfork change.