OSDN Git Service

android-x86/external-webkit.git
14 years agoMerge "keep frames associated with regular hits and direct hits" into froyo
Cary Clark [Tue, 6 Apr 2010 20:17:25 +0000 (13:17 -0700)]
Merge "keep frames associated with regular hits and direct hits" into froyo

14 years agokeep frames associated with regular hits and direct hits
Cary Clark [Tue, 6 Apr 2010 20:07:01 +0000 (16:07 -0400)]
keep frames associated with regular hits and direct hits

The hit test on the nav cache returns a node/frame pair.
It looks for the closest hit, but gives priority to a direct
hit. Track the frame associated with the direct hit
separately, so that the correct node/frame pair is returned.

Change-Id: Icb1e3de4a0aad3c6dd9b2b81669f9c7bbb260282
http://b/2316138

14 years agoCherry-pick https://bugs.webkit.org/show_bug.cgi?id=37150
Andrei Popescu [Tue, 6 Apr 2010 15:34:40 +0000 (16:34 +0100)]
Cherry-pick https://bugs.webkit.org/show_bug.cgi?id=37150

Check the frame's context at PageCache save and restore time to avoid crashing when it's null.

Fix bug: 2564844

Change-Id: Ifef3fcf271b1366d4f63c42da1a9ac08bb8b78ed

14 years agoMerge "Create a method to check to see if the focus has a following textfield." into...
Cary Clark [Mon, 5 Apr 2010 18:29:47 +0000 (11:29 -0700)]
Merge "Create a method to check to see if the focus has a following textfield." into froyo

14 years agoMerge "When we stopUpdating(), we should cancel the outstanding timer." into froyo
Grace Kloba [Fri, 2 Apr 2010 23:09:33 +0000 (16:09 -0700)]
Merge "When we stopUpdating(), we should cancel the outstanding timer." into froyo

14 years agoWhen we stopUpdating(), we should cancel the outstanding
Grace Kloba [Fri, 2 Apr 2010 22:26:11 +0000 (15:26 -0700)]
When we stopUpdating(), we should cancel the outstanding
timer.

When timer fired, we should check m_lastError before
calling errorOccurred().

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

14 years agoFix pluginstream delay timer as it is expecting seconds
Grace Kloba [Fri, 2 Apr 2010 18:05:18 +0000 (11:05 -0700)]
Fix pluginstream delay timer as it is expecting seconds
instead of milliseconds.

While the timer is active, don't deliverData.

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

14 years agoOn demand plugins are now per-page, not per-object.
Patrick Scott [Fri, 2 Apr 2010 13:43:08 +0000 (09:43 -0400)]
On demand plugins are now per-page, not per-object.

Traverse the frame tree and enable all plugins currently on the page. Remember
the setting for any future plugins that are created. Reset the setting in
makeRepresentation as that seems to be called for all new documents.

Bug: 2564543
Change-Id: I558f068992719ee0236ba40f76b918b10cfe0ed9

14 years agoMerge "If "widget" is already existed in the HashMap when createScriptInstanceForWidg...
Grace Kloba [Thu, 1 Apr 2010 16:49:56 +0000 (09:49 -0700)]
Merge "If "widget" is already existed in the HashMap when createScriptInstanceForWidget(widget) is called, we need to release the reference of the matching npObject to avoid leak." into froyo

14 years agoGet the correct class name from the JVM when constructing arrays in the JNI bindings.
Ben Murdoch [Thu, 1 Apr 2010 14:01:26 +0000 (15:01 +0100)]
Get the correct class name from the JVM when constructing arrays in the JNI bindings.

Also a change in packages/apps/Browser to update the unit tests for JNI bindings.

Fix for b/2540502

Change-Id: Ia86a1ac672bd6653427ac0a969b4d40c86141415

14 years agoIf "widget" is already existed in the HashMap when
Grace Kloba [Thu, 1 Apr 2010 07:18:59 +0000 (00:18 -0700)]
If "widget" is already existed in the HashMap when
createScriptInstanceForWidget(widget) is called,
we need to release the reference of the matching
npObject to avoid leak.

HTMLPlugInElement::getInstance() only calls
createScriptInstanceForWidget(widget) once. But
HTMLEmbedElement is using its closest ancestor who
has objectTag to get the widget. So the same widget
can exist in the HashMap if both <object> and its
child <embed>'s getInstance() are called.

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

14 years agoMake sure html plugin element supports focus so that
Grace Kloba [Wed, 31 Mar 2010 19:07:39 +0000 (12:07 -0700)]
Make sure html plugin element supports focus so that
plugin can call focus() on it.

