OSDN Git Service

android-x86/external-webkit.git
14 years agoDO NOT MERGE.
Grace Kloba [Wed, 13 Jan 2010 01:14:42 +0000 (17:14 -0800)]
DO NOT MERGE.

Check the dimensions against 0 before using it to
calculate the ratio.

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

14 years agoWhen starting the Geolocation service provider, check that the WebView is not already...
Steve Block [Tue, 12 Jan 2010 00:18:58 +0000 (00:18 +0000)]
When starting the Geolocation service provider, check that the WebView is not already paused.

This fixes the following scenario ...
- The browser back stack contains a page which calls Geolocation::watchPosition form its onload handler.
- User presses the back button quickly and repeatedly until the browser goes to the background.
- The browser calls WebViewCore::Pause when it goes into the background, which suspends any Geolocation
  services in use. However, this call is made before the page which calls Geolocation::watchPosition has
  been loaded. WebKit later loads this page, which creates a new Geolocation object which is never paused.

With this fix, the new Geolocation object is not started when it is first created. It does nothing until
it is resumed when the Browser is brought back to the foreground.

Bug: 2363338

14 years agoFirst draft of multitouch in the WebView.
Grace Kloba [Fri, 8 Jan 2010 05:58:32 +0000 (21:58 -0800)]
First draft of multitouch in the WebView.

Currently we just handle a simple pinch action. We
will wait for framework support for more complicated
gesture.

When pinch in the webview, zoom level will be changed
on the fly. But we won't re-wrap the text until user
action like double tap, rotate screen.

Double tap will re-layout the page and wrap the text
to the screen width. We try to keep the spot you
tapped at the same place on the screen after relayout.
If the block after relayout fully fit on the current
screen, we will center it for easy reading.

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

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

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

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

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

14 years agoIntegrate WebKit security fix
Grace Kloba [Wed, 18 Nov 2009 02:07:26 +0000 (18:07 -0800)]
Integrate WebKit security fix
http://trac.webkit.org/changeset/50466

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

14 years agoChanging fit column to screen to exclude the padding.
Grace Kloba [Wed, 11 Nov 2009 04:51:23 +0000 (20:51 -0800)]
Changing fit column to screen to exclude the padding.

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

14 years agoMerge change I43c19e84 into eclair
Android (Google) Code Review [Tue, 10 Nov 2009 01:56:54 +0000 (17:56 -0800)]
Merge change I43c19e84 into eclair

* changes:
  Stop Geolocation service when browser tab is in the background. Do not merge.

14 years agoStop Geolocation service when browser tab is in the background. Do not merge.
Steve Block [Sun, 8 Nov 2009 07:56:39 +0000 (07:56 +0000)]
Stop Geolocation service when browser tab is in the background. Do not merge.

This is a fix for bug http://b/issue?id=2211437

This has already been submitted to Eclair MR2 branch.

Change-Id: I43c19e84fda6291590ff2f07bbadb18a4f86df5f

14 years agodo not merge -- Fix a clicking bug.
Leon Scroggins [Wed, 28 Oct 2009 18:25:19 +0000 (14:25 -0400)]
do not merge -- Fix a clicking bug.

original at https://android-git.corp.google.com/g/#change,31300

Remove some code that simulates a mouse click at the beginning of
a textarea and the end of a textfield.  The original goal was to
make the click change the selection to be at the beginning or end
of the field, respectively.  However, we actually make another call
which prevents this click from the selection.  Further, the
selection actually gets changed elsewhere.

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

14 years agoFix Geolocation service to use correct signature for Location.getAltitude(). Do not...
Steve Block [Thu, 29 Oct 2009 22:08:59 +0000 (22:08 +0000)]
Fix Geolocation service to use correct signature for Location.getAltitude(). Do not merge.

This is a fix for bug http://b/issue?id=2221243

This has already been submitted to Eclair MR2 branch.

Change-Id: I964e004583cebe4c93fe3e9c1c7d5ef44a41d1f8

14 years agoAvoid constructing the MutexLocker class to avoid
Grace Kloba [Tue, 27 Oct 2009 17:24:07 +0000 (10:24 -0700)]
Avoid constructing the MutexLocker class to avoid
two mystery crashes.

