OSDN Git Service

android-x86/external-webkit.git
14 years agoMerge "Update Android to reflect final version submitted to webkit.org for Geolocatio...
Steve Block [Thu, 11 Mar 2010 12:02:20 +0000 (04:02 -0800)]
Merge "Update Android to reflect final version submitted to webkit.org for Geolocation maximumAge"

14 years agoUpdate Android to reflect final version submitted to webkit.org for Geolocation maxim...
Steve Block [Wed, 24 Feb 2010 11:11:00 +0000 (11:11 +0000)]
Update Android to reflect final version submitted to webkit.org for Geolocation maximumAge

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

Change-Id: Ib504563b7be40b0ff794cdcc625b07f494bb6483

14 years agoAdd clean steps for webkit changes
Kenny Root [Wed, 10 Mar 2010 21:17:22 +0000 (13:17 -0800)]
Add clean steps for webkit changes

Change-Id: Ia45d3c18906da5fcb0c4a089f6c6278dc1074b6b

14 years agoMerge "Use a paint with 80% alpha instead of saveLayer for disabled elements."
Leon Scroggins [Wed, 10 Mar 2010 20:07:27 +0000 (12:07 -0800)]
Merge "Use a paint with 80% alpha instead of saveLayer for disabled elements."

14 years agoMerge "Switch default build to use V8 on Passion and Sholes. A small step in the...
Bart Sears [Wed, 10 Mar 2010 19:04:55 +0000 (11:04 -0800)]
Merge "Switch default build to use V8 on Passion and Sholes. A small step in the makefile, a giant step for the browser."

14 years agoUse a paint with 80% alpha instead of saveLayer for disabled elements.
Leon Scroggins [Wed, 10 Mar 2010 18:51:22 +0000 (13:51 -0500)]
Use a paint with 80% alpha instead of saveLayer for disabled elements.

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

Change-Id: Icb01fd90e428fde9f82ae6416dd4f9ee66e76ed6

14 years agoMerge "When starting the Geolocation service, we need to make sure that we have a...
Steve Block [Wed, 10 Mar 2010 17:19:11 +0000 (09:19 -0800)]
Merge "When starting the Geolocation service, we need to make sure that we have a valid FrameView before querying the Java side to determine whether the WebView is paused."

14 years agoSwitch default build to use V8 on Passion and Sholes.
Andrei Popescu [Wed, 10 Mar 2010 14:19:32 +0000 (14:19 +0000)]
Switch default build to use V8 on Passion and Sholes.
A small step in the makefile, a giant step for the browser.

14 years agoUpdate android_npapi to remove the special code
Grace Kloba [Tue, 9 Mar 2010 22:11:37 +0000 (14:11 -0800)]
Update android_npapi to remove the special code
added for mwc.

14 years agoIf we do change to document focus in mouse down,
Grace Kloba [Tue, 9 Mar 2010 22:04:10 +0000 (14:04 -0800)]
If we do change to document focus in mouse down,
set default handled so that EventHandler won't try
to change the document focus.

This should address the problem Adobe saw when tapping
on a object may cause both GainFocus and LostFocus
life cycle events.

14 years agoWhen starting the Geolocation service, we need to make sure that we have a valid...
Steve Block [Tue, 9 Mar 2010 21:24:23 +0000 (21:24 +0000)]
When starting the Geolocation service, we need to make sure that we have a valid FrameView before querying the Java side to determine whether the WebView is paused.

Bug: 2501254
Change-Id: Ideb86ce4c35efb7bc7595c4205dc1e8d5c1cf106

14 years agoOnly call plugin touch code if it is in full screen
Leon Scroggins [Fri, 5 Mar 2010 16:39:01 +0000 (11:39 -0500)]
Only call plugin touch code if it is in full screen
mode or it is the document focused node.

Remove Android special code added to support prevent
default for double tap and long press. Long press
and double tap needs to call preventDefault if it
is needed.

Remove Android special code added to pass event time.

Need a separate CL for android_npapi.

14 years agoFix bug 'Children of fixed elements do not always remain fixed themselves'
Nicolas Roard [Fri, 5 Mar 2010 14:41:28 +0000 (14:41 +0000)]
Fix bug 'Children of fixed elements do not always remain fixed themselves'
The problem was twofold:
- webkit didn't create composited layers of the children div unless they were
  intersecting with the fixed layer
- the children divs layers are siblings, not children of the fixed layer

The solution is to:
1/ mark layers as needed to be composited if their ancestor is a
   fixed element (in RenderLayerCompositor)