By default, only nodes can be tabbed through supports
focus. We make plugin element like frame element where
it always supports focus. In Android, plugin has a
focused mode, so it requires this change.

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

14 years agoCreate a method to check to see if the focus has a following textfield.
Leon Scroggins [Wed, 31 Mar 2010 19:29:25 +0000 (15:29 -0400)]
Create a method to check to see if the focus has a following textfield.

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

Requires a change to frameworks/base.

Change-Id: I450cb8ee109e9a1f38a7290032fb3ca948dcc71a

14 years agoMerge "Make sure the protocol is lower case in the redirect." into froyo
Patrick Scott [Wed, 31 Mar 2010 17:58:16 +0000 (10:58 -0700)]
Merge "Make sure the protocol is lower case in the redirect." into froyo

14 years agoMake sure the protocol is lower case in the redirect.
Patrick Scott [Wed, 31 Mar 2010 17:34:16 +0000 (13:34 -0400)]
Make sure the protocol is lower case in the redirect.

Bug: 2560217
Change-Id: I22a7c854a4e043682eac8b92ca2dece256af76b8

14 years agoMerge "If there is no find location then return early in findNext." into froyo
Ben Murdoch [Wed, 31 Mar 2010 14:28:16 +0000 (07:28 -0700)]
Merge "If there is no find location then return early in findNext." into froyo

14 years agoMerge "Only allows composited layers if not in iframes" into froyo
Nicolas Roard [Wed, 31 Mar 2010 14:00:25 +0000 (07:00 -0700)]
Merge "Only allows composited layers if not in iframes" into froyo

14 years agoIf there is no find location then return early in findNext.
Ben Murdoch [Wed, 31 Mar 2010 13:20:01 +0000 (14:20 +0100)]
If there is no find location then return early in findNext.

Fix b/2558960

Change-Id: I1cc723913ab1e3eccb21eb60ab2fe2a458eb420c

14 years agoMerge "Implement the V8 JNI bindings more completely." into froyo
Ben Murdoch [Wed, 31 Mar 2010 11:26:36 +0000 (04:26 -0700)]
Merge "Implement the V8 JNI bindings more completely." into froyo

14 years agoImplement the V8 JNI bindings more completely.
Ben Murdoch [Mon, 29 Mar 2010 15:54:12 +0000 (16:54 +0100)]
Implement the V8 JNI bindings more completely.

Change-Id: I3b3d2bff84ee4a1039424cf1881e5d3d428127f9

14 years agoMerge "cherry-pick 74f79778892548221468d075f949acb3d4064368 to froyo" into froyo
Grace Kloba [Tue, 30 Mar 2010 17:50:04 +0000 (10:50 -0700)]
Merge "cherry-pick 74f79778892548221468d075f949acb3d4064368 to froyo" into froyo

14 years agocherry-pick 74f79778892548221468d075f949acb3d4064368 to froyo
Grace Kloba [Fri, 26 Mar 2010 06:15:06 +0000 (23:15 -0700)]
cherry-pick 74f79778892548221468d075f949acb3d4064368 to froyo

In Android, as we always remap the plugin from page
space to view space, we do want to update when the rect
in the page space changed. This should fix the bug where
the plugin is inside a fixed position. So even its
page coordinate changed when scrolling, its window
coordinate didn't change. We missed the update.

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

14 years agoOnly allows composited layers if not in iframes
Nicolas Roard [Tue, 30 Mar 2010 17:36:36 +0000 (18:36 +0100)]
Only allows composited layers if not in iframes

Bug:2498776 and fix Bug:2544493

Change-Id: I0041db690cbe7d80e8e092626a95e882a5afbe03

14 years agoFix build by removing PLATFORM macro from npapi.
Andrei Popescu [Tue, 30 Mar 2010 17:28:39 +0000 (18:28 +0100)]
Fix build by removing PLATFORM macro from npapi.

Change-Id: I57d350a8933a1a4825cebb7c81d4ae944375f258

14 years agoMerge "enable gifs for large memory devices" into froyo
Cary Clark [Tue, 30 Mar 2010 17:25:50 +0000 (10:25 -0700)]
Merge "enable gifs for large memory devices" into froyo

14 years agoMerge "correct rgba order for skia" into froyo
Cary Clark [Tue, 30 Mar 2010 17:25:34 +0000 (10:25 -0700)]
Merge "correct rgba order for skia" into froyo

14 years agoenable gifs for large memory devices
Cary Clark [Tue, 30 Mar 2010 17:18:39 +0000 (13:18 -0400)]
enable gifs for large memory devices

Change-Id: I801446e8255c113d5492935f2f91dc84b0d18164
http://b/1745918