14 years agoApparently we can't use atomic_inc/dec version as it
Grace Kloba [Wed, 21 Oct 2009 23:07:17 +0000 (16:07 -0700)]
Apparently we can't use atomic_inc/dec version as it
causes more crashes. Revert it.

Revert https://android-git.corp.google.com/g/30606

14 years agoBack in 02/08 when we added android_atomic_inc/dec, for
Grace Kloba [Tue, 20 Oct 2009 23:08:58 +0000 (16:08 -0700)]
Back in 02/08 when we added android_atomic_inc/dec, for
some reason, it missed define WTF_USE_LOCKFREE_THREADSAFESHARED.
So we are using mutexlocker instead of refcount inc/dec.
Even mutex version should work, but it is not exercised
by win/darwin/gcc. Changing to use refcount version fixed
the crash seen in picasaweb.

Fix http://b/issue?id=2183371
Maybe fix http://b/issue?id=2165237. But I can't verify
as I can't reproduce it even before my change.

14 years agodo not merge: fix copy/paste using trackball on passion
Cary Clark [Thu, 15 Oct 2009 17:22:12 +0000 (13:22 -0400)]
do not merge: fix copy/paste using trackball on passion

This fix is alrady in mr2. It does not affect sholes --
this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Also, simply call to CopyPaste::findClosest, and remove
logic to attempt to pin the arrow to the current cursor.

Requires a companion fix in framework/base
Fixes http://b/issue?id=2187591

14 years agoMakes sure that Geolocation permissions are saved before the browser is killed.
Steve Block [Wed, 7 Oct 2009 12:22:07 +0000 (13:22 +0100)]
Makes sure that Geolocation permissions are saved before the browser is killed.

This is a fix for http://b/issue?id=2167364

Change-Id: I92a1a6831eb254b62593beaf7cb77c8e1f41945c

14 years agoFixes build bustage due to missing include in Geolocation.
Steve Block [Tue, 6 Oct 2009 15:21:49 +0000 (16:21 +0100)]
Fixes build bustage due to missing include in Geolocation.

Change-Id: Iea9209faba25a9b4ea4e351218c8c1eecf36d07f

14 years agoFixes a WebKit bug where ongoing Geolocation requests are not stopped when the page...
Steve Block [Tue, 6 Oct 2009 09:57:53 +0000 (10:57 +0100)]
Fixes a WebKit bug where ongoing Geolocation requests are not stopped when the page is unloaded.

This fixes bug http://b/issue?id=2164673

Change-Id: I68a615c0b82bcee2a4a61dc0433a4f9321780ad1

14 years agoRevert "Don't extend the arrow asset of the combo box over the text, so that the...
Leon Scroggins [Thu, 1 Oct 2009 19:20:13 +0000 (15:20 -0400)]
Revert "Don't extend the arrow asset of the combo box over the text, so that the real background"

This reverts commit 02b5ebb30fc88967b843818cbc61987f9dc9685d.

14 years agoMerge change Ib6cfb9c2 into eclair
Android (Google) Code Review [Thu, 1 Oct 2009 09:36:34 +0000 (05:36 -0400)]
Merge change Ib6cfb9c2 into eclair

* changes:
  Don't extend the arrow asset of the combo box over the text, so that the real background color is used. Re-instate using the correct color for the text.

14 years agoDon't extend the arrow asset of the combo box over the text, so that the real background
Leon Clarke [Thu, 1 Oct 2009 09:30:38 +0000 (10:30 +0100)]
Don't extend the arrow asset of the combo box over the text, so that the real background
color is used.
Re-instate using the correct color for the text.

14 years agoMerge change Ic0bd5009 into eclair
Android (Google) Code Review [Wed, 30 Sep 2009 19:55:46 +0000 (15:55 -0400)]
Merge change Ic0bd5009 into eclair

* changes:
  Update <video> implementation after new IRC discussion with Eric Carlsson.

14 years agoUpdate <video> implementation after new IRC discussion with Eric Carlsson.
Andrei Popescu [Mon, 28 Sep 2009 15:20:09 +0000 (16:20 +0100)]
Update <video> implementation after new IRC discussion with Eric Carlsson.

    - move poster drawing on the WebKit side
    - get rid of the child views
    - add prepareToPlay method to the MediaPlayer iface.

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