2/ as the GraphicsLayer/LayerAndroid hierarchy is based on the RenderLayer
   hierarchy (z-order..) and not the display hierarchy, we need to a way of
   updating the position of the contained layers when a fixed layer move.

We do that by:
- marking layers contained in a fixed layer as being linked to the
  fixed layer (GraphicsLayerAndroid::syncFixedDescendants), and set the
  offset between the layer and the fixed layer.
- when pushing the layers tree to the UI side, we ensure that such layers
  are linked to their corresponding fixed layer
  (LayerAndroid::ensureFixedLayersForDescendants)
- when we draw, we do a first pass to update the fixed layers position
  (LayerAndroid::updateFixedLayersPositions) then update the rest of the
  layers (LayerAndroid::updatePositions). The layers that are linked
  to the fixed layers will then update their position relative to it,
  using the original offset between the fixed layer and the layer.

Bug:2470701
Change-Id: I512966df94de6a5f84aff335c5d09b3f027bc2c3

14 years agobuild-fix for the no-layers config
Mike Reed [Tue, 9 Mar 2010 17:58:55 +0000 (12:58 -0500)]
build-fix for the no-layers config

Change-Id: I4994cb5dc61cb845db76060fbd7680f6f5f9ab88

14 years agorequestChildRectangleOnScreen takes layers into account
Cary Clark [Tue, 9 Mar 2010 14:17:51 +0000 (09:17 -0500)]
requestChildRectangleOnScreen takes layers into account

Make native LayerAndroid::subtractLayers visible to java so
the layers can be removed from the visible portion of the screen
when computing how much to scroll.

companion fix in frameworks/base

Change-Id: I3bc0760aaeb515415e90996ec1257d24f9f8705a
http://b/2453841

14 years agoMerge "fix to ensure plugins are not shown when they are marked hidden by the DOM."
Derek Sollenberger [Tue, 9 Mar 2010 13:47:23 +0000 (05:47 -0800)]
Merge "fix to ensure plugins are not shown when they are marked hidden by the DOM."

14 years agoMerge "Adds some logging to JObjectWrapper"
Steve Block [Tue, 9 Mar 2010 13:45:55 +0000 (05:45 -0800)]
Merge "Adds some logging to JObjectWrapper"

14 years agoAdds some logging to JObjectWrapper
Steve Block [Mon, 8 Mar 2010 18:13:21 +0000 (18:13 +0000)]
Adds some logging to JObjectWrapper

This is an attempt to track down the cause of a crashing bug in the WebCore JSC
bridge, which is only occasionaly triggered by the monkey.

Bug: 2435360
Change-Id: I35069c2aff3d9cdf2cfd49264715c418911c9d9c

14 years agofix to ensure plugins are not shown when they are marked hidden by the DOM.
Derek Sollenberger [Mon, 8 Mar 2010 21:11:27 +0000 (16:11 -0500)]
fix to ensure plugins are not shown when they are marked hidden by the DOM.

Change-Id: Ic32359b699d71dcd1603ac9295c95100014fc484

14 years agoAdd an empty CleanSpec.mk
Jean-Baptiste Queru [Tue, 9 Mar 2010 02:04:47 +0000 (18:04 -0800)]
Add an empty CleanSpec.mk

Change-Id: Iafcd71c043fab0ae26f5d38dba1197c50a7279df

14 years agoMerge "Serialize/unserialize screen width scale, which is used when restoring sites."
Shimeng (Simon) Wang [Mon, 8 Mar 2010 17:11:46 +0000 (09:11 -0800)]
Merge "Serialize/unserialize screen width scale, which is used when restoring sites."

14 years agocheck for null node to prevent monkey crash
Cary Clark [Mon, 8 Mar 2010 14:55:23 +0000 (09:55 -0500)]
check for null node to prevent monkey crash

Change-Id: I11625535de5e18f94d293081416eaa9bfa0a8c3c
http://b/2492244

14 years agoscroll into view considers layers
Cary Clark [Fri, 5 Mar 2010 22:51:19 +0000 (17:51 -0500)]
scroll into view considers layers

LayerAndroid.*
- Add a utility that takes the given rectangle and subtracts
  layers that overlay it.

FindCanvas.*
- Add function that returns if the current match is on the
  main page or in a layer.

WebView.cpp
- Add jni caller for WebView.java calcOurContentVisibleRect.
  Call it instead of getVisibleRect, which has the side effect
  of sending messages back to webkit.
- Remove jni caller for getViewMetrics, since it is redundant.
- Only call scrollRectOnScreen for non-layers.

companion fix in framework/base

http://b/2485168