14 years agocorrect rgba order for skia
Mike Reed [Fri, 26 Mar 2010 14:53:44 +0000 (10:53 -0400)]
correct rgba order for skia

Change-Id: I368def139ab2b3c5c08807919152ca7379ab9b4f
http://b/1745918

14 years agoMerge "Ask the plugin how long to wait before calling NPN_WriteReady() again." into...
Andrei Popescu [Tue, 30 Mar 2010 16:54:23 +0000 (09:54 -0700)]
Merge "Ask the plugin how long to wait before calling NPN_WriteReady() again." into froyo

14 years agoAsk the plugin how long to wait before calling NPN_WriteReady() again.
Andrei Popescu [Tue, 30 Mar 2010 15:10:16 +0000 (16:10 +0100)]
Ask the plugin how long to wait before calling NPN_WriteReady() again.

Change-Id: I46b25a5869e91e0075913caca5e57380f72f6107

14 years agoMerge "Remove ANDROID_FIXED_ELEMENTS" into froyo
Nicolas Roard [Tue, 30 Mar 2010 12:50:13 +0000 (05:50 -0700)]
Merge "Remove ANDROID_FIXED_ELEMENTS" into froyo

14 years agoRemove ANDROID_FIXED_ELEMENTS
Nicolas Roard [Mon, 29 Mar 2010 23:56:29 +0000 (00:56 +0100)]
Remove ANDROID_FIXED_ELEMENTS

Bug:2534420

Change-Id: Ieb93c8888a1d05dece3c817a8847e4f2c22a865a

14 years agoAdd 2 pixel padding and draw 2 pixel border for flash-on-demand.
Shimeng (Simon) Wang [Mon, 29 Mar 2010 21:56:55 +0000 (14:56 -0700)]
Add 2 pixel padding and draw 2 pixel border for flash-on-demand.

Issue: 2411524
Change-Id: I04c94b8122cd85dda071a85f74a054a613b39e8c

14 years agoMake sure WebKit's page cache does not cache pages with unload handlers.
Andrei Popescu [Mon, 29 Mar 2010 16:43:47 +0000 (17:43 +0100)]
Make sure WebKit's page cache does not cache pages with unload handlers.

Fix b: 2552004

Change-Id: Iac6737fbb9a1eca734ea7474f99ccf66ee916bd7

14 years agoCherry pick from master.
Steve Block [Fri, 26 Mar 2010 11:15:43 +0000 (11:15 +0000)]
Cherry pick from master.

Cherry-picks WebKit change 56105 to eliminate use of bzero in WebKit common code

Note that manual changes were required to JNIUtilityPrivate.cpp as this file has
changed upstreamed, but the merge will be trivial.

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

Bug: 2535696
Change-Id: I464a4aa78b1625961724b6001caba1c315ed9f91

14 years agoCherry pick patch in https://bugs.webkit.org/show_bug.cgi?id=36665
Andrei Popescu [Mon, 29 Mar 2010 11:08:36 +0000 (12:08 +0100)]
Cherry pick patch in https://bugs.webkit.org/show_bug.cgi?id=36665
which adds V8 bindings for page cache.

Fix b: 2533219

Change-Id: I57f067adbbef76b4f8ec6c50b9e85fb2b7fc619a

14 years agoRemove a warning.
Leon Scroggins III [Thu, 25 Mar 2010 17:01:13 +0000 (13:01 -0400)]
Remove a warning.

Change-Id: Iffd11a306df9a5140b3406e825185713d17d273e

14 years agodon't track layer node twice
Cary Clark [Thu, 25 Mar 2010 14:18:35 +0000 (10:18 -0400)]
don't track layer node twice

If a cache node is both in a layer and contains a layer, don't
add it the second time.

Change-Id: I45cc302e234565bfbc87649ca503f515b1f487e8
http://b/2543736

14 years agoApparently this needs to happen again (at least, it did for my build).
Dan Egnor [Wed, 24 Mar 2010 22:32:36 +0000 (15:32 -0700)]
Apparently this needs to happen again (at least, it did for my build).

Change-Id: I89dbec1be74da68afb2a03b75ad5bf87426d8889

14 years agoMerge "Mark positioned elements as needing a relayout when checking for hit test...
Nicolas Roard [Wed, 24 Mar 2010 20:41:14 +0000 (13:41 -0700)]
Merge "Mark positioned elements as needing a relayout when checking for hit test. This is necessary when using composited fixed layers, as the layers position may have moved UI-side, while the webkit's related position of those layers may not have been updated yet."