14 years agoFix the random crash around iframes.
Patrick Scott [Tue, 29 Sep 2009 18:11:16 +0000 (14:11 -0400)]
Fix the random crash around iframes.

The problem is that if updateWidgetPosition calls layout, the FrameView will
layout with 0x0 dimensions. Then, we resize the view and try to relayout. This
causes the body to be marked as needing a layout. But, the body does not get a
chance to relayout. If updateWidgetPosition does not layout, the view size will
match and the body will not be marked for layout. This makes everything sane
after layout of the iframe.

The root of the problem is that we are calling FrameView::layout() while in the
midst of a layout. This is causing a child RenderObject to need a layout
without the parent object needing a layout. We avoid this by not laying out
until we set the FrameView dimensions.

Bug: 20488552134215

14 years agoMerge change I99fa56b2 into eclair
Android (Google) Code Review [Wed, 30 Sep 2009 18:17:36 +0000 (14:17 -0400)]
Merge change I99fa56b2 into eclair

* changes:
  always update the WebTextView from the input element

14 years agoalways update the WebTextView from the input element
Cary Clark [Wed, 30 Sep 2009 18:05:03 +0000 (14:05 -0400)]
always update the WebTextView from the input element

Even if the input element doesn't have focus, synchronize
the WebTextView if the pointers match.

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

14 years agoFix the user gesture change to be more like donut.
Patrick Scott [Wed, 30 Sep 2009 12:32:50 +0000 (08:32 -0400)]
Fix the user gesture change to be more like donut.

Bug: 2151004

14 years agoDon't crash on java exception
Leon Clarke [Mon, 28 Sep 2009 10:17:08 +0000 (11:17 +0100)]
Don't crash on java exception

Link coloring - doing the database lookup in a separate thread

Formatting

Whitespace changes

Re-ordered following review

14 years agoscroll text field with touch
Cary Clark [Mon, 28 Sep 2009 16:57:26 +0000 (12:57 -0400)]
scroll text field with touch

Pass the percentage of the current scroll from the UI
thread to webkit. The max scroll in X is computed as
renderer->scrollWidth() - renderer->clientWidth().

Companion fix is in framework/base

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

14 years agoBuild fix.
Patrick Scott [Tue, 29 Sep 2009 17:42:05 +0000 (13:42 -0400)]
Build fix.

Files that include FontPlatformData.h apparently depend on StringImpl.h already
being included.

14 years agoFix a few crashes with assertions enabled.
Patrick Scott [Tue, 29 Sep 2009 13:43:03 +0000 (09:43 -0400)]
Fix a few crashes with assertions enabled.

KURL::protocolIs no longer likes "javascript" and has a different method called
protocolIsJavaScript.

14 years agoUpdate the comment for checking null in needtouchevents.
Grace Kloba [Mon, 28 Sep 2009 16:39:05 +0000 (09:39 -0700)]
Update the comment for checking null in needtouchevents.

Add the header in WebCoreJni.cpp so that LOGE will be print out.

14 years agoFix the multiple form submission bug. (Bug 2098417).
Ben Murdoch [Mon, 28 Sep 2009 12:49:05 +0000 (13:49 +0100)]
Fix the multiple form submission bug. (Bug 2098417).

Change-Id: I4eb188f6b4826f394a08c72c71f920cc212b2653

14 years agoCheck null for WebViewCore's nativeClass before calling
Grace Kloba [Sun, 27 Sep 2009 23:03:59 +0000 (16:03 -0700)]
Check null for WebViewCore's nativeClass before calling
back to Java. This may happen if WebKit holds some reference
of the Document even when our Java side has been destroyed.
So when Document finally is deleted, the call back to Java
will have null nativeClass.

In the long run, we may need to add the check for all the
callback to Java.

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

14 years agoMerge change 27080 into eclair
Android (Google) Code Review [Fri, 25 Sep 2009 20:39:27 +0000 (16:39 -0400)]
Merge change 27080 into eclair

* changes:
  When detach the top Document, clean up the touch listeners and reset needTouchEvents.

14 years agofix cracks when we draw the page in portions (i.e. a picture set)
Mike Reed [Fri, 25 Sep 2009 18:45:42 +0000 (14:45 -0400)]
fix cracks when we draw the page in portions (i.e. a picture set)

