OSDN Git Service
Patrick Scott [Fri, 14 Aug 2009 12:21:09 +0000 (08:21 -0400)]
Do not merge - pulled from master
Be more restrictive when expanding iframes.
If an iframe has no scrollbars and a fixed dimension, it serves no purpose to
try and expand the contents. Some sites like to use hidden iframes for
asynchronous loading and showing or expanding those iframes causes layout
problems.
Change the expansion logic slightly to only expand iframes and not contract
them. Also update calcWidth and calcHeight to check for scrollbars or a
non-fixed dimension.
BUG=
2039520,
2004093
Patrick Scott [Mon, 17 Aug 2009 18:43:53 +0000 (14:43 -0400)]
Check for a null request in the policy callbacks.
The gtk platform also does this check to ensure that the request url is not
empty or null.
Android (Google) Code Review [Mon, 17 Aug 2009 12:16:49 +0000 (05:16 -0700)]
Merge change 21293 into eclair
* changes:
Correctly applies Geolocation timeout parameter.
Steve Block [Fri, 14 Aug 2009 16:18:35 +0000 (17:18 +0100)]
Correctly applies Geolocation timeout parameter.
Currently, the timeout is started when permissions are granted and stopped
when the success callback is made, thus rendering the timeout useless. The
correct behavior is to start the timeout when the request is started, and
to stop it as soon as a position fix is obtained.
Also, the timeout should always be applied, even if no error callback is present
and the request should be stopped on timeout.
This will be upstreamed to WebKit in bug 27256.
Cary Clark [Fri, 14 Aug 2009 15:44:05 +0000 (11:44 -0400)]
rebuild nav cache if cursor is moved to invisible node
http://b/issue?id=
2023504
moving the trackball to a node that used to be visible
but is no longer visible now triggers a rebuild of
the nav cache
Steve Block [Fri, 14 Aug 2009 11:29:38 +0000 (12:29 +0100)]
Adds ability to configure mock Geolocation service from DumpRenderTree on Android.
Steve Block [Wed, 12 Aug 2009 16:26:45 +0000 (17:26 +0100)]
do not merge: cherry-picked
360742dd52ce2e67f08b219c5148577ce2e2b741 from master branch
When Geolocation permissions are denied, terminate all watchers as well as one-shots.
Feng Qian [Fri, 14 Aug 2009 04:54:48 +0000 (21:54 -0700)]
Add GC support in V8 and calling GC in WebCoreFrameBridge::clearCache.
This is experimental, we'd like to see the impact on page cycler intl1 and intl2.
Feng Qian [Thu, 13 Aug 2009 22:11:52 +0000 (15:11 -0700)]
Avoid calling GC in Context::New
TestShellActivity now sets V8 flag --expose_gc, and it should have the same effect to page cycler performance.
Feng Qian [Thu, 13 Aug 2009 20:43:20 +0000 (13:43 -0700)]
Remove experimental nolazy flag.
I didn't see performance changes.
Leon Scroggins [Wed, 12 Aug 2009 22:41:12 +0000 (18:41 -0400)]
Pass clicks to webkit's textfield to determine the new selection.
Requires a corresponding change to frameworks/base. We were previously
letting WebTextView handle clicks, determine the change in selection,
and pass that down to webkit. This sometimes resulted in a different
placement of the caret if the WebTextView and the webkit-rendered
textfield did not line up exactly. Now, we pass the click directly
to webkit, which determines the new selection and passes that info
back to the WebTextView. This also has the benefit of letting
the WebTextView reflect changes in the selection that originated from
webkit. Also remove some unused parameters.
Android (Google) Code Review [Thu, 13 Aug 2009 16:46:39 +0000 (09:46 -0700)]
Merge change 21096
* changes:
Fix a couple of bugs in SecurityOrigin when parsing database identifiers.
Android (Google) Code Review [Thu, 13 Aug 2009 16:45:39 +0000 (09:45 -0700)]
Merge change 21095
* changes:
Final part of fix to set default values of Geolocation PositionOptions. Updates to final version submitted to WebKit for bug 27254.
Steve Block [Thu, 13 Aug 2009 13:06:24 +0000 (14:06 +0100)]
Fix a couple of bugs in SecurityOrigin when parsing database identifiers.
Android (Google) Code Review [Thu, 13 Aug 2009 14:00:18 +0000 (07:00 -0700)]
Merge change 20950
* changes:
Fail fast if Geolocation permissions have already been denied.
Steve Block [Wed, 12 Aug 2009 11:04:12 +0000 (12:04 +0100)]
Final part of fix to set default values of Geolocation PositionOptions.
Updates to final version submitted to WebKit for bug 27254.
Feng Qian [Wed, 12 Aug 2009 22:33:49 +0000 (15:33 -0700)]
Add a utility class QemuTracerAuto when WEBCORE_INSTRUMENTATION is on.
Feng Qian [Wed, 12 Aug 2009 17:02:14 +0000 (10:02 -0700)]
EXPERIMENTAL: turn off lazy compilation to see the impact on page cycler.
Will turn it back after getting data from page cycler. (ETA 1 day)
Steve Block [Wed, 12 Aug 2009 09:03:06 +0000 (10:03 +0100)]
Fail fast if Geolocation permissions have already been denied.
Android (Google) Code Review [Tue, 11 Aug 2009 21:54:02 +0000 (14:54 -0700)]
Merge change 20814
* changes:
Enable GC call before creating a new context.
Feng Qian [Tue, 11 Aug 2009 21:45:40 +0000 (14:45 -0700)]
Enable GC call before creating a new context.
I think this is very likely the cause of big memory jump and slowdown of page cycler.
Android (Google) Code Review [Tue, 11 Aug 2009 20:31:35 +0000 (13:31 -0700)]
Merge change 20749
* changes:
adding additional documentation for the plugin api
Android (Google) Code Review [Tue, 11 Aug 2009 18:28:07 +0000 (11:28 -0700)]
Merge change 20710
* changes:
Don't install v8shell by default in kila-tests
Derek Sollenberger [Tue, 11 Aug 2009 17:46:29 +0000 (13:46 -0400)]
adding additional documentation for the plugin api
Steve Block [Tue, 11 Aug 2009 12:09:00 +0000 (13:09 +0100)]
Correctly sets default values for Geolocation PositionOptions.
This will be submitted to WebKit in bug 27254.
This was first commited in change 20268, but this caused problems in the automated build and was subsequently rolled back in change 20415.
This change includes the latest comments from the WebKit review.
Android (Google) Code Review [Tue, 11 Aug 2009 15:44:23 +0000 (08:44 -0700)]
Merge change 20596
* changes:
Implements GeolocationService on Android.
Steve Block [Thu, 30 Jul 2009 15:28:29 +0000 (16:28 +0100)]
Implements GeolocationService on Android.
Derek Sollenberger [Tue, 11 Aug 2009 15:09:35 +0000 (11:09 -0400)]
cleaning up and adding more doxygen comments
Ben Murdoch [Tue, 11 Aug 2009 12:05:17 +0000 (13:05 +0100)]
WebKitMerge tool fixes.
Ben Murdoch [Tue, 11 Aug 2009 11:33:33 +0000 (12:33 +0100)]
Makefile and webkitmerge tool edits needed to merge with latest webkit.
Sriram Raman [Tue, 11 Aug 2009 06:28:06 +0000 (23:28 -0700)]
Don't install v8shell by default in kila-tests
Derek Sollenberger [Mon, 10 Aug 2009 14:26:04 +0000 (10:26 -0400)]
modifying the android_npapi.h to accomodate surfaces with different pixel formats.
Feng Qian [Sat, 8 Aug 2009 03:41:54 +0000 (20:41 -0700)]
Fix sim-eng build.
Forgot to add cfg-ia32.cc to the make file.
Feng Qian [Fri, 7 Aug 2009 19:03:03 +0000 (12:03 -0700)]
Get a new V8 revision with performance improvement in ARM compiler.
http://v8.googlecode.com/svn/branches/bleeding_edge@2654
This is a clean drop without local changes.
Android (Google) Code Review [Fri, 7 Aug 2009 15:52:42 +0000 (08:52 -0700)]
Merge change 20415
* changes:
Revert "Correctly sets default values for Geolocation PositionOptions."
Steve Block [Fri, 7 Aug 2009 15:44:18 +0000 (16:44 +0100)]
Revert "Correctly sets default values for Geolocation PositionOptions."
This reverts commit
0c9108c0f832d34e6468bf1b3ed4132053c6a0f3.
This broke the automated build. Not sure why, as it builds fine on my machine. Rolling back while I investigate.
Android (Google) Code Review [Fri, 7 Aug 2009 15:40:06 +0000 (08:40 -0700)]
Merge change 20412
* changes:
enabling plugin surfaces to manually scale based on the zoom level.
Derek Sollenberger [Fri, 7 Aug 2009 15:17:15 +0000 (11:17 -0400)]
enabling plugin surfaces to manually scale based on the zoom level.
Android (Google) Code Review [Fri, 7 Aug 2009 14:25:20 +0000 (07:25 -0700)]
Merge change 20295
* changes:
Fixes WebKit bug 26993.
Steve Block [Thu, 6 Aug 2009 17:48:53 +0000 (18:48 +0100)]
Fixes WebKit bug 26993.
Makes sure that if the Geolocation permissions request to the chrome is
implemented synchronously, watches are called back only once.
Android (Google) Code Review [Fri, 7 Aug 2009 13:38:09 +0000 (06:38 -0700)]
Merge change 20268
* changes:
Correctly sets default values for Geolocation PositionOptions.
Steve Block [Wed, 5 Aug 2009 12:19:10 +0000 (13:19 +0100)]
Correctly sets default values for Geolocation PositionOptions.
This will be submitted to WebKit in bug 27254.
Android (Google) Code Review [Thu, 6 Aug 2009 17:07:36 +0000 (10:07 -0700)]
Merge change 20270
* changes:
Add more LOCK_V8 macros: the custom V8 bindings are used to invoke JS callbacks to let the JS application know when something interesting happens. These entry points into V8 are denoted by "handleEvent" methods and need to be protected as well.
Android (Google) Code Review [Thu, 6 Aug 2009 15:45:22 +0000 (08:45 -0700)]
Merge change 20271
* changes:
fixing the surface size if the plugin elects to not handle zoomEvents.
Andrei Popescu [Thu, 6 Aug 2009 14:25:07 +0000 (15:25 +0100)]
Add more LOCK_V8 macros: the custom V8 bindings are used to invoke JS callbacks to let the JS application know when something interesting happens. These entry points into V8 are denoted by "handleEvent" methods and need to be protected as well.
Jean-Baptiste Queru [Thu, 6 Aug 2009 15:09:58 +0000 (08:09 -0700)]
merge from open-source master
Derek Sollenberger [Thu, 6 Aug 2009 14:43:25 +0000 (10:43 -0400)]
fixing the surface size if the plugin elects to not handle zoomEvents.
Android (Google) Code Review [Thu, 6 Aug 2009 13:54:14 +0000 (06:54 -0700)]
Merge change 20266
* changes:
Fixes a couple of bugs in the Geolocation permissions manager.
Derek Sollenberger [Wed, 5 Aug 2009 15:53:29 +0000 (11:53 -0400)]
first cut at adding zoom support for plugins.
Steve Block [Thu, 6 Aug 2009 10:43:02 +0000 (11:43 +0100)]
Fixes a couple of bugs in the Geolocation permissions manager.
Android (Google) Code Review [Thu, 6 Aug 2009 10:53:11 +0000 (03:53 -0700)]
Merge change 9658
* changes:
Add V8 locks at the v8 entry points for use with workers.
Andrei Popescu [Tue, 4 Aug 2009 14:23:24 +0000 (15:23 +0100)]
Add V8 locks at the v8 entry points for use with workers.
Grace Kloba [Wed, 5 Aug 2009 00:50:26 +0000 (17:50 -0700)]
Add SystemInterface to the android_npapi so that we can expose system related
properties. Currently it only has getApplicationDataDirectory.
Jean-Baptiste Queru [Wed, 5 Aug 2009 16:06:47 +0000 (09:06 -0700)]
Remove chartables.c as it's already included indirectly
Patrick Scott [Tue, 4 Aug 2009 13:25:54 +0000 (09:25 -0400)]
Add a callback for parsing apple-touch-icon.
Call through FrameLoaderClient when an apple-touch-icon attribute is parsed.
Instead of always downloaded the icon, just report the url so that if it is
needed, it can downloaded by java. It is also a lot more code to let WebCore
handle storage and retrieval of the icon.
Android (Google) Code Review [Tue, 4 Aug 2009 21:22:08 +0000 (14:22 -0700)]
Merge change 20004
* changes:
Another tweak for text wrap screen. We add a fixed padding when wrapping text around the screen width. If the block already has a padding, we should put it under consideration so that we won't add too much padding.
Grace Kloba [Tue, 4 Aug 2009 20:59:47 +0000 (13:59 -0700)]
Another tweak for text wrap screen. We add a fixed padding when wrapping text
around the screen width. If the block already has a padding, we should put
it under consideration so that we won't add too much padding.
Derek Sollenberger [Tue, 4 Aug 2009 19:01:13 +0000 (15:01 -0400)]
adding the first cut for the onLoad plugin event.
Android (Google) Code Review [Tue, 4 Aug 2009 17:03:50 +0000 (10:03 -0700)]
Merge change 9470
* changes:
Enable workers for V8
Jean-Baptiste Queru [Tue, 4 Aug 2009 16:00:23 +0000 (09:00 -0700)]
merge from open-source master
Android (Google) Code Review [Tue, 4 Aug 2009 14:13:31 +0000 (07:13 -0700)]
Merge change 9656
* changes:
enhancing visibleRect tracking and making it work within iframes.
Derek Sollenberger [Tue, 4 Aug 2009 13:28:51 +0000 (09:28 -0400)]
enhancing visibleRect tracking and making it work within iframes.
Android (Google) Code Review [Tue, 4 Aug 2009 04:53:37 +0000 (21:53 -0700)]
Merge change 9618
* changes:
Fix
1635950. If the RenderBlock is positioned, don't wrap text to screen width as it may cause text overlap.
Grace Kloba [Tue, 4 Aug 2009 01:07:14 +0000 (18:07 -0700)]
Fix
1635950. If the RenderBlock is positioned, don't wrap text to screen
width as it may cause text overlap.
Android (Google) Code Review [Mon, 3 Aug 2009 20:37:50 +0000 (13:37 -0700)]
Merge change 9526
* changes:
Fixing mouse and touch coordinates inside iframes.
Derek Sollenberger [Mon, 3 Aug 2009 19:45:38 +0000 (15:45 -0400)]
Fixing mouse and touch coordinates inside iframes.
Andrei Popescu [Mon, 3 Aug 2009 12:16:56 +0000 (13:16 +0100)]
Enable workers for V8
Jean-Baptiste Queru [Mon, 3 Aug 2009 14:45:40 +0000 (07:45 -0700)]
merge from donut
Android (Google) Code Review [Mon, 3 Aug 2009 13:39:58 +0000 (06:39 -0700)]
Merge change 9343
* changes:
expose getFontPath to plugins
Leon Scroggins [Fri, 31 Jul 2009 19:11:35 +0000 (15:11 -0400)]
Fix a bug in find.
Fix for http://b/issue?id=
2021424. When trying to draw the matches,
if we find that the page needs to be scrolled to put the match on
screen, we request a scroll, do a viewInvalidate and stop, so that
the matches will be drawn after the invalidate. Unfortunately, for
some values, we do not end up scrolling, because contentToView turns
the scroll into a no op. So we forever request scrolls, and never
draw the matches. Fix this by getting a return value from scrollBy,
and if it returned false, go ahead and draw the matches.
Cary Clark [Wed, 29 Jul 2009 18:38:23 +0000 (14:38 -0400)]
rebuild the nav cache on mouse clicks during page load
While the page is loading, the nav cache is not rebuilt.
Double-click zooms out the web page by using the nav cache to
find the left edge of the column -- but fails to work during
page load. This change rebuilds the nav cache (if the page is
loading) each time a mouse click is sent to webkit.
This doesn't fix the bug where the first double click doesn't
align the column correctly, but helps with subsequent clicks.
Also, pass scale information to getBlockLeftEdge so it can
restrict its search to the area that will be zoomed to. Default
to the point clicked if no alignment info can be found.
Mike Reed [Fri, 31 Jul 2009 14:57:55 +0000 (10:57 -0400)]
expose getFontPath to plugins
Android (Google) Code Review [Fri, 31 Jul 2009 15:54:10 +0000 (08:54 -0700)]
Merge change 9295
* changes:
Fix
1849037. Don't force text wrap to the screen if text is not autoWrap.
Leon Scroggins [Thu, 30 Jul 2009 20:29:30 +0000 (16:29 -0400)]
Allow user to jump to the next textfield.
In CachedFrame, add methods to find the next textfield and to
determine which ImeAction should be associated with a given textfield.
In WebView, uses these apis to determine the ImeAction and jump
to the next textfield and scroll it on screen. Requires a change to
frameworks/base.
Grace Kloba [Fri, 31 Jul 2009 00:53:35 +0000 (17:53 -0700)]
Fix
1849037. Don't force text wrap to the screen if text is not autoWrap.
Grace Kloba [Thu, 30 Jul 2009 01:37:07 +0000 (18:37 -0700)]
Remove snapToAnchor as it is not used any more.
Steve Block [Wed, 29 Jul 2009 15:21:14 +0000 (16:21 +0100)]
Adds a mock GeolocationService.
This is being submitted to WebKit in bug 27716.
Android (Google) Code Review [Thu, 30 Jul 2009 15:35:35 +0000 (08:35 -0700)]
Merge change 9149
* changes:
Fix a bug in the ChromeClientAndroid where the m_newQuota was set to -1 after the call to the browser thread was made.
Android (Google) Code Review [Thu, 30 Jul 2009 15:27:32 +0000 (08:27 -0700)]
Merge change 9143
* changes:
Adds the C++ side of the system to show the Geolocation permissions prompt.
Andrei Popescu [Thu, 30 Jul 2009 13:15:29 +0000 (14:15 +0100)]
Fix a bug in the ChromeClientAndroid where the m_newQuota was set to -1 after the call to the browser thread was made.
Patrick Scott [Thu, 30 Jul 2009 12:25:20 +0000 (08:25 -0400)]
Implement our own parallel connection count initialization.
Use 20 since we have 4 connection threads that can pipeline up to 5 requests per
thread.
Steve Block [Thu, 30 Jul 2009 12:14:46 +0000 (13:14 +0100)]
Adds the C++ side of the system to show the Geolocation permissions prompt.
Jean-Baptiste Queru [Wed, 29 Jul 2009 21:57:00 +0000 (14:57 -0700)]
merge from donut
Steve Block [Tue, 28 Jul 2009 17:14:26 +0000 (18:14 +0100)]
Adds GeolocationPermissionsBridge.
Patrick Scott [Tue, 28 Jul 2009 19:24:16 +0000 (15:24 -0400)]
Remove the WebIconDatabase thread attachment since ThreadingPthreads does it.
Also, delete threadData if pthread_create fails. This is a rare occurance but we
don't want to leak memory just in case.
Steve Block [Wed, 29 Jul 2009 12:19:14 +0000 (13:19 +0100)]
Fixes build bustage due to GeolocationPermissions.
Steve Block [Mon, 27 Jul 2009 16:37:18 +0000 (17:37 +0100)]
Adds a GeolocationPermissions class.
Andrei Popescu [Tue, 28 Jul 2009 12:39:20 +0000 (13:39 +0100)]
wire in the AppCache out-of-space callback
Patrick Scott [Tue, 28 Jul 2009 21:24:14 +0000 (14:24 -0700)]
Grace Kloba [Tue, 28 Jul 2009 20:12:34 +0000 (13:12 -0700)]
Support double tap in the Browser.
Add api to get the left edge of the block from the current (x,y). The code
was copied from Cary's change.
Todo:
1.need some tuning as we can see from nytimes.com that some times the left
edge is not correct.
2.currently nav cache is not up to date while loading. This means the left
edge may not be correct during loading.
3.if (x,y) is over an edit text box, or image, it should return the left
edge of it. Currently it is not working as expected.
Added the code to store the extra scale factor, so that back/forward history
works correctly.
Android (Google) Code Review [Tue, 28 Jul 2009 20:08:05 +0000 (13:08 -0700)]
Merge change 7883
* changes:
Find left edge of column using nav cache data.
Cary Clark [Mon, 20 Jul 2009 15:48:58 +0000 (11:48 -0400)]
Find left edge of column using nav cache data.
The function is currently unused, but will be used by
Grace's double-tap experiment.
Patrick Scott [Tue, 28 Jul 2009 18:44:16 +0000 (14:44 -0400)]
Do not merge.
This will attach and detach the native thread to and from the java vm. I believe
this was the cause of a crash in donut. Sometimes, the IconDatabase needs to
notify the WebCore thread of a new Icon. These callbacks post messages through
the vm which causes AttachCurrentThread to be called but no matching
DetachCurrentThread when the thread exits.
Bug:
1977972
Android (Google) Code Review [Tue, 28 Jul 2009 18:48:48 +0000 (11:48 -0700)]
Merge change 8820
* changes:
fixing plugin event handling for touch to return the correct value.
Derek Sollenberger [Tue, 28 Jul 2009 18:08:20 +0000 (14:08 -0400)]
fixing plugin event handling for touch to return the correct value.
Steve Block [Mon, 27 Jul 2009 18:01:59 +0000 (19:01 +0100)]
Exposes Geolocation at navigator.geolocation for JSC only.
Android (Google) Code Review [Mon, 27 Jul 2009 17:18:08 +0000 (10:18 -0700)]
Merge change 8658
* changes:
Fixes missing comment change from change 8490.
Android (Google) Code Review [Mon, 27 Jul 2009 16:57:48 +0000 (09:57 -0700)]
Merge change 8638
* changes:
explictly specify hinting (new api)
Steve Block [Fri, 24 Jul 2009 15:07:26 +0000 (16:07 +0100)]
Fixes missing comment change from change 8490.
Steve Block [Fri, 24 Jul 2009 12:53:49 +0000 (13:53 +0100)]
Enables Geolocation on Android.