14 years agoSerialize/unserialize screen width scale, which is used when restoring sites.
Shimeng (Simon) Wang [Fri, 5 Mar 2010 23:17:45 +0000 (15:17 -0800)]
Serialize/unserialize screen width scale, which is used when restoring sites.

Also change the scales' default value to 0, so in WebViewCore.java, in case
the scales are not set inside webkit, the default logic can be used.
This helps in case a mobile site is loaded but no scales is saved, and when
restored, the mobile site will have wrong restored scales because default
values are not 0.

14 years agoSet the proper frame's focus controller to active and focused.
Leon Scroggins [Fri, 5 Mar 2010 16:39:01 +0000 (11:39 -0500)]
Set the proper frame's focus controller to active and focused.

When editing text, set the FocusController to both active and
focused, and use the FocusController associated with the focus.

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

14 years agoMerge "Fixes a leaked JNI local reference in MIMETypeRegistry::getMIMETypeForExtension"
Steve Block [Fri, 5 Mar 2010 18:29:52 +0000 (10:29 -0800)]
Merge "Fixes a leaked JNI local reference in MIMETypeRegistry::getMIMETypeForExtension"

14 years agoFixes a leaked JNI local reference in MIMETypeRegistry::getMIMETypeForExtension
Steve Block [Thu, 4 Mar 2010 16:37:50 +0000 (16:37 +0000)]
Fixes a leaked JNI local reference in MIMETypeRegistry::getMIMETypeForExtension

This method was leaking a Java class object. This caused layout test
fast/dom/prototype-inheritance-2.html to crash because the VM ran out of local
references.

Bug: 2218794
Change-Id: I15d6bb8bf16ec58ecd6470ef63e6cd3635d766ef

14 years agoMerge "Remove unnecessary call to ChromeClientAndroid::scheduleCompositingLayerSync()."
Andrei Popescu [Fri, 5 Mar 2010 18:02:54 +0000 (10:02 -0800)]
Merge "Remove unnecessary call to ChromeClientAndroid::scheduleCompositingLayerSync()."

14 years agoRemove unnecessary call to ChromeClientAndroid::scheduleCompositingLayerSync().
Andrei Popescu [Fri, 5 Mar 2010 16:26:29 +0000 (16:26 +0000)]
Remove unnecessary call to ChromeClientAndroid::scheduleCompositingLayerSync().

Fix b: 2471383

14 years agoMerge "Fix history restore."
Patrick Scott [Fri, 5 Mar 2010 16:18:06 +0000 (08:18 -0800)]
Merge "Fix history restore."

14 years agoMerge "forgot header file ; broke build in 43447"
Cary Clark [Fri, 5 Mar 2010 15:29:58 +0000 (07:29 -0800)]
Merge "forgot header file ; broke build in 43447"

14 years agoforgot header file ; broke build in 43447
Cary Clark [Fri, 5 Mar 2010 15:28:17 +0000 (10:28 -0500)]
forgot header file ; broke build in 43447

14 years agoMerge "fixes with find drawing in layers"
Cary Clark [Fri, 5 Mar 2010 15:06:09 +0000 (07:06 -0800)]
Merge "fixes with find drawing in layers"

14 years agofixes with find drawing in layers
Cary Clark [Fri, 5 Mar 2010 14:29:34 +0000 (09:29 -0500)]
fixes with find drawing in layers

Clipping the match picture before drawing prevents layer
pictures from drawing outside of their intended bounds.

Rearranging the layer picture draw call causes it to restore
the canvas matrix, which causes extras like finds and cursor
rings to draw correctly.

Also, added more layer debugging, and a function to show
layer state in the console window.

http://b/2488516
http://b/2488509

14 years agoFix history restore.
Patrick Scott [Thu, 4 Mar 2010 21:15:43 +0000 (16:15 -0500)]
Fix history restore.

goToItem now does a lot of what we were doing and was causing the page to not
load because the current item matched where we were trying to move.

14 years agoMerge "Use the complete url when blocking images."
Patrick Scott [Thu, 4 Mar 2010 16:20:19 +0000 (08:20 -0800)]
Merge "Use the complete url when blocking images."

14 years agoMerge "disable visiblerect debugging printfs"
Mike Reed [Thu, 4 Mar 2010 14:10:31 +0000 (06:10 -0800)]
Merge "disable visiblerect debugging printfs"

14 years agodisable visiblerect debugging printfs
Mike Reed [Thu, 4 Mar 2010 14:09:41 +0000 (09:09 -0500)]
disable visiblerect debugging printfs