When we record/draw the DOM N times (for speed), webkit sees what we're doing in certain places,
and sends us different rectangle coordinates. These were all being antialiased (by default).
However, when we are also zoomed, the rects now fall on fractional coordinates, and with aa,
we will double-draw the edges where those rects should have seamed.

The fix is to disable antialiasing for a class of rects that we record from webkit. We are probably
disabling for more cases than is necessary for the current bug, but knowing which ones are
"required" is tricky, and there (as yet) seems to be no down-side, since we never draw the page
rotated at a funny angle (where the rect edge would look jaggie).

http://b/issue?id=2132971&cookieId=2009268114917835
http://b/issue?id=2127763&cookieId=2009268114931860

14 years agoWhen detach the top Document, clean up the touch listeners and reset
Grace Kloba [Fri, 25 Sep 2009 18:42:53 +0000 (11:42 -0700)]
When detach the top Document, clean up the touch listeners and reset
needTouchEvents.

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

14 years agoMerge change 27041 into eclair
Android (Google) Code Review [Fri, 25 Sep 2009 17:00:04 +0000 (13:00 -0400)]
Merge change 27041 into eclair

* changes:
  disable antialiasing for bitmaps

14 years agodisable antialiasing for bitmaps
Mike Reed [Fri, 25 Sep 2009 16:02:27 +0000 (12:02 -0400)]
disable antialiasing for bitmaps

Since we are never rotated, and when we are zoomed, the
antialiasing can double-draw the shared border for images that are meant to seam (ala nine-patch)

http://b/issue?id=2105990&cookieId=2009268085657820

14 years agodon't short-circuit if the text selection has changed
Cary Clark [Fri, 25 Sep 2009 13:47:59 +0000 (09:47 -0400)]
don't short-circuit if the text selection has changed

The webkit picture is rebuilt pretty often -- for performance,
the nav cache is built less often, only when the dom version changes.

Additionally, it's rebuilt when the focus changes or moves. Add
a condition so that it is also rebuilt if the focus selection changes.

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

14 years agoColorizing clicked-on links
Leon Clarke [Thu, 24 Sep 2009 14:32:59 +0000 (15:32 +0100)]
Colorizing clicked-on links

Following review comments

Following review comments

14 years agoAdd ANDROID_USER_GESTURE back to WebCore.
Patrick Scott [Thu, 24 Sep 2009 14:54:01 +0000 (10:54 -0400)]
Add ANDROID_USER_GESTURE back to WebCore.

We only care about the user gesture during a location change. Add the
m_userGesture field to our ResourceRequest and check the value in
canHandleRequest. This could be cleaner if WebCore passed around the
ResourceRequest rather than constructing a new one.

14 years agoWhen mouse down or plugin handles touch down, set the plugin
Grace Kloba [Thu, 24 Sep 2009 00:31:16 +0000 (17:31 -0700)]
When mouse down or plugin handles touch down, set the plugin
to be the focus of the document so that it can receive key
events. This has the same logic as in PluginViewMac.cpp's
handleMouseEvent().

14 years agoWhether or not a textfield is the last or only, make its action GO.
Leon Scroggins [Wed, 23 Sep 2009 21:18:03 +0000 (17:18 -0400)]
Whether or not a textfield is the last or only, make its action GO.

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

Change-Id: I8ca00498dd5a8d611bc0de5a941faaf596d9f76d

14 years agohardcode the correct ninepatch margins for the button skin
Cary Clark [Wed, 23 Sep 2009 18:04:57 +0000 (14:04 -0400)]
hardcode the correct ninepatch margins for the button skin

The button is drawn using hardcoded margins that look fine
on a g1. The highres resource has different margins. Changing
the margins alone isn't enough; this also moves the button down
by two pixels to center it better.

Neither the hardcoded margin change nor the offset are
good long-term changes, but they allow us to get by for now.
Marked both with FIXME so we can address this issue by
reading the data directly out of the png, and diagnose why
the button is drawn too high.

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

14 years agoadding API to enable plugins to request full screen mode
Derek Sollenberger [Tue, 22 Sep 2009 18:59:46 +0000 (14:59 -0400)]
adding API to enable plugins to request full screen mode

Change-Id: Ib3373af6ff127399d1d0846ba30a4275da5b3133