14 years agoMark positioned elements as needing a relayout when checking for hit test.
Nicolas Roard [Wed, 24 Mar 2010 18:27:42 +0000 (18:27 +0000)]
Mark positioned elements as needing a relayout when checking for hit test.
This is necessary when using composited fixed layers, as the layers position
may have moved UI-side, while the webkit's related position of those layers
may not have been updated yet.

Fix Bug:2457215

Change-Id: If4f0e9c3d1a4786b29dcc7c2dc3510ba090b6a36

14 years agoMerge "compile fix for V8 with debug builds"
Kristian Monsen [Wed, 24 Mar 2010 19:35:36 +0000 (12:35 -0700)]
Merge "compile fix for V8 with debug builds"

14 years agocompile fix for V8 with debug builds
Kristian Monsen [Wed, 24 Mar 2010 19:26:22 +0000 (19:26 +0000)]
compile fix for V8 with debug builds

Change-Id: Icffc7b0d5f9a9b2da66dca37c0c8d084c11491b7

14 years agoMerge "Fixes XHR requests to use the username and password supplied from JavaScript"
Steve Block [Wed, 24 Mar 2010 18:28:50 +0000 (11:28 -0700)]
Merge "Fixes XHR requests to use the username and password supplied from JavaScript"

14 years agoFix the background of the placeholder.
Patrick Scott [Wed, 24 Mar 2010 18:18:50 +0000 (14:18 -0400)]
Fix the background of the placeholder.

Draw a light gray 1 pixel border instead of using an asset.

Bug: 2411524
Change-Id: Ibc95148e2bf13e0dcc58d747e3733cc6993dddf6

14 years agoFixes XHR requests to use the username and password supplied from JavaScript
Steve Block [Wed, 24 Mar 2010 16:27:17 +0000 (16:27 +0000)]
Fixes XHR requests to use the username and password supplied from JavaScript

Currently, the browser does not use the credentials supplied from JavaScript.
If a request returns a 401 Unauthorized, the browser always prompts the user.
This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method

Bug: 2533522
Change-Id: Ic232003a3f321167810fc7263d6ecb654eeeb5eb

14 years agoMerge "drawRect is defined (in header) to always stroke with 1.0"
Mike Reed [Wed, 24 Mar 2010 17:45:41 +0000 (10:45 -0700)]
Merge "drawRect is defined (in header) to always stroke with 1.0"

14 years agodrawRect is defined (in header) to always stroke with 1.0
Mike Reed [Wed, 24 Mar 2010 17:33:09 +0000 (13:33 -0400)]
drawRect is defined (in header) to always stroke with 1.0

Change-Id: I95bef5b769c9b2637424ae4f22ccd19ed6e4ff9a

14 years agoMerge "Renders fixed layers with the root canvas matrix. Fix some positioning issues."
Nicolas Roard [Wed, 24 Mar 2010 17:22:54 +0000 (10:22 -0700)]
Merge "Renders fixed layers with the root canvas matrix. Fix some positioning issues."

14 years agoRenders fixed layers with the root canvas matrix. Fix some positioning issues.
Nicolas Roard [Fri, 19 Mar 2010 17:10:50 +0000 (17:10 +0000)]
Renders fixed layers with the root canvas matrix. Fix some positioning issues.

Bug:2526966 Bug:1818168

The current rendering code exposes some issues with the fact that we have
fixed layers in the layers hierarchy -- parents transformations are also applied
to the fixed layers, which is not what we want (fixed layers should be applied
on the original canvas, with the original transform -- e.g. toolbar present or not --
but no more).