14 years agoUse the complete url when blocking images.
Patrick Scott [Thu, 4 Mar 2010 12:54:25 +0000 (07:54 -0500)]
Use the complete url when blocking images.

Image urls that are relative to a base url need to be resolved before looking at
the scheme.

Bug: 2455482

14 years agoDon't leak global weak references when running layout tests
Leon Clarke [Tue, 23 Feb 2010 10:17:11 +0000 (10:17 +0000)]
Don't leak global weak references when running layout tests

14 years agoam fa65eb8a: (-s ours) am 9a77bf56: Revert "Use STLPort instead of our stripped versi...
Jean-Baptiste Queru [Wed, 3 Mar 2010 22:53:45 +0000 (14:53 -0800)]
am fa65eb8a: (-s ours) am 9a77bf56: Revert "Use STLPort instead of our stripped version." DO NOT MERGE.

Merge commit 'fa65eb8a4fe0c48e4c8630850b2492051e5adf5a'

* commit 'fa65eb8a4fe0c48e4c8630850b2492051e5adf5a':
  Revert "Use STLPort instead of our stripped version." DO NOT MERGE.

14 years agoam 9a77bf56: Revert "Use STLPort instead of our stripped version." DO NOT MERGE.
Jean-Baptiste Queru [Wed, 3 Mar 2010 22:49:33 +0000 (14:49 -0800)]
am 9a77bf56: Revert "Use STLPort instead of our stripped version." DO NOT MERGE.

Merge commit '9a77bf563cbe404d041d0df3530cb57ae67013aa' into eclair-mr2-plus-aosp

* commit '9a77bf563cbe404d041d0df3530cb57ae67013aa':
  Revert "Use STLPort instead of our stripped version." DO NOT MERGE.

14 years agoRevert "Use STLPort instead of our stripped version." DO NOT MERGE.
Jean-Baptiste Queru [Wed, 3 Mar 2010 22:27:34 +0000 (14:27 -0800)]
Revert "Use STLPort instead of our stripped version." DO NOT MERGE.

This reverts commit f0073a99fda2bf1acd49fa66d0dd4272d09a1e61.

14 years agoam 381c572c: (-s ours) am f0073a99: Use STLPort instead of our stripped version....
Jean-Baptiste Queru [Wed, 3 Mar 2010 21:51:21 +0000 (13:51 -0800)]
am 381c572c: (-s ours) am f0073a99: Use STLPort instead of our stripped version. DO NOT MERGE.

Merge commit '381c572c6f77708151c42fbda8c8c1ed8e67c9c5'

* commit '381c572c6f77708151c42fbda8c8c1ed8e67c9c5':
  Use STLPort instead of our stripped version. DO NOT MERGE.

14 years agoam dd77efd5: (-s ours) am 60326ce1: Android ICU4.2.1 upgrade. DO NOT MERGE. ...
Claire Ho [Wed, 3 Mar 2010 21:51:18 +0000 (13:51 -0800)]
am dd77efd5: (-s ours) am 60326ce1:     Android ICU4.2.1 upgrade. DO NOT MERGE.     Added "include <config.h>" into WebKit/android/icu/unicode/ucnv.cpp to avoid     compiler error.

Merge commit 'dd77efd5572bacfcd92fc815484a87297403a20d'

* commit 'dd77efd5572bacfcd92fc815484a87297403a20d':
  Android ICU4.2.1 upgrade. DO NOT MERGE.

14 years agoam f0073a99: Use STLPort instead of our stripped version. DO NOT MERGE.
Jean-Baptiste Queru [Wed, 3 Mar 2010 21:40:16 +0000 (13:40 -0800)]
am f0073a99: Use STLPort instead of our stripped version. DO NOT MERGE.

Merge commit 'f0073a99fda2bf1acd49fa66d0dd4272d09a1e61' into eclair-mr2-plus-aosp

* commit 'f0073a99fda2bf1acd49fa66d0dd4272d09a1e61':
  Use STLPort instead of our stripped version. DO NOT MERGE.

14 years agoUse STLPort instead of our stripped version. DO NOT MERGE.
Jean-Baptiste Queru [Wed, 3 Mar 2010 21:08:11 +0000 (13:08 -0800)]
Use STLPort instead of our stripped version. DO NOT MERGE.

This fixes the simulator build and allows us to get closer to sharing code with
chromium.

STLPort was copied with minor edits from the Android port of gears.

14 years agoMerge "stop parsing text for addresses if input element is found"
Cary Clark [Wed, 3 Mar 2010 20:48:58 +0000 (12:48 -0800)]
Merge "stop parsing text for addresses if input element is found"