14 years agoAdd apple-touch-icon-precomposed processing.
Patrick Scott [Fri, 18 Sep 2009 20:28:07 +0000 (16:28 -0400)]
Add apple-touch-icon-precomposed processing.

Send up a boolean to indicate if the touch icon url is precomposed.

14 years agoAdd dpi support for WebView.
Grace Kloba [Sun, 20 Sep 2009 23:34:19 +0000 (16:34 -0700)]
Add dpi support for WebView.

In the "viewport" meta tag, you can specify "target-densityDpi".
If it is not specified, it uses the default, 160dpi as of today.
Then the 1.0 scale factor specified in the viewport tag means 100%
on G1 and 150% on Sholes. If you set "target-densityDpi" to
"device-dpi", then the 1.0 scale factor means 100% on both G1 and Sholes.

Implemented Safari's window.devicePixelRatio and css media query
device-pixel-ratio.

So if you use "device-dpi" and modify the css for font-size and image
src depending on window.devicePixelRatio, you can get a better page on
Sholes/Passion.

Here is a list of options for "target-densityDpi".

device-dpi:    Use the device's native dpi as target dpi.
low-dpi:       120dpi
medium-dpi:    160dpi, which is also the default as of today
high-dpi:      240dpi
<number>:      We take any number between 70 and 400 as a valid target dpi.

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

14 years agorenaming setJavaClass_ANPSetValue and ensuring memory is freed on subsequent calls
Derek Sollenberger [Mon, 21 Sep 2009 13:13:10 +0000 (09:13 -0400)]
renaming setJavaClass_ANPSetValue and ensuring memory is freed on subsequent calls

Change-Id: I7881e711af7ec905e5c120e8e2fd4b0b7ba5e840

14 years agocleaning up old surface view API's
Derek Sollenberger [Mon, 21 Sep 2009 12:14:52 +0000 (08:14 -0400)]
cleaning up old surface view API's

Change-Id: I333c2eebff22df1a56099fad7d8ec366627f4e22

14 years agoMerge change 25547 into eclair
Android (Google) Code Review [Thu, 17 Sep 2009 20:04:21 +0000 (16:04 -0400)]
Merge change 25547 into eclair

* changes:
  bump up the RLE cutoff, since RLE is *only* supported in drawBitmapRect(), and therefore we should only trigger it when there is no other way to support the image. Now that we have ashmem (yay!!!) memory pressure is not so bad. This happens to also fix google reader site, which sends down large (but not giant) index images but doesn't trigger our drawBitmapRect() code.

14 years agobump up the RLE cutoff, since RLE is *only* supported in drawBitmapRect(), and theref...
Mike Reed [Thu, 17 Sep 2009 19:57:58 +0000 (15:57 -0400)]
bump up the RLE cutoff, since RLE is *only* supported in drawBitmapRect(), and therefore we should only
trigger it when there is no other way to support the image. Now that we have ashmem (yay!!!) memory
pressure is not so bad. This happens to also fix google reader site, which sends down large (but not
giant) index images but doesn't trigger our drawBitmapRect() code.

14 years agoWire the rest of MediaPlayer to our implementation of WebCore::MediaPlayerPrivate
Andrei Popescu [Thu, 17 Sep 2009 14:55:39 +0000 (15:55 +0100)]
Wire the rest of MediaPlayer to our implementation of WebCore::MediaPlayerPrivate

14 years agoAdd poster support and other fixes
Andrei Popescu [Tue, 15 Sep 2009 12:09:27 +0000 (13:09 +0100)]
Add poster support and other fixes

14 years agoMerge change 25316 into eclair
Android (Google) Code Review [Thu, 17 Sep 2009 09:47:21 +0000 (05:47 -0400)]
Merge change 25316 into eclair

* changes:
  Enable Channgel Messaging for workers.

14 years agoEnable Channgel Messaging for workers.
Ben Murdoch [Wed, 16 Sep 2009 18:57:24 +0000 (19:57 +0100)]
Enable Channgel Messaging for workers.

Change-Id: Iae69d02802dbe3d62e8d36753a8bed0ff9883db8

14 years agoMerge change 25135 into eclair
Android (Google) Code Review [Wed, 16 Sep 2009 17:22:39 +0000 (13:22 -0400)]
Merge change 25135 into eclair

* changes:
  For TouchEventEnd, touches and targetTouches are empty list.

