OSDN Git Service
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.
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.
Android (Google) Code Review [Mon, 27 Jul 2009 10:58:38 +0000 (03:58 -0700)]
Merge change 8498
* changes:
Fixes WebKit Geolocation bug 27255.
Jean-Baptiste Queru [Sun, 26 Jul 2009 18:43:55 +0000 (11:43 -0700)]
reconcile korg/master into goog/master
Jean-Baptiste Queru [Sun, 26 Jul 2009 00:48:02 +0000 (17:48 -0700)]
Merge korg/donut into korg/master
Mike Reed [Fri, 24 Jul 2009 19:57:12 +0000 (15:57 -0400)]
explictly specify hinting (new api)
Steve Block [Fri, 24 Jul 2009 12:59:28 +0000 (13:59 +0100)]
Fixes WebKit Geolocation bug 27255.
We should not call the error callback if the success callback raises an exception.
This is currently being submitted to WebKit as bug 27255.
Android (Google) Code Review [Fri, 24 Jul 2009 14:38:15 +0000 (07:38 -0700)]
Merge changes 8489,8490
* changes:
Android specifics for 'Removes uneccessary IDL files for Geolocation permissions'.
Removes uneccessary IDL files for Geolocation callbacks.
Steve Block [Thu, 23 Jul 2009 14:36:21 +0000 (15:36 +0100)]
Android specifics for 'Removes uneccessary IDL files for Geolocation permissions'.
Steve Block [Thu, 23 Jul 2009 14:21:17 +0000 (15:21 +0100)]
Removes uneccessary IDL files for Geolocation callbacks.
This change is currently being submitted to WebKit as bug 27250.
Android (Google) Code Review [Thu, 23 Jul 2009 21:15:33 +0000 (14:15 -0700)]
Merge change 8389
* changes:
Clear the WebTextView when clicking on another node.
Leon Scroggins [Thu, 23 Jul 2009 20:42:07 +0000 (16:42 -0400)]
Clear the WebTextView when clicking on another node.
We already cleared it in the above case, when the
user clicks on empty space. If the user clicks
on a node, and it is not a text input, clear it.
This fixes a bug on the Google home page, where
the user has typed into the textfield, but then
clicks on "more" and is then unable to click on
Gmail, which is covered by the (invisible)
WebTextView.
Leon Scroggins [Thu, 23 Jul 2009 20:03:42 +0000 (16:03 -0400)]
Improve dragging on WebTextView.
When the WebTextView scrolls, scroll the corresponding RenderTextControl
in webkit. Requires a change in frameworks/base.
Andrei Popescu [Thu, 23 Jul 2009 18:18:55 +0000 (19:18 +0100)]
Update V8 to bleeding_edge@2524
Android (Google) Code Review [Thu, 23 Jul 2009 16:51:00 +0000 (09:51 -0700)]
Merge change 7734
* changes:
Fix issue
1795088 Improve audio routing code
Android (Google) Code Review [Thu, 23 Jul 2009 16:44:37 +0000 (09:44 -0700)]
Merge change 8191
* changes:
Enforce app cache maximum size
Cary Clark [Wed, 22 Jul 2009 18:27:28 +0000 (11:27 -0700)]
am
70522f5f: adjust right edge of copy bounds if edge is not found
Merge commit '
70522f5f5fb44f2f4df7a08aa64263c619e299cb'
* commit '
70522f5f5fb44f2f4df7a08aa64263c619e299cb':
adjust right edge of copy bounds if edge is not found
Andrei Popescu [Wed, 22 Jul 2009 15:52:03 +0000 (16:52 +0100)]
Enforce app cache maximum size
Eric Laurent [Fri, 17 Jul 2009 18:26:37 +0000 (11:26 -0700)]
Fix issue
1795088 Improve audio routing code
Integrated comments after patch set 1 review.
Android (Google) Code Review [Wed, 22 Jul 2009 07:44:49 +0000 (00:44 -0700)]
Merge change 8031
* changes:
wire the appcache to the HTML5 UI
Android (Google) Code Review [Wed, 22 Jul 2009 07:44:09 +0000 (00:44 -0700)]
Merge change 8010
* changes:
Implements a mechanism that limit the growth of the application cache
Android (Google) Code Review [Wed, 22 Jul 2009 07:43:44 +0000 (00:43 -0700)]
Merge change 8009
* changes:
Add TODO(andreip) to those v8 binding files that have Android-specific modifications that may need fixing/upstreaming/etc
Feng Qian [Wed, 22 Jul 2009 04:46:21 +0000 (21:46 -0700)]
Turn on V8 by default.
This change requires clean libwebcore, but I saw there are three clean libwebcore_intermediates steps in build/cleanspec.mk already. Do I need to add another one?
Cary Clark [Tue, 21 Jul 2009 20:42:59 +0000 (16:42 -0400)]
adjust right edge of copy bounds if edge is not found
Sometimes the right edge of the copy rectangle misses the
right-most character to be copied. An earlier change over-
compensated by moving the edge boundary by 2. Now, move
the edge boundary by 1, and if that fails, try 2.
Android (Google) Code Review [Tue, 21 Jul 2009 20:29:00 +0000 (13:29 -0700)]
Merge change 8047
* changes:
Check for xml and text mime types through DOMImplementation.
Patrick Scott [Tue, 21 Jul 2009 19:44:25 +0000 (15:44 -0400)]
Fix a crash in plugins.
Patrick Scott [Tue, 21 Jul 2009 18:35:24 +0000 (14:35 -0400)]
Check for xml and text mime types through DOMImplementation.
This change in conjunction with a change in MimeTypeMap allows text extensions
to map to text/* mime types. Previously, a text mime type would be downloaded
instead of displayed if MimeTypeMap mapped a text extension to an unknown text
mime type. Use DOMImplementation to check for xml and text mime types since it
will compare the mime type to "text/"
Andrei Popescu [Tue, 21 Jul 2009 11:48:46 +0000 (12:48 +0100)]
Add TODO(andreip) to those v8 binding files that have Android-specific modifications that may need fixing/upstreaming/etc
Andrei Popescu [Tue, 21 Jul 2009 15:49:08 +0000 (16:49 +0100)]
wire the appcache to the HTML5 UI
Andrei Popescu [Tue, 21 Jul 2009 12:10:06 +0000 (13:10 +0100)]
Implements a mechanism that limit the growth of the application cache
Feng Qian [Mon, 20 Jul 2009 22:05:22 +0000 (15:05 -0700)]
Experiment a different GC policy.
Smaller promotion limit makes mark-compact GC more often, but may use less memory.
Android (Google) Code Review [Mon, 20 Jul 2009 20:13:27 +0000 (13:13 -0700)]
Merge change 7878
* changes:
removing visibleRect event and tracking rectangles instead.
Derek Sollenberger [Mon, 20 Jul 2009 13:45:56 +0000 (09:45 -0400)]
removing visibleRect event and tracking rectangles instead.
Feng Qian [Mon, 20 Jul 2009 17:22:00 +0000 (10:22 -0700)]
Experiment no GC before loading new page.
I want to check this change in to see the page load time on page cyclers.
Patrick Scott [Mon, 20 Jul 2009 15:35:23 +0000 (11:35 -0400)]
Remove format until plugins either need to know or ask to change it.
Patrick Scott [Fri, 17 Jul 2009 20:40:38 +0000 (16:40 -0400)]
Add Plugin APIs for creating and manipulating a Surface.
SurfaceCallback: An interface used to receive the surface change events. The
PluginSurface then sends those events to the actual plugin.
PluginSurface: A wrapper around the native Surface object obtained from the Java
SurfaceView. This object can lock and unlock the surface and takes care of
creating, positioning and destroying the Java SurfaceView.
Changed PluginWidgetAndroid to not use SkFlipPixelRef when the drawing model is
Surface.
Feng Qian [Sat, 18 Jul 2009 05:43:49 +0000 (22:43 -0700)]
Add indexed getter for TouchList.
http://maps.google.com/maps/m uses TouchEvent.touches[i], which requires a customized index getter.
Android (Google) Code Review [Sat, 18 Jul 2009 00:21:58 +0000 (17:21 -0700)]
Merge change 7772
* changes:
Initialize context if a frame had an empty global object.
Feng Qian [Fri, 17 Jul 2009 22:49:21 +0000 (15:49 -0700)]
Initialize context if a frame had an empty global object.
When a frame navigates to a new page, the global object is detached from its
old context. However, if the new page has no JavaScript, its new context is not initialized. If another page kept a reference to the global object of the old page and tries to access the new page, it will fail because the context of new page is not initialized so the global object is connected to a real context.
Mike Reed [Fri, 17 Jul 2009 19:53:27 +0000 (15:53 -0400)]
add fontdir api for plugins
remove unneeded fonttable apis
Derek Sollenberger [Thu, 16 Jul 2009 15:32:55 +0000 (11:32 -0400)]
Adding plugin support for an RGBA surface view.
Android (Google) Code Review [Thu, 16 Jul 2009 15:53:22 +0000 (08:53 -0700)]
Merge change 7500
* changes:
Convert Java string to JavaScript string.
Feng Qian [Thu, 16 Jul 2009 02:16:35 +0000 (19:16 -0700)]
Convert Java string to JavaScript string.
This allows JavaScript call a Java function and returns a string back to JavaScript. This patch is needed by the current Gmail app.
Patrick Scott [Tue, 14 Jul 2009 19:53:55 +0000 (15:53 -0400)]
Turn on webcore's request management and remove our hacks.
With only turning on request management (no fine tuning of parameters), loading
cnn.com was 3-4 seconds faster and the main content displayed about 1-2 seconds
sooner.
Feng Qian [Wed, 15 Jul 2009 18:12:34 +0000 (11:12 -0700)]
Fix build error of mksnapshot
After hooking up Android log facility, mksnapshot depends on liblog now.
Feng Qian [Wed, 15 Jul 2009 17:53:48 +0000 (10:53 -0700)]
Quick fix of makefile
Command line start with # instead of //
Feng Qian [Wed, 15 Jul 2009 16:40:17 +0000 (09:40 -0700)]
Use JS_ENGINE environment to control which JS engine to use.
Jean-Baptiste Queru [Wed, 15 Jul 2009 00:12:14 +0000 (17:12 -0700)]
Merge commit 'goog/readonly-korg-master' into merge_korg_master
Android (Google) Code Review [Tue, 14 Jul 2009 22:42:46 +0000 (15:42 -0700)]
Merge change 7155
* changes:
Make some adjustment on heap parameters on Android platform.
Feng Qian [Tue, 14 Jul 2009 22:28:52 +0000 (15:28 -0700)]
Make some adjustment on heap parameters on Android platform.
1. reduced pages per chunk to 16, so a chunk is 128K, instead of 512K
2. free all clean chunks when shrink spaces.
3. renamed some macros to if defined(ANDROID).
All changes are being upstreamed to V8.
Android (Google) Code Review [Tue, 14 Jul 2009 20:53:27 +0000 (13:53 -0700)]
Merge change 7130
* changes:
Pick up a bug fix from Chromium.
Feng Qian [Tue, 14 Jul 2009 20:20:05 +0000 (13:20 -0700)]
Pick up a bug fix from Chromium.
The same fix is upstreamed to WebKit.
Feng Qian [Tue, 14 Jul 2009 17:35:23 +0000 (10:35 -0700)]
Pick up a fix in V8 binding.
Feng Qian [Tue, 14 Jul 2009 00:19:46 +0000 (17:19 -0700)]
Rename ENABLE_V8 to USE_ALT_JS_ENGINE.
Prepare for the buildbot for both JS engines.
Feng Qian [Mon, 13 Jul 2009 23:30:18 +0000 (16:30 -0700)]
Update V8 to bleeding_edge@2450 to pick up a few important fixes.
API stays the same, and the same revision is pushed to Chromium.
Feng Qian [Mon, 13 Jul 2009 21:44:34 +0000 (14:44 -0700)]
Simplify Ben's previous commit.
I am going to submit the same patch to WebKit.
Ben Murdoch [Mon, 13 Jul 2009 19:50:37 +0000 (20:50 +0100)]
Add a virtual destructor to V8DOMMap when NDEBUG is defined.
(cherry picked from commit
7f4f9d6e0f3d335bfa57be22dfe7eb421f51a4da)
Feng Qian [Fri, 10 Jul 2009 23:13:29 +0000 (16:13 -0700)]
Fix a memory leak caused by the binding code.
Old code reinitialize a context when a frame loading a new page, even when the page does not have JavaScript. It also initializes an empty context when before an iframe is destroyed.
A fix is made to Chromium project (not it is in WebKit), our next merge should pick up this fix.
Mike Reed [Fri, 10 Jul 2009 19:32:24 +0000 (15:32 -0400)]
rename libsgl/libcorecg to libskia
Android (Google) Code Review [Fri, 10 Jul 2009 13:42:10 +0000 (06:42 -0700)]
Merge change 6306
* changes:
hide the cursor when the link is followed
Patrick Scott [Fri, 10 Jul 2009 13:22:27 +0000 (06:22 -0700)]
Patrick Scott [Fri, 10 Jul 2009 11:59:59 +0000 (07:59 -0400)]
Do not merge.
2nd attempt to fix the icon database crash. This time, make sure there is only 1
line in the change.