14 years agostop parsing text for addresses if input element is found
Cary Clark [Wed, 3 Mar 2010 20:41:45 +0000 (15:41 -0500)]
stop parsing text for addresses if input element is found

http://b/2420076

14 years agoMerge "add optional preftable to image codecs, for more control over the resulting...
Mike Reed [Wed, 3 Mar 2010 20:38:38 +0000 (12:38 -0800)]
Merge "add optional preftable to image codecs, for more control over the resulting bitmap config"

14 years agoMerge "Call setCurrentIndex to trigger the client callback."
Patrick Scott [Wed, 3 Mar 2010 20:24:51 +0000 (12:24 -0800)]
Merge "Call setCurrentIndex to trigger the client callback."

14 years agoCall setCurrentIndex to trigger the client callback.
Patrick Scott [Wed, 3 Mar 2010 20:18:19 +0000 (15:18 -0500)]
Call setCurrentIndex to trigger the client callback.

14 years agoMerge "Revive my change to not add anchor navigations to the history in some cases."
Patrick Scott [Wed, 3 Mar 2010 19:05:39 +0000 (11:05 -0800)]
Merge "Revive my change to not add anchor navigations to the history in some cases."

14 years agoadd optional preftable to image codecs, for more control over the resulting bitmap...
Mike Reed [Wed, 3 Mar 2010 18:25:57 +0000 (13:25 -0500)]
add optional preftable to image codecs, for more control over the resulting bitmap config

http://b/issue?id=2267010

14 years agoMerge "Adds Android-specific expected results for some storage LayoutTests when using V8"
Steve Block [Wed, 3 Mar 2010 18:54:53 +0000 (10:54 -0800)]
Merge "Adds Android-specific expected results for some storage LayoutTests when using V8"

14 years agoam 60326ce1: Android ICU4.2.1 upgrade. DO NOT MERGE. Added "include <config...
Claire Ho [Wed, 3 Mar 2010 18:51:53 +0000 (10:51 -0800)]
am 60326ce1:     Android ICU4.2.1 upgrade. DO NOT MERGE.     Added "include <config.h>" into WebKit/android/icu/unicode/ucnv.cpp to avoid     compiler error.

Merge commit '60326ce181ad373e08112435e159a9c71f85a08e' into eclair-mr2-plus-aosp

* commit '60326ce181ad373e08112435e159a9c71f85a08e':
  Android ICU4.2.1 upgrade. DO NOT MERGE.

14 years agofix build
Andrei Popescu [Wed, 3 Mar 2010 18:46:13 +0000 (18:46 +0000)]
fix build

14 years agoMerge "Fix V8 build when instrumentation is on"
Andrei Popescu [Wed, 3 Mar 2010 18:41:52 +0000 (10:41 -0800)]
Merge "Fix V8 build when instrumentation is on"

14 years agoFix V8 build when instrumentation is on
Andrei Popescu [Wed, 3 Mar 2010 18:16:12 +0000 (18:16 +0000)]
Fix V8 build when instrumentation is on

14 years ago Android ICU4.2.1 upgrade. DO NOT MERGE.
Claire Ho [Tue, 24 Nov 2009 22:03:26 +0000 (14:03 -0800)]
Android ICU4.2.1 upgrade. DO NOT MERGE.
    Added "include <config.h>" into WebKit/android/icu/unicode/ucnv.cpp to avoid
    compiler error.

    Bug: 1823720
Reviewed-by: benm@google.com,enh@google.com
    CC:
    Signed-off-by:

14 years agoMerge "Fixes a crash in WeakJavaInstance"
Steve Block [Wed, 3 Mar 2010 17:52:00 +0000 (09:52 -0800)]
Merge "Fixes a crash in WeakJavaInstance"

14 years agoRevive my change to not add anchor navigations to the history in some cases.
Patrick Scott [Wed, 3 Mar 2010 17:10:51 +0000 (12:10 -0500)]
Revive my change to not add anchor navigations to the history in some cases.

Do not add history items when there is an anchor navigation if the user did not
initiate the event.

We backed out this change because cnn.com fixed itself but now
app.showtime-app.com does the same trick and prevents the Browser from being
able to go back.

14 years agoFixes a crash in WeakJavaInstance
Steve Block [Wed, 3 Mar 2010 16:54:11 +0000 (16:54 +0000)]
Fixes a crash in WeakJavaInstance

WeakJavaInstance is a wrapper around JavaInstance. Outside of calls to
virtualBegin/virtualEnd, it replaces the strong reference to the Java instance
held by JavaInstance with a weak reference. This is to break circular references
and allow the Java instance to be garbage collected.