14 years agoFirst pass at replacing native plugin views with java.
Derek Sollenberger [Tue, 8 Sep 2009 22:33:06 +0000 (18:33 -0400)]
First pass at replacing native plugin views with java.

Change-Id: I637275c9766202a4358ef25af01ee92c85c48e7f

14 years agoFor TouchEventEnd, touches and targetTouches are empty list.
Grace Kloba [Tue, 15 Sep 2009 21:16:02 +0000 (14:16 -0700)]
For TouchEventEnd, touches and targetTouches are empty list.

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

14 years agofix parent index of focus when building nav cache
Cary Clark [Tue, 15 Sep 2009 14:13:21 +0000 (10:13 -0400)]
fix parent index of focus when building nav cache

When a focused node is found while walking the DOM, the
CachedFrame tree doesn't have its parent pointer set.
Fix the focus index in the parent when fixing the parent pointer.

Also fix a debug statement so that it doesn't depend on
the focus parent.

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

14 years agoAdd more null checking to avoid the crash.
Grace Kloba [Fri, 11 Sep 2009 18:32:27 +0000 (11:32 -0700)]
Add more null checking to avoid the crash.

14 years agoMerge change 24624 into eclair
Android (Google) Code Review [Fri, 11 Sep 2009 00:39:28 +0000 (20:39 -0400)]
Merge change 24624 into eclair

* changes:
  Fix the include files from the last WebKit merge. If there is Android version, we should not include None version. This should fix plugin loading, bookmark icon problems.

14 years agoFix the include files from the last WebKit merge. If there is Android version,
Grace Kloba [Fri, 11 Sep 2009 00:38:20 +0000 (17:38 -0700)]
Fix the include files from the last WebKit merge. If there is Android version,
we should not include None version. This should fix plugin loading, bookmark
icon problems.

14 years agoallow mixed-case schemes in resource URLs
Cary Clark [Thu, 10 Sep 2009 17:30:19 +0000 (13:30 -0400)]
allow mixed-case schemes in resource URLs

Adjust the scheme to all lower case before looking up the
resource if the original was not already lower case.
This fixes http://b/2056348

14 years agoRemoves Geolocation Geoposition.toString and Coordinates.toString.
Steve Block [Thu, 10 Sep 2009 13:40:55 +0000 (14:40 +0100)]
Removes Geolocation Geoposition.toString and Coordinates.toString.

This fixes http://b/issue?id=2103855.

Change-Id: I1811d97c59e0458a94347c8a63b4d1c0541dfaf7

14 years agoMerge change 24297 into eclair
Android (Google) Code Review [Wed, 9 Sep 2009 15:54:37 +0000 (11:54 -0400)]
Merge change 24297 into eclair

* changes:
  Move mobile doctype check from HTMLDocument to Document so that it will cover xhtml case like http://us.m1.yahoo.com.

14 years agoMerge change 24338 into eclair
Android (Google) Code Review [Wed, 9 Sep 2009 12:37:31 +0000 (05:37 -0700)]
Merge change 24338 into eclair

* changes:
  Fix for 2106269

14 years agoFix for 2106269
Andrei Popescu [Wed, 9 Sep 2009 12:35:07 +0000 (13:35 +0100)]
Fix for 2106269

14 years agoMove mobile doctype check from HTMLDocument to Document so that it will cover xhtml...
Grace Kloba [Wed, 9 Sep 2009 01:51:19 +0000 (18:51 -0700)]
Move mobile doctype check from HTMLDocument to Document so that it will cover xhtml case like us.m1.yahoo.com.

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

14 years agoMerge change 24042 into eclair
Android (Google) Code Review [Tue, 8 Sep 2009 19:02:30 +0000 (12:02 -0700)]
Merge change 24042 into eclair

* changes:
  Handle another old style meta tag, MobileOptimized. Also if the sites set the width for the viewport to be less than 320, just use device-width.

14 years agoSwitch back to JSC
Andrei Popescu [Tue, 8 Sep 2009 18:38:33 +0000 (19:38 +0100)]
Switch back to JSC

14 years agoUpdates mock Geolocation service to match final version submitted to WebKit.
Steve Block [Tue, 8 Sep 2009 11:04:42 +0000 (12:04 +0100)]
Updates mock Geolocation service to match final version submitted to WebKit.

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