One previously discussed solution was to move the fixed layers to their own hierarchy;
but doing so would mean to also redo all the z-index management that we already have
in the current system. The simplest way is therefore to use the original matrix (the
canvas' matrix) when we have a fixed layer. The way we do this is by inserting a new
LayerAndroid before the LayerAndroid root, setting the matrix of that new root to be
the canvas' matrix. The drawing is then unaffected, but we can ask skia to draw using
the root's matrix.

The second issue solved in the CL is some positioning troubles; layers may have
different dimensions than their render view, and the previous code was considering that
the views were always drawn at the origin in the layer. By removing the parents layers
transforms, this is not the case anymore, and we therefore need to take the render view
offset into account. Finally there is some additional debug code in LayerAndroid.

Change-Id: Id353ad3dfd9808252643f0e4f0140dde67480719

14 years agoMerge "Add a special case to handle "wap" style html."
Grace Kloba [Wed, 24 Mar 2010 16:10:46 +0000 (09:10 -0700)]
Merge "Add a special case to handle "wap" style html."

14 years agoDo not redirect data to our placeholder.
Patrick Scott [Wed, 24 Mar 2010 13:50:27 +0000 (09:50 -0400)]
Do not redirect data to our placeholder.

Bug: 2539312
Change-Id: I952b854cc65c5481e9fed04d2169b0f01536d5a4

14 years agoAdd a special case to handle "wap" style html.
Grace Kloba [Tue, 23 Mar 2010 23:14:34 +0000 (16:14 -0700)]
Add a special case to handle "wap" style html.

If we get here, it is html mimetype, not wap mimetype.
Treat the "wap" style like "mobile" style by using
device-width as viewport width.

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

14 years agoMerge "Add on-demand plugin support."
Patrick Scott [Tue, 23 Mar 2010 20:36:20 +0000 (13:36 -0700)]
Merge "Add on-demand plugin support."

14 years agoMerge "Revert "Revive my change to not add anchor navigations to the history in some...
Patrick Scott [Tue, 23 Mar 2010 20:30:18 +0000 (13:30 -0700)]
Merge "Revert "Revive my change to not add anchor navigations to the history in some cases.""

14 years agoRevert "Revive my change to not add anchor navigations to the history in some cases."
Patrick Scott [Tue, 23 Mar 2010 20:27:00 +0000 (16:27 -0400)]
Revert "Revive my change to not add anchor navigations to the history in some cases."

This reverts commit a6e5d463b2fbb6ad4e154719d6846231a32764a7.

14 years agoAdd on-demand plugin support.
Patrick Scott [Mon, 22 Mar 2010 14:09:16 +0000 (10:09 -0400)]
Add on-demand plugin support.

The Settings object now has an on-demand flag for plugins (this was to avoid
more edits to webkit code). If plugins are on-demand and a plugin is installed
that can handle the content, insert a placeholder widget. If the user clicks on
the placeholder, the plugin will be enabled.

The widget currently does not clip the context correctly. It only clips based on
the widget frame. This is due to a bug (already filed) where the scroll offset
is producing bad clip rectangles.

Requires a framework change.

Bug: 2411524
Change-Id: If3931da8da2339a2385ae78b609c49fa069892ab

14 years agoMerge "Allowing native code access to the application context as long as there is...
Derek Sollenberger [Tue, 23 Mar 2010 19:25:14 +0000 (12:25 -0700)]
Merge "Allowing native code access to the application context as long as there is at least one valid instance of the webviewcore class."

14 years agoAllowing native code access to the application context as long as
Derek Sollenberger [Tue, 23 Mar 2010 18:07:05 +0000 (14:07 -0400)]
Allowing native code access to the application context as long as
there is at least one valid instance of the webviewcore class.

This change allows plugins access to the application context when
the plugin package is loaded, prior to any instances of the plugin
being created.

Change-Id: I74a58cf76cc3c2d0ef7bca19346f13f58f616830

14 years agoMerge "Only replaced flash content if youtube app is installed. Fix for bug 2521517."
Kristian Monsen [Tue, 23 Mar 2010 16:37:55 +0000 (09:37 -0700)]
Merge "Only replaced flash content if youtube app is installed. Fix for bug 2521517."

14 years agoOnly replaced flash content if youtube app is installed. Fix for bug 2521517.
Kristian Monsen [Tue, 23 Mar 2010 10:17:19 +0000 (10:17 +0000)]
Only replaced flash content if youtube app is installed. Fix for bug 2521517.

Change-Id: Id1b2401728d03410a10bac6674450f5123b4785e

14 years agoUse EmojiFoctory::GetShiftJisConverterName() instead of relying on static string.
Daisuke Miyakawa [Tue, 23 Mar 2010 02:07:30 +0000 (11:07 +0900)]
Use EmojiFoctory::GetShiftJisConverterName() instead of relying on static string.

This change should be with the change Iccbef288.

Bug: 2327318
Change-Id: Ie67d6c1ef60d8e57784e903e3e00a73d3bec0f82

14 years agoMerge "Only enable composited fixed elements for mobile sites."
Nicolas Roard [Mon, 22 Mar 2010 22:18:04 +0000 (15:18 -0700)]
Merge "Only enable composited fixed elements for mobile sites."

14 years agoOnly enable composited fixed elements for mobile sites.
Nicolas Roard [Fri, 19 Mar 2010 11:51:19 +0000 (11:51 +0000)]
Only enable composited fixed elements for mobile sites.

We can consider a website as being a 'mobile' site if:
- the viewport width is either undefined (-1) or equal to device-width (0)
- no scaling is allowed

Change-Id: Id88257278312077a170eb10d9f666c46bad135b6

14 years agoAdd a new API on the resource loader to pause the current load. We use this when...
Ben Murdoch [Fri, 12 Mar 2010 20:46:03 +0000 (20:46 +0000)]
Add a new API on the resource loader to pause the current load. We use this when the plugin cannot accept any more data to prevent WebKit
buffering the data that the plugin can't take. This can result in a crash if the buffer gets too big (when watching an HD movie clip in
flash, for example).