The code does not handle correctly the case where multiple calls are made to
virtualBegin before corresponding calls to virtualEnd. virtualBegin caches the
current instance as _weakRef. However, if virtualBegin has already been called,
the current instance is now a strong reference, and this overwrites _weakRef.
When virtualEnd is called, the instance is not restored to the weak reference. In
the WeakJavaInstance destructor, we try to restore the strong reference from the
weak reference, but this has already been deleted, causing the VM to abort.

This patch fixes the problem by returning early from virtualBegin and virtualEnd
when unmatched calls to virtualBegin have already been made.

Also fixes some style issues.

Bug: 2485164
Change-Id: I2b22a849af10e377525a3da215ca91e611d892d0

14 years agorefactor find state and scrolling
Cary Clark [Wed, 3 Mar 2010 13:35:20 +0000 (08:35 -0500)]
refactor find state and scrolling

Separate out state when find is up and is empty.
Request a scroll when setting a match, rather than when drawing.
Don't draw if there's no match.

Companion fix in frameworks/base

http://b/2370069

14 years agobump up our image cache etc. when we're on larger devices (e.g. have VFP)
Mike Reed [Wed, 3 Mar 2010 14:28:03 +0000 (09:28 -0500)]
bump up our image cache etc. when we're on larger devices (e.g. have VFP)

fixes http://b/issue?id=2236822

14 years agofixing problem were plugin surfaces are not created.
Derek Sollenberger [Tue, 2 Mar 2010 16:08:48 +0000 (11:08 -0500)]
fixing problem were plugin surfaces are not created.

The problem occurs when a page containing a plugin is refreshed
or the plugin is loaded using javascript. If the window size
is set before the plugin view has its parent sent then the
plugin surfaces were not being initialized. This change ensures
that if that happens the surfaces will still be created.

see bug #2476059.

14 years agoallow anchor containing layer to be mapped to navable layer
Cary Clark [Mon, 1 Mar 2010 14:24:38 +0000 (09:24 -0500)]
allow anchor containing layer to be mapped to navable layer

A layer may be inside or outside of an anchor. If it is inside,
the corresponding CachedNode has already been created, but is
being tracked. These tracked nodes need their layer and unclipped
bits set. For now, node in layers are assumed to draw last in
their layer, and aren't obscured by other drawing.

We may allow nodes in layers to be obscured one day. Preparing
for that, translate the layer picture by its global position
when testing to see if the node is hidden.

Fix debugging by allowing CachedLayer to see inside LayerAndroid.

http://b/2453974

14 years agoam 4e409302: am a506357e: Adding logging to android\'s plugin view.
Derek Sollenberger [Tue, 2 Mar 2010 15:17:21 +0000 (07:17 -0800)]
am 4e409302: am a506357e: Adding logging to android\'s plugin view.

Merge commit '4e409302db5afdfb18231bd3e1a86f85302a2599'

* commit '4e409302db5afdfb18231bd3e1a86f85302a2599':
  Adding logging to android's plugin view.

14 years agoam a506357e: Adding logging to android\'s plugin view.
Derek Sollenberger [Tue, 2 Mar 2010 15:12:40 +0000 (07:12 -0800)]
am a506357e: Adding logging to android\'s plugin view.

Merge commit 'a506357ecbae5e506e0c3e46b6ebac632fd22328' into eclair-mr2-plus-aosp

* commit 'a506357ecbae5e506e0c3e46b6ebac632fd22328':
  Adding logging to android's plugin view.

14 years agoAdding logging to android's plugin view.
Derek Sollenberger [Tue, 2 Mar 2010 14:50:27 +0000 (09:50 -0500)]
Adding logging to android's plugin view.

14 years agoAdds Android-specific expected results for some storage LayoutTests when using V8
Steve Block [Tue, 2 Mar 2010 00:15:52 +0000 (00:15 +0000)]
Adds Android-specific expected results for some storage LayoutTests when using V8

These expected results are mostly copied from their counterparts in LayoutTests/storage.
Minor modifications have been made to account for the different output with V8.

Change-Id: Ie606e4fbe1dd0154ef0bb643e13668966592e09c

14 years agoMerge "use advance widths to deduce spaces in selected text"
Cary Clark [Mon, 1 Mar 2010 19:14:04 +0000 (11:14 -0800)]
Merge "use advance widths to deduce spaces in selected text"

14 years agouse advance widths to deduce spaces in selected text
Cary Clark [Mon, 1 Mar 2010 18:38:55 +0000 (13:38 -0500)]
use advance widths to deduce spaces in selected text