Change-Id: I30900239108ea699f194fceb30626f41c928c08e

14 years agoMerge change 24108 into eclair
Android (Google) Code Review [Tue, 8 Sep 2009 10:49:05 +0000 (03:49 -0700)]
Merge change 24108 into eclair

* changes:
  Store Geolocation cached position between browser sessions.

14 years agoUpdate V8 to bleeding_edge r2842.
Ben Murdoch [Tue, 8 Sep 2009 10:14:35 +0000 (11:14 +0100)]
Update V8 to bleeding_edge r2842.

14 years agoStore Geolocation cached position between browser sessions.
Steve Block [Fri, 4 Sep 2009 13:26:00 +0000 (14:26 +0100)]
Store Geolocation cached position between browser sessions.

This fixes bug http://b/issue?id=2054431.

Change-Id: I44b752b0c7fb4529027018c99dd945279b594b89

14 years agoFixes Coordinates::toString to not print optional parameters that are not specified.
Steve Block [Thu, 3 Sep 2009 11:44:53 +0000 (12:44 +0100)]
Fixes Coordinates::toString to not print optional parameters that are not specified.

This fixes http://b/issue?id=2103855.

Change-Id: Ie540c7adc056ea0f285b7558b2f33acfcc1ecab2

14 years agoImplements Geolocation PositionOptions.maximumAge property.
Steve Block [Tue, 25 Aug 2009 11:47:09 +0000 (12:47 +0100)]
Implements Geolocation PositionOptions.maximumAge property.

This fixes bug http://b/issue?id=2054431.

Change-Id: Ic5fcd763e448b3bdc02de5d2a40d418ef25d39f9

14 years agoMerge change 23972 into eclair
Android (Google) Code Review [Mon, 7 Sep 2009 11:40:06 +0000 (04:40 -0700)]
Merge change 23972 into eclair

* changes:
  Fixes Geolocation to correctly handle infinite values for PositionOptions properties.

14 years agoHandle another old style meta tag, MobileOptimized. Also if the sites set
Grace Kloba [Fri, 4 Sep 2009 23:30:32 +0000 (16:30 -0700)]
Handle another old style meta tag, MobileOptimized. Also if the sites set
the width for the viewport to be less than 320, just use device-width.

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

14 years agoFixes Geolocation to correctly handle infinite values for PositionOptions properties.
Steve Block [Wed, 2 Sep 2009 17:13:59 +0000 (18:13 +0100)]
Fixes Geolocation to correctly handle infinite values for PositionOptions properties.

This fixes http://b/issue?id=2094429.

Change-Id: I01cc5107d4a96840e35cc403161d50dbdf6a1ca2

14 years agoMerge change 23971 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 16:57:00 +0000 (09:57 -0700)]
Merge change 23971 into eclair

* changes:
  Adds V8 bindings for optional properties of Geolocation Coordinates object.

14 years agoMerge change 23969 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 16:54:34 +0000 (09:54 -0700)]
Merge change 23969 into eclair

* changes:
  Updates MockGeolocationService to call back to the Geolocation object only when active.

14 years agoAdds V8 bindings for optional properties of Geolocation Coordinates object.
Steve Block [Thu, 3 Sep 2009 12:15:33 +0000 (13:15 +0100)]
Adds V8 bindings for optional properties of Geolocation Coordinates object.

This fixes http://b/issue?id=2049677.

14 years agoUpdates MockGeolocationService to call back to the Geolocation object only when active.
Steve Block [Wed, 2 Sep 2009 15:41:24 +0000 (16:41 +0100)]
Updates MockGeolocationService to call back to the Geolocation object only when active.

14 years agoMerge change 23957 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 16:26:48 +0000 (09:26 -0700)]
Merge change 23957 into eclair

* changes:
  Fix Geolocation to correctly handle reentrant calls from callbacks.

14 years agoFix Geolocation to correctly handle reentrant calls from callbacks.
Steve Block [Wed, 2 Sep 2009 15:17:41 +0000 (16:17 +0100)]
Fix Geolocation to correctly handle reentrant calls from callbacks.

This fixes http://b/issue?id=2094823.

14 years agoMerge change 23954 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 13:56:46 +0000 (06:56 -0700)]
Merge change 23954 into eclair