Requires a frameworks/base change.

Change-Id: Ibb63d38df1014ff70fa4d65275613cbf3a217c1a

14 years agoMerge "Implements layoutTestController.setAppCacheMaximumSize"
Steve Block [Mon, 22 Mar 2010 10:44:14 +0000 (03:44 -0700)]
Merge "Implements layoutTestController.setAppCacheMaximumSize"

14 years agouse picture recording flag to speed up clipPath (and avoid asserts in very large...
Mike Reed [Fri, 19 Mar 2010 17:26:35 +0000 (13:26 -0400)]
use picture recording flag to speed up clipPath (and avoid asserts in very large edgelists)
override (and no-op) clipPath() in IsEmptyCanvas, same reasons as above.

Change-Id: I70b1565a11c1e314fdde507c1b2118b9aba651e6

14 years agoAdd back a missing ifdef
Nicolas Roard [Fri, 19 Mar 2010 17:10:50 +0000 (17:10 +0000)]
Add back a missing ifdef

Change-Id: Ib0f0cf689e95b7333045df53ca645d34a0db21a4

14 years agoImplements layoutTestController.setAppCacheMaximumSize
Steve Block [Fri, 19 Mar 2010 15:31:42 +0000 (15:31 +0000)]
Implements layoutTestController.setAppCacheMaximumSize

Change-Id: I2cf3d3135fbd21158525866af458eb89f902fb66

14 years agoMerge "Fix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*""
Brian Carlstrom [Fri, 19 Mar 2010 00:46:38 +0000 (17:46 -0700)]
Merge "Fix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*""

14 years agoFix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*"
Brian Carlstrom [Fri, 19 Mar 2010 00:06:20 +0000 (17:06 -0700)]
Fix comment from "WebView.LOAD_*" to "WebSettings.LOAD_*"

While improving the javadoc for
android.webkit.BrowserFrame.startLoadingResource, I noticed that the
Java class metioned in the C++ comments was wrong.

Change-Id: Ibf6234735fc6b92b444f6cf3b4c6bb5c33675525

14 years agoMerge "Fill in appropriate referer URL plugin initiated resource loading."
Shimeng (Simon) Wang [Thu, 18 Mar 2010 18:17:50 +0000 (11:17 -0700)]
Merge "Fill in appropriate referer URL plugin initiated resource loading."

14 years agoFill in appropriate referer URL plugin initiated resource loading.
Shimeng (Simon) Wang [Thu, 18 Mar 2010 17:13:46 +0000 (10:13 -0700)]
Fill in appropriate referer URL plugin initiated resource loading.

Didn't think of better way to code in the common code.

Bug:2512527
Change-Id: Ie656ce1c399f238187045be41ece1fc2feefab90

14 years agoMerge "Pass selection data along with message to open the keyboard."
Leon Scroggins [Thu, 18 Mar 2010 17:20:41 +0000 (10:20 -0700)]
Merge "Pass selection data along with message to open the keyboard."

14 years agoMerge "Implement margin for fixed elements. Last missing piece to fix Bug:2252505"
Nicolas Roard [Thu, 18 Mar 2010 16:57:34 +0000 (09:57 -0700)]
Merge "Implement margin for fixed elements. Last missing piece to fix Bug:2252505"

14 years agoPass selection data along with message to open the keyboard.
Leon Scroggins [Thu, 18 Mar 2010 16:43:35 +0000 (12:43 -0400)]
Pass selection data along with message to open the keyboard.

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

Requires a change to frameworks/base

Change-Id: I7f703746bdd00aaae2607a6a41ac4916f43d37b1

14 years agoImplement margin for fixed elements.
Nicolas Roard [Thu, 18 Mar 2010 16:35:27 +0000 (16:35 +0000)]
Implement margin for fixed elements.
Last missing piece to fix Bug:2252505

Billmonk.com uses a centered fixed element with negative margins,
and we were not accounting for those...
Accounting for the margins move the fixed layer at the same place
than webkit think it is, and therefore clicks do work.

Change-Id: I6a736d06273df7d2bbc597c17ce042aa8b75b4e2

14 years agoMerge "Adds Android-specific results for an appcache layout test"
Steve Block [Thu, 18 Mar 2010 15:55:23 +0000 (08:55 -0700)]
Merge "Adds Android-specific results for an appcache layout test"

14 years agoMerge "Fix click issues when using fixed elements. This CL also fix the positioning...
Nicolas Roard [Thu, 18 Mar 2010 15:35:01 +0000 (08:35 -0700)]
Merge "Fix click issues when using fixed elements. This CL also fix the positioning of a fixed layer when no position is defined, and also only use the screen to position only the fixed elements, not other types of positioned elements."

14 years agoAdds Android-specific results for an appcache layout test
Steve Block [Thu, 18 Mar 2010 15:12:02 +0000 (15:12 +0000)]
Adds Android-specific results for an appcache layout test

Currently this test fails only because of textual differences in the console
message produced on Android.

Change-Id: I6f2e75b1bad9f3e8d7636d5f2b59b2d4b22fd779

14 years agoFix click issues when using fixed elements. This CL also fix the positioning
Nicolas Roard [Wed, 17 Mar 2010 21:15:55 +0000 (21:15 +0000)]
Fix click issues when using fixed elements. This CL also fix the positioning
of a fixed layer when no position is defined, and also only use the screen
to position only the fixed elements, not other types of positioned elements.

Bug:2521087

The click issues were due to not returning the fixed element when looking
for a parent stackingContext in RenderLayer::stackingContext().
This resulted in incorrect coordinates for the layers children of a
fixed layer, that we then had to recompute in
RenderLayer::convertToLayerCoords(), but this in turns was invaliding
hit test detection...

Fixed elements are now positioned relative to the screen instead of the
virtual viewport (ANDROID_FIXED_ELEMENTS); but this was applying
indiscriminantly to all positioned elements, absolute elements included.
The CL modify RenderBox::containingBlockWidthForPositioned() and
RenderBox::containingBlockHeightForPositioned() to only do this for
fixed elements.

Finally, fixed layers were wrongly positioned if the positions were not
fully set (e.g. only setting top:0 but no left or right). The change to
LayerAndroid::updateFixedLayersPositions() fixes this.

Change-Id: I07a179dd631a2bc1a313e33ffcf69ef388ecb7ca

14 years agowindow may not be initialized when plugin is first called
Cary Clark [Thu, 18 Mar 2010 15:01:14 +0000 (11:01 -0400)]
window may not be initialized when plugin is first called

Change-Id: I37ba49b9cbd5170613f0d8e694aa79b49585a8ee
http://b/2524032

14 years agoget bounds of focused node
Cary Clark [Wed, 17 Mar 2010 19:55:24 +0000 (15:55 -0400)]
get bounds of focused node

companion fix in framework/base

Change-Id: I7d9191ea9c95dafac7f7e91a70d02c7d055c6967
http://b/2521087

14 years agoMerge "Fixes the Mac build"
Steve Block [Wed, 17 Mar 2010 19:22:09 +0000 (12:22 -0700)]
Merge "Fixes the Mac build"

14 years agoFixes the Mac build
Steve Block [Wed, 17 Mar 2010 18:23:16 +0000 (18:23 +0000)]
Fixes the Mac build

- JavaInstanceJSC.cpp - Adds ANDROID guards around some temporary logging
- Geolocation.cpp - Adds ANDROID guards around changes waiting to be upstreamed
- WebChromeClient.h / EmptyClients.h - Pulls the Mac part of a WebKit change for which only the Android part was cherry-picked in https://android-git.corp.google.com/g/#change,41747

Change-Id: Ide97cb6b05e78528fe4b9430466837dedaadc4cf

14 years agoMerge "Compare the client rather than the handle as the handle may not be set yet."
Patrick Scott [Wed, 17 Mar 2010 18:39:25 +0000 (11:39 -0700)]
Merge "Compare the client rather than the handle as the handle may not be set yet."

14 years agoCompare the client rather than the handle as the handle may not be set yet.
Patrick Scott [Wed, 17 Mar 2010 18:33:58 +0000 (14:33 -0400)]
Compare the client rather than the handle as the handle may not be set yet.

Bug: 2256744
Change-Id: I45baf86d56192c8752cb34f33795d2fa015ebe26

14 years agoMerge "Disable workers"
Steve Block [Wed, 17 Mar 2010 18:09:57 +0000 (11:09 -0700)]
Merge "Disable workers"

14 years agoDisable workers
Steve Block [Wed, 17 Mar 2010 14:37:19 +0000 (14:37 +0000)]
Disable workers

This is because V8 on Android does not have the required locking.
Also disables channel messaging, which is used only with workers.

Bug: 2522239
Change-Id: I6cb91b4048c7e1a0351e422561625397a2e98986

14 years agoMerge "Fix a webkit bug."
Shimeng (Simon) Wang [Wed, 17 Mar 2010 18:05:54 +0000 (11:05 -0700)]
Merge "Fix a webkit bug."

14 years agoMerge changes I23ce1e5a,Ieee214f4
Steve Block [Wed, 17 Mar 2010 17:49:56 +0000 (10:49 -0700)]
Merge changes I23ce1e5a,Ieee214f4

* changes:
  Add missing WORKERS guards to V8 bindings
  Cherry-pick WebKit change 56112 to add WORKERS guards to V8 bindings

14 years agoFix a webkit bug.
Shimeng (Simon) Wang [Tue, 16 Mar 2010 18:32:31 +0000 (11:32 -0700)]
Fix a webkit bug.

Change-Id: Ib8ae67e76c03027fcece73f2d36fc0ea41164e40

14 years agoMerge changes If72cb478,Ie6365073
Steve Block [Wed, 17 Mar 2010 17:47:17 +0000 (10:47 -0700)]
Merge changes If72cb478,Ie6365073

* changes:
  Cherry-pick WebKit change 55084 to add SHARED_WORKERS guard in V8 globalObjectPrototypeIsDOMWindow
  Cherry-pick WebKit change 54972 to merge DOMWindow and WorkerContext object wrapping in V8 bindings

14 years agoMerge "Refactor how we set up the layers hierarchy when using fixed composited layers...
Nicolas Roard [Wed, 17 Mar 2010 17:11:14 +0000 (10:11 -0700)]
Merge "Refactor how we set up the layers hierarchy when using fixed composited layers, and fix the z-index position."

14 years agoMerge "Fix for Bug 2486292, transparent backgrounds not transparent in Froyo."
Kristian Monsen [Wed, 17 Mar 2010 15:49:12 +0000 (08:49 -0700)]
Merge "Fix for Bug 2486292, transparent backgrounds not transparent in Froyo."

14 years agoMerge "Pass mouse events to the subframe as the other ports by calling subframe handler."
Grace Kloba [Wed, 17 Mar 2010 15:40:44 +0000 (08:40 -0700)]
Merge "Pass mouse events to the subframe as the other ports by calling subframe handler."

14 years agoAdd missing WORKERS guards to V8 bindings
Steve Block [Wed, 17 Mar 2010 15:02:30 +0000 (15:02 +0000)]
Add missing WORKERS guards to V8 bindings

The motivation for this change is to allow us to disable workers on Android,
because V8 on Android does not have the required locking.

This change will not be upstreamed because the code has been refactored in
tip-of-tree WebKit.

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

Change-Id: I23ce1e5aecc2897da240b5229585b8e6617d8ebf

14 years agoCherry-pick WebKit change 56112 to add WORKERS guards to V8 bindings
Steve Block [Wed, 17 Mar 2010 15:01:37 +0000 (15:01 +0000)]
Cherry-pick WebKit change 56112 to add WORKERS guards to V8 bindings

The motivation for this change is to allow us to disable workers on Android,
because V8 on Android does not have the required locking.

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

Change-Id: Ieee214f4765af3188bbdc51c56f14883f6a6779c

14 years agoCherry-pick WebKit change 55084 to add SHARED_WORKERS guard in V8 globalObjectPrototy...
Steve Block [Wed, 17 Mar 2010 14:36:17 +0000 (14:36 +0000)]
Cherry-pick WebKit change 55084 to add SHARED_WORKERS guard in V8 globalObjectPrototypeIsDOMWindow

The motivation for this change is to allow us to disable workers on Android,
because V8 on Android does not have the required locking.

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

Change-Id: If72cb478fb7dad6be44eaa2c1ca19e9790a9dda0

14 years agoCherry-pick WebKit change 54972 to merge DOMWindow and WorkerContext object wrapping...
Steve Block [Wed, 17 Mar 2010 15:25:43 +0000 (15:25 +0000)]
Cherry-pick WebKit change 54972 to merge DOMWindow and WorkerContext object wrapping in V8 bindings

The motivation for this change is to disable workers on Android, because V8 on
Android does not have the required locking.

The current version of WebKit in Android (54731) uses workers features without
ENABLE(WORKERS) guards in the V8 bindings. In particular,
V8DOMWrapper::instantiateV8ObjectInWorkerContext is used from generated code
without guards.

Fixing the code generator would be difficult and would be wasted effort as
V8DOMWrapper::instantiateV8ObjectInWorkerContext no longer exists in tip-of-tree
WebKit. Instead, we cherry-pick the WebKit change which removes this method.

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

Change-Id: Ie6365073d7a4d92aa7c1553d87a7e1c1ed514118