The earlier method of using bounding boxes does not work if the
characters have sufficiently large kerning, such as 'A Java' or
sufficiently small kerning, such as '16'.

Also, don't add spaces after hyphens or dashes, and detect
baseline changes correctly. Reset the first space condition once
text is clipped out.

http://b/2457350
http://b/2165553

14 years agoMerge "Adds Android-specific result for a Geolocation LayoutTest that fails with V8"
Steve Block [Mon, 1 Mar 2010 18:53:35 +0000 (10:53 -0800)]
Merge "Adds Android-specific result for a Geolocation LayoutTest that fails with V8"

14 years agoMerge "Make nativeMoveCursorToNextTextInput return a value based on success."
Leon Scroggins [Mon, 1 Mar 2010 18:16:04 +0000 (10:16 -0800)]
Merge "Make nativeMoveCursorToNextTextInput return a value based on success."

14 years agoMake nativeMoveCursorToNextTextInput return a value based on success.
Leon Scroggins [Mon, 1 Mar 2010 16:23:47 +0000 (11:23 -0500)]
Make nativeMoveCursorToNextTextInput return a value based on success.

Also no longer differentiate between textfields and areas for the purpose
of the next action.

Part of fix for http://b/issue?id=2478052

Requires a change to frameworks/base

14 years agoThe element that receives the touch event should be the target element of the touch...
Ben Murdoch [Tue, 23 Feb 2010 18:59:06 +0000 (18:59 +0000)]
The element that receives the touch event should be the target element of the touch that caused the event to be generated.

Also build the touch target list based on the target element of the touch that caused the event to be generated.

Landed to webkit as http://trac.webkit.org/changeset/55287

Change-Id: I4414b703a7b3e7c6ea6917be624ab9a7786e24a9

14 years agoUpdate touch handler in preparation for upstreaming of m_originatingTouchTargets...
Ben Murdoch [Tue, 23 Feb 2010 18:26:46 +0000 (18:26 +0000)]
Update touch handler in preparation for upstreaming of m_originatingTouchTargets map. WebKit bug tracking is https://bugs.webkit.org/show_bug.cgi?id=34585

Landed to webkit as http://trac.webkit.org/changeset/55230

Change-Id: I68fa02615aec35c8c2d3e7c69e8479c33d66293c

14 years agoMerge "ignore rootlayer when drawing (fixes regression) dump layers contents in displ...
Mike Reed [Fri, 26 Feb 2010 19:46:15 +0000 (11:46 -0800)]
Merge "ignore rootlayer when drawing (fixes regression) dump layers contents in displayTree.txt"

14 years agoignore rootlayer when drawing (fixes regression)
Mike Reed [Fri, 26 Feb 2010 19:44:28 +0000 (14:44 -0500)]
ignore rootlayer when drawing (fixes regression)
dump layers contents in displayTree.txt

14 years agoMerge " Don't crash when throwing javascript exceptions from plugins without ...
Leon Clarke [Fri, 26 Feb 2010 17:32:41 +0000 (09:32 -0800)]
Merge "    Don't crash when throwing javascript exceptions from plugins without     javascript having been initialised."

14 years ago Don't crash when throwing javascript exceptions from plugins without
Leon Clarke [Fri, 26 Feb 2010 17:29:17 +0000 (17:29 +0000)]
Don't crash when throwing javascript exceptions from plugins without
    javascript having been initialised.

14 years agoMerge "Adds layout tests for HTML5 features"
Steve Block [Fri, 26 Feb 2010 13:05:06 +0000 (05:05 -0800)]
Merge "Adds layout tests for HTML5 features"

14 years agoMerge "enable debugger support in webkit with v8"
Andrei Popescu [Fri, 26 Feb 2010 13:03:55 +0000 (05:03 -0800)]
Merge "enable debugger support in webkit with v8"

14 years agoenable debugger support in webkit with v8
Andrei Popescu [Fri, 26 Feb 2010 12:48:03 +0000 (12:48 +0000)]
enable debugger support in webkit with v8

14 years agoMerge "make methods private (or static local) if possible to reduce surface area...
Mike Reed [Fri, 26 Feb 2010 12:52:29 +0000 (04:52 -0800)]
Merge "make methods private (or static local) if possible to reduce surface area of API"

14 years agoMerge "Only set the DatabaseTracker path if it has been successfully set to something...
Ben Murdoch [Fri, 26 Feb 2010 10:11:11 +0000 (02:11 -0800)]
Merge "Only set the DatabaseTracker path if it has been successfully set to something on the Java side as the DatabaseTracker only allows us to set it once."