* changes:
  Makes Geolocation error callback asynchronous when service fails to start.

14 years agoMakes Geolocation error callback asynchronous when service fails to start.
Steve Block [Tue, 25 Aug 2009 11:13:41 +0000 (12:13 +0100)]
Makes Geolocation error callback asynchronous when service fails to start.

This fixes http://b/issue?id=2054361.

Change-Id: I83ff2618fb49bb126c7cd4c318914c6a0c68d69d

14 years agoMerge change 23829 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 13:23:50 +0000 (06:23 -0700)]
Merge change 23829 into eclair

* changes:
  Refactors Geolocation to avoid duplication in getCurrentPosition and watchPosition.

14 years agoMerge change 23625 into eclair
Android (Google) Code Review [Fri, 4 Sep 2009 11:13:00 +0000 (04:13 -0700)]
Merge change 23625 into eclair

* changes:
  Fix the DOM storage layout tests when running with V8. Change the custom bindings to ignore requests for the length attribute and update the event handling code to create Storage Events properly.

14 years agoAllow 0 to be passed for the nativePointerParameter to nativeAddJavaScriptInterface...
Andrei Popescu [Thu, 3 Sep 2009 19:37:48 +0000 (20:37 +0100)]
Allow 0 to be passed for the nativePointerParameter to nativeAddJavaScriptInterface. When 0, we add the iface to the top level frame.

14 years agostart in the proper subframe when finding the next text field
Cary Clark [Thu, 3 Sep 2009 20:05:35 +0000 (16:05 -0400)]
start in the proper subframe when finding the next text field

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

14 years agoRefactors Geolocation to avoid duplication in getCurrentPosition and watchPosition.
Steve Block [Tue, 25 Aug 2009 11:10:30 +0000 (12:10 +0100)]
Refactors Geolocation to avoid duplication in getCurrentPosition and watchPosition.

This change is being submitted to WebKit as part of https://bugs.webkit.org/show_bug.cgi?id=27944.

14 years agoMerge change 23630 into eclair
Android (Google) Code Review [Thu, 3 Sep 2009 17:19:37 +0000 (10:19 -0700)]
Merge change 23630 into eclair

* changes:
  Brings Mock Geolocation service up to date with latest submission to WebKit.

14 years agoGet the drawable directory from Java for the platform buttons.
Grace Kloba [Wed, 2 Sep 2009 23:20:34 +0000 (16:20 -0700)]
Get the drawable directory from Java for the platform buttons.

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

14 years agoBrings Mock Geolocation service up to date with latest submission to WebKit.
Steve Block [Wed, 2 Sep 2009 15:50:51 +0000 (16:50 +0100)]
Brings Mock Geolocation service up to date with latest submission to WebKit.

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

14 years agoFix the DOM storage layout tests when running with V8. Change the custom bindings...
Ben Murdoch [Wed, 2 Sep 2009 15:31:46 +0000 (16:31 +0100)]
Fix the DOM storage layout tests when running with V8. Change the custom bindings to ignore requests for the length attribute and update the event handling code to create Storage Events properly.

14 years agoMerge change 22906 into eclair
Android (Google) Code Review [Wed, 2 Sep 2009 11:59:24 +0000 (04:59 -0700)]
Merge change 22906 into eclair

* changes:
  Add functionality to V8 bindings for SQLTransaction to allow array-like objects to be passed as the second parameter to executeSql(), and ensure exceptions are thrown in the right places.

14 years agoAdd functionality to V8 bindings for SQLTransaction to allow array-like objects to...
Ben Murdoch [Wed, 26 Aug 2009 11:42:59 +0000 (12:42 +0100)]
Add functionality to V8 bindings for SQLTransaction to allow array-like objects to be passed as the second parameter to executeSql(), and ensure exceptions are thrown in the right places.

14 years agoMerge change 23614 into eclair
Android (Google) Code Review [Wed, 2 Sep 2009 09:52:12 +0000 (02:52 -0700)]
Merge change 23614 into eclair

* changes:
  Enables Geolocation for V8.

14 years agoAdd .gitignore for WebKit build directories.
Grace Kloba [Tue, 1 Sep 2009 21:03:38 +0000 (14:03 -0700)]
Add .gitignore for WebKit build directories.