14 years agoMerge "Prevent unsafe upper casting by checking Element's namespaceURI."
Shimeng (Simon) Wang [Fri, 26 Feb 2010 01:10:31 +0000 (17:10 -0800)]
Merge "Prevent unsafe upper casting by checking Element's namespaceURI."

14 years agomake methods private (or static local) if possible to reduce surface area of API
Mike Reed [Thu, 25 Feb 2010 22:07:06 +0000 (17:07 -0500)]
make methods private (or static local) if possible to reduce surface area of API

14 years agoPrevent unsafe upper casting by checking Element's namespaceURI.
Shimeng (Simon) Wang [Thu, 25 Feb 2010 19:14:31 +0000 (11:14 -0800)]
Prevent unsafe upper casting by checking Element's namespaceURI.

For some website, when elements are created, somehow the tagName's
namespaceURI is empty, so for "form" element, Element node is created
instead of expected HTMLFormElement.

Bug: 2461358
modified:   WebKit/android/jni/WebCoreFrameBridge.cpp

14 years agoOnly set the DatabaseTracker path if it has been successfully set to something on...
Ben Murdoch [Thu, 25 Feb 2010 18:36:43 +0000 (18:36 +0000)]
Only set the DatabaseTracker path if it has been successfully set to something on the Java side as the DatabaseTracker only
allows us to set it once.

Change-Id: I5d0121dac9a2b276a483992784822c1f52c04853

14 years agoremove unused methods
Mike Reed [Thu, 25 Feb 2010 18:27:38 +0000 (13:27 -0500)]
remove unused methods

14 years agoFix the gap when using the IME (Bug:2453748)
Nicolas Roard [Thu, 25 Feb 2010 14:41:12 +0000 (14:41 +0000)]
Fix the gap when using the IME (Bug:2453748)

The problem was that layers may have a different size than their corresponding element,
but we used the layer's size instead of the element's to compute the fixed position.
The fix asks for the element visible overflow size (needed, some children may be outside the bounds of the element itself).

14 years agoMerge "Temporarily disable debugger support on V8 due to a crash"
Andrei Popescu [Thu, 25 Feb 2010 14:13:43 +0000 (06:13 -0800)]
Merge "Temporarily disable debugger support on V8 due to a crash"

14 years agoTemporarily disable debugger support on V8 due to a crash
Andrei Popescu [Thu, 25 Feb 2010 13:58:48 +0000 (13:58 +0000)]
Temporarily disable debugger support on V8 due to a crash

14 years agoMerge "refactor drawing to support layers"
Cary Clark [Thu, 25 Feb 2010 13:37:40 +0000 (05:37 -0800)]
Merge "refactor drawing to support layers"

14 years agoAdds Android-specific result for a Geolocation LayoutTest that fails with V8
Steve Block [Thu, 25 Feb 2010 11:29:46 +0000 (11:29 +0000)]
Adds Android-specific result for a Geolocation LayoutTest that fails with V8

This is currently a false failure, as the only difference from the expected
output is due to V8's different syntax when reporting an exception.

Change-Id: If0107f730f4114f6968307a31841c9e6073dba1c

14 years agoAdds layout tests for HTML5 features
Steve Block [Thu, 25 Feb 2010 10:58:37 +0000 (10:58 +0000)]
Adds layout tests for HTML5 features

The following layout tests should all pass on Android, as they are for recently
implemented HTML5 features ...
- fast/dom/Geolocation
- storage
- http/tests/appcache

This change adds these tests to the Android tree, at the current WebKit revision
r54731. This is so that we can easily keep track of which tests should always be
green, and so that we can add Android-specific test results.

We also add the following paths ...
- fast/js/resources - used by the Geolocation tests
- http/conf - used by the Appcache tests

Tests that are currently failing are added to the DumpRenderTree skipped list
temporarily, to keep all tests green.

Change-Id: Id96c05e3746ed64e4e4c40c99567b8def688f90a

14 years agoMerge " Don't display our custom border round combo boxes when the stylesheet...
Leon Clarke [Thu, 25 Feb 2010 10:30:25 +0000 (02:30 -0800)]
Merge "    Don't display our custom border round combo boxes when the stylesheet has defined one."

14 years agoMerge "Use reference instead of vector copying when dealing formElements."
Shimeng (Simon) Wang [Thu, 25 Feb 2010 00:04:52 +0000 (16:04 -0800)]
Merge "Use reference instead of vector copying when dealing formElements."