OSDN Git Service

android-x86/external-webkit.git
14 years agoMerge "Fix platformVisibleContentRect() for the sub frame. The visibleBounds is only...
Grace Kloba [Fri, 4 Jun 2010 16:27:05 +0000 (09:27 -0700)]
Merge "Fix platformVisibleContentRect() for the sub frame. The visibleBounds is only set to the top frame. For sub frame, we need to intersect it with the sub frame's own bounds."

14 years agoFall back to old linker temporarily due to a bug in gold.
Doug Kwan [Fri, 4 Jun 2010 07:15:00 +0000 (00:15 -0700)]
Fall back to old linker temporarily due to a bug in gold.

Change-Id: Ibf6eb848238f37d52be7bd24760ee21dc9411e62

14 years agoFix platformVisibleContentRect() for the sub frame.
Grace Kloba [Thu, 3 Jun 2010 16:47:19 +0000 (09:47 -0700)]
Fix platformVisibleContentRect() for the sub frame.
The visibleBounds is only set to the top frame. For
sub frame, we need to intersect it with the sub frame's
own bounds.

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

14 years agoAdd indexeddb layout tests at 60074 in preparation for the new merge.
Leon Clarke [Thu, 3 Jun 2010 13:48:52 +0000 (14:48 +0100)]
Add indexeddb layout tests at 60074 in preparation for the new merge.
They won't work, but will be added to the skip list.

Change-Id: Iee37cfb4abcf7dd02ec83d482e87fdc057d5e308

14 years agoEnable File Reader and blob.slice APIs.
Ben Murdoch [Fri, 28 May 2010 10:08:34 +0000 (11:08 +0100)]
Enable File Reader and blob.slice APIs.

Notes:
- the change to WebCore/html/FileStream.cpp is a cherry pick of http://trac.webkit.org/changeset/60325
- the change to WebCore/platform/posix/FileSystemPOSIX.cpp is a cherry pick of http://trac.webkit.org/changeset/60374
- this needs a corresponding frameworks/base change

Change-Id: I05d1496e1e95adf1c6a61c6f07bbf62e9bc92820

14 years agoCode clean up, http://b/issue?id=2724743
Grace Kloba [Sat, 29 May 2010 01:06:43 +0000 (18:06 -0700)]
Code clean up, http://b/issue?id=2724743

Change Widget:screenWidth() to Widget:textWrapWidth()
as the text wrap width may be different than the
screen width after pinch zoom.

Change AndroidWebHistoryBridge's m_screenWidthScale
to m_textWrapScale to reflect its meaning.

Remove unused screenWidth/screenHeight in PlatformBridge.

Merge two restore methods to one. There is a matching
CL in framework/base.

Only setUseFixedLayout if layout width is different
than screen width.

Change from Node* to Ref<Node> to avoid a crash.
Fix http://b/issue?id=2660396

14 years agoUse the real visibleBounds for the ScrollView's
Grace Kloba [Fri, 28 May 2010 17:51:40 +0000 (10:51 -0700)]
Use the real visibleBounds for the ScrollView's
visibleContentRect.

Use the fixedLayout for the main FramView so that
the virtual viewport is set up correctly for the
css percent calculation.

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

14 years agoReport correct window.innerWidth and window.innerHeight.
Grace Kloba [Wed, 26 May 2010 19:27:41 +0000 (12:27 -0700)]
Report correct window.innerWidth and window.innerHeight.

I agree with this article that we should have a way
to report the visible viewport to the JavaScript.

http://www.quirksmode.org/mobile/viewports2.html#link6

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

I will try to upstream the code to WebKit separately.

14 years agoMerge "Fix popup window default size."
Grace Kloba [Thu, 27 May 2010 16:51:03 +0000 (09:51 -0700)]
Merge "Fix popup window default size."

14 years agoFix popup window default size.
Grace Kloba [Wed, 26 May 2010 23:24:10 +0000 (16:24 -0700)]
Fix popup window default size.

The change has been submitted to WebKit.
https://bugs.webkit.org/show_bug.cgi?id=39835

14 years agoAdded getTouchHighlightRects for the fat point.
Grace Kloba [Tue, 25 May 2010 04:54:49 +0000 (21:54 -0700)]
Added getTouchHighlightRects for the fat point.

There is another matching CL in framework/base.

14 years agoMerge WebKit at r60074: Update WEBKIT_MERGE_REVISION
Steve Block [Wed, 26 May 2010 10:30:57 +0000 (11:30 +0100)]
Merge WebKit at r60074: Update WEBKIT_MERGE_REVISION

Change-Id: I0d3f2bcfe262888ca1388b56c680d13e3b1f455c

14 years agoMerge WebKit at r60074: Update Android-specific expected LayoutTests results
Steve Block [Wed, 26 May 2010 13:10:43 +0000 (14:10 +0100)]
Merge WebKit at r60074: Update Android-specific expected LayoutTests results

Refactored Geolocation tests, see http://trac.webkit.org/changeset/59926
- android-v8/fast/dom/Geolocation/callback-exception-expected.txt

New Geolocation test, see http://trac.webkit.org/changeset/59859
- android-v8/fast/dom/Geolocation/notimer-after-unload-expected.txt

Change-Id: Ife6cd9850d0419adadf5813b17f4a2813090ff30

14 years agoMerge WebKit at r60074: Remove ANDROID_EXPOSE_COLUMN_GAP as RenderBlock::columnGap...
Steve Block [Wed, 26 May 2010 10:48:42 +0000 (11:48 +0100)]
Merge WebKit at r60074: Remove ANDROID_EXPOSE_COLUMN_GAP as RenderBlock::columnGap() is now public

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

Change-Id: I06ab20401e79c8b9c8104bb6a81c5891ef36d717

14 years agoMerge WebKit at r60074: RenderStyle color accessors are now private
Steve Block [Wed, 26 May 2010 10:26:00 +0000 (11:26 +0100)]
Merge WebKit at r60074: RenderStyle color accessors are now private

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

Change-Id: If1839f65ad960250c7dda5b565bd47278aa7df14

14 years agoMerge WebKit at r60074: Pass null DeviceOrientationClient to Page constructor
Steve Block [Wed, 26 May 2010 10:08:08 +0000 (11:08 +0100)]
Merge WebKit at r60074: Pass null DeviceOrientationClient to Page constructor

Change-Id: I0afccb0d08d42f13579ff7df4c41ed2d07abb36e

14 years agoMerge WebKit at r60074: Fix Android makefiles
Steve Block [Wed, 26 May 2010 10:33:23 +0000 (11:33 +0100)]
Merge WebKit at r60074: Fix Android makefiles

Change-Id: I549373cf00e9cc72060eccaf55e6a3efb0623df0

14 years agoMerge WebKit at r60074: Fix conflicts
Steve Block [Wed, 26 May 2010 09:20:32 +0000 (10:20 +0100)]
Merge WebKit at r60074: Fix conflicts

DeviceOrientation
- WebCore/Android.derived.jscbindings.mk
- WebCore/Android.derived.v8bindings.mk
- WebCore/page/Page.cpp

Trivial
- WebCore/css/CSSParser.cpp
- WebCore/page/Settings.cpp
- WebCore/page/Settings.h
- WebCore/rendering/style/RenderStyle.h

Code deletion - See http://trac.webkit.org/changeset/59749
- WebCore/html/HTMLTokenizer.cpp

PluginView JSC guards uspstreaming
- WebCore/plugins/PluginView.cpp
- WebCore/plugins/PluginView.h

Refactoring, see http://trac.webkit.org/changeset/59784
- WebCore/rendering/RenderLayer.cpp

RenderBlock::columnGap() and columnRects() are now public, see http://trac.webkit.org/changeset/59784
- WebCore/rendering/RenderBlock.h

Change-Id: I409c68d334d60c3854b4b0365c18e6f63884afa6

14 years agoMerge WebKit at r60074: Initial merge by git
Steve Block [Wed, 26 May 2010 09:11:43 +0000 (10:11 +0100)]
Merge WebKit at r60074: Initial merge by git

Change-Id: I18a2dc5439e36c928351ea829d8fb4e39b062fc7

14 years agoMerge "Remove the unnecessary return keyword."
Shimeng (Simon) Wang [Wed, 26 May 2010 21:51:38 +0000 (14:51 -0700)]
Merge "Remove the unnecessary return keyword."

14 years agoRemove the unnecessary return keyword.
Shimeng (Simon) Wang [Wed, 26 May 2010 21:42:40 +0000 (14:42 -0700)]
Remove the unnecessary return keyword.

Change-Id: If55ba03f4c46afed544083263fbd6d3577807909

14 years agoMerge "Refix http://b/issue?id=2509597."
Grace Kloba [Wed, 26 May 2010 21:18:38 +0000 (14:18 -0700)]
Merge "Refix http://b/issue?id=2509597."

14 years agoRefix http://b/issue?id=2509597.
Grace Kloba [Tue, 25 May 2010 05:27:34 +0000 (22:27 -0700)]
Refix http://b/issue?id=2509597.

Instead of changing the screenRect for the Screen
object, change createWindow() logic to depend on the
WebCoreViewBridge width/height instead of Screen
as Screen is supposed to be in device pixel and it
is not proper to be used here. Update the comment
for the screenRect so that we won't mistakenly modify it.

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

14 years agoChoose right operator new/delete in case of multiple inheritance.
Shimeng (Simon) Wang [Wed, 26 May 2010 17:43:12 +0000 (10:43 -0700)]
Choose right operator new/delete in case of multiple inheritance.

Change-Id: I5ae0c7ad9e06021a8149b5b70fdb20a0f0a8f4d8

14 years agoMerge WebKit at r59636: Update WebKit version
Kristian Monsen [Tue, 25 May 2010 10:08:19 +0000 (11:08 +0100)]
Merge WebKit at r59636: Update WebKit version

Change-Id: I784830d55a5238da319e9487fd113d81b11b4735

14 years agoMerge "Merge WebKit at r59636: Variable changed to method upstream http://trac.webkit...
Kristian Monsen [Tue, 25 May 2010 15:00:42 +0000 (08:00 -0700)]
Merge "Merge WebKit at r59636: Variable changed to method upstream trac.webkit.org/changeset/59576/trunk/WebCore/loader/CachedResource.h#file0"

14 years agoMerge "Merge WebKit at r59636: Added header needed for Android"
Kristian Monsen [Tue, 25 May 2010 15:00:35 +0000 (08:00 -0700)]
Merge "Merge WebKit at r59636: Added header needed for Android"

14 years agoMerge "Merge WebKit at r59636: Method name changed upstream http://trac.webkit.org...
Kristian Monsen [Tue, 25 May 2010 15:00:30 +0000 (08:00 -0700)]
Merge "Merge WebKit at r59636: Method name changed upstream trac.webkit.org/changeset/59227/trunk/WebCore/html/HTMLLabelElement.h#file0"

14 years agoMerge changes I03b28d93,Ie53e458f
Kristian Monsen [Tue, 25 May 2010 15:00:24 +0000 (08:00 -0700)]
Merge changes I03b28d93,Ie53e458f

* changes:
  Merge WebKit at r59636: Fix Android ifdef, commas moved upstream. http://trac.webkit.org/changeset/59035/trunk/WebCore/bridge/npapi.h#file0
  Merge WebKit at r59636: Fix makefiles

14 years agoMerge "Merge WebKit at r59636: Fix conflicts"
Kristian Monsen [Tue, 25 May 2010 14:59:08 +0000 (07:59 -0700)]
Merge "Merge WebKit at r59636: Fix conflicts"

14 years agoMerge "Merge WebKit at r59636: Initial merge by git"
Kristian Monsen [Tue, 25 May 2010 14:58:57 +0000 (07:58 -0700)]
Merge "Merge WebKit at r59636: Initial merge by git"

14 years agoDo not try to show pdf's in the browser.
Patrick Scott [Fri, 21 May 2010 18:26:44 +0000 (14:26 -0400)]
Do not try to show pdf's in the browser.

We were skipping the canShowMIMEType check if content_disposition was non-empty.
That was causing us to treat an inline content disposition as if we could show
it in the browser.  Instead, fallback to checking the mime type so we download
files that we can't natively show.

Bug: 2698159
Change-Id: I846dfea565bc4eeade9d679a0101a81858ef29cb

14 years agoMerge WebKit at r59636: Variable changed to method upstream
Kristian Monsen [Mon, 24 May 2010 17:18:47 +0000 (18:18 +0100)]
Merge WebKit at r59636: Variable changed to method upstream
http://trac.webkit.org/changeset/59576/trunk/WebCore/loader/CachedResource.h#file0

Change-Id: Icf2abd0e5983cd4c2188305889edec4e072e684e

14 years agoMerge WebKit at r59636: Added header needed for Android
Kristian Monsen [Mon, 24 May 2010 17:17:07 +0000 (18:17 +0100)]
Merge WebKit at r59636: Added header needed for Android

Change-Id: I15e893f845e1d4b0c15548350511e45eee35dbb1

14 years agoMerge WebKit at r59636: Method name changed upstream
Kristian Monsen [Mon, 24 May 2010 16:11:00 +0000 (17:11 +0100)]
Merge WebKit at r59636: Method name changed upstream
http://trac.webkit.org/changeset/59227/trunk/WebCore/html/HTMLLabelElement.h#file0

Change-Id: I78e259fde5c59c9fe84173abedc8ff3996142381

14 years agoMerge WebKit at r59636: Fix Android ifdef, commas moved upstream.
Kristian Monsen [Mon, 24 May 2010 16:09:42 +0000 (17:09 +0100)]
Merge WebKit at r59636: Fix Android ifdef, commas moved upstream.
http://trac.webkit.org/changeset/59035/trunk/WebCore/bridge/npapi.h#file0

Change-Id: I03b28d93e229f5a0f7dbc918c0234a549bb73071

14 years agoMerge WebKit at r59636: Fix makefiles
Kristian Monsen [Mon, 24 May 2010 10:41:04 +0000 (11:41 +0100)]
Merge WebKit at r59636: Fix makefiles

Change-Id: Ie53e458fbec03234aeb3ba16ce4d90aa629d3575

14 years agoMerge WebKit at r59636: Fix conflicts
Kristian Monsen [Fri, 21 May 2010 16:40:46 +0000 (17:40 +0100)]
Merge WebKit at r59636: Fix conflicts

Change-Id: If40295eb42282bace49d422e4a24026ddac17cfe

14 years agoMerge WebKit at r59636: Initial merge by git
Kristian Monsen [Fri, 21 May 2010 15:53:46 +0000 (16:53 +0100)]
Merge WebKit at r59636: Initial merge by git

Change-Id: I59b289c4e6b18425f06ce41cc9d34c522515de91

14 years agoMerge "First draft to add a fat point to WebKit hit test."
Grace Kloba [Tue, 25 May 2010 04:45:32 +0000 (21:45 -0700)]
Merge "First draft to add a fat point to WebKit hit test."

14 years agoFirst draft to add a fat point to WebKit hit test.
Grace Kloba [Wed, 19 May 2010 04:59:53 +0000 (21:59 -0700)]
First draft to add a fat point to WebKit hit test.

If padding is 0, it is the old style point hit test.
If it finds a node, it will break the search loop
and return.

If padding is non-zero, the first node will be added
to HitTestResult's innerNode as before. But instead
of finishing the search, hit test will continue to
look for other nodes covered by the fat point unless
it is fully inside the current node.

Here are some highlights of the changes.

. instead of testing renderRect.contains(x, y),
  we now test renderRect.intersect(pointRect)
. when a Node is hit, it will be appended to the
  rawNodeList of HitTestResult. So the order inside
  the rawNodeList represents the hit test order.

Currently the fat point doesn't support SVG nodes.
It also doesn't support overflow control yet.

14 years agoOnly set extra_layout_delay if the loader is not
Grace Kloba [Mon, 24 May 2010 16:18:48 +0000 (09:18 -0700)]
Only set extra_layout_delay if the loader is not
completed yet.

In some case, especially with iframe, we may get
the loader finished before first layout. In this
case, we should not set layout delay. Otherwise it
won't be cleared.

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

14 years agoMerge "Fix a binding big in WebKit which prevents url hijacking for mobile adsense."
Grace Kloba [Mon, 24 May 2010 16:07:53 +0000 (09:07 -0700)]
Merge "Fix a binding big in WebKit which prevents url hijacking for mobile adsense."

14 years agoFix a binding big in WebKit which prevents url
Grace Kloba [Fri, 21 May 2010 16:35:01 +0000 (09:35 -0700)]
Fix a binding big in WebKit which prevents url
hijacking for mobile adsense.

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

cherry-pick the change from WebKit
https://bugs.webkit.org/show_bug.cgi?id=39452

14 years agoimplement Canvas.toDataURL
Cary Clark [Mon, 24 May 2010 14:44:10 +0000 (10:44 -0400)]
implement Canvas.toDataURL

The Chrome implementation serves as the base for this code.
The test is at http://philip.html5.org/tests/canvas/suite/tests/index.toDataURL.html

Change-Id: I873518362793fbe1c99686fbe240cfe7c27d1493
http://b/2620678

14 years agoMerge "check for null on extremely large images"
Cary Clark [Mon, 24 May 2010 14:30:03 +0000 (07:30 -0700)]
Merge "check for null on extremely large images"

14 years agocheck for null on extremely large images
Cary Clark [Mon, 24 May 2010 14:18:52 +0000 (10:18 -0400)]
check for null on extremely large images

The new PrivateAndroidImageSourceRec allocator may return null
if the image sizes are extremely large. Check for this to avoid
a null deference.

Change-Id: Ia129a87a1794a2696a4e1e415a940ac2b6b50064
http://b/2689053

14 years agoMerge "Cherry-pick WebKit change 59918 to fix Java bridge for JSC"
Steve Block [Mon, 24 May 2010 11:40:14 +0000 (04:40 -0700)]
Merge "Cherry-pick WebKit change 59918 to fix Java bridge for JSC"

14 years agoMerge "Update Android to reflect upstreamed code to avoid Geolocation leaks"
Steve Block [Mon, 24 May 2010 11:29:35 +0000 (04:29 -0700)]
Merge "Update Android to reflect upstreamed code to avoid Geolocation leaks"

14 years agoUpdate Android to reflect upstreamed code to avoid Geolocation leaks
Steve Block [Wed, 12 May 2010 12:58:00 +0000 (13:58 +0100)]
Update Android to reflect upstreamed code to avoid Geolocation leaks

This is a cherry-pick of WebKit change http://trac.webkit.org/changeset/60069
This releases references to JS callbacks in the page and allows the Frame and
thus the Geolocation object to be cleaned up. This change allows us to remove
the Android-specific code which achieved the same through an unload listener.

Bug: 2169518
Change-Id: I1ed97d40d7f69ec94a58eaa21bfa4979737cc84d

14 years agoRemove the use of a timer to delay painting, instead use a flag and check it
Nicolas Roard [Wed, 31 Mar 2010 22:18:51 +0000 (23:18 +0100)]
Remove the use of a timer to delay painting, instead use a flag and check it
in RecordContent.

Change-Id: I2a7c11d0cb9697bbc415b2b91ee96a188bf45bf3

14 years agoMerge "reverse RTL characters in copy"
Cary Clark [Fri, 21 May 2010 18:46:26 +0000 (11:46 -0700)]
Merge "reverse RTL characters in copy"

14 years agoreverse RTL characters in copy
Cary Clark [Thu, 20 May 2010 17:34:36 +0000 (13:34 -0400)]
reverse RTL characters in copy

Text is copied from the picture in visual left-to-right order.
Reverse right-to-left substrings before returning the result.

This algorithm for reversal is also used by webkit to draw
text, and has the same limitations.

This fixes text pasted into the title bar, but does not work
correctly for text pasted into an input field -- LTR text is
placed incorrectly -- but that's another bug.

Change-Id: I4709b74e32495d4b77d33910ac8da34d4a88edd0
http://b/2525085

14 years agoProvide a string for the case where a file upload control has not had a file attached...
Ben Murdoch [Tue, 18 May 2010 15:16:01 +0000 (16:16 +0100)]
Provide a string for the case where a file upload control has not had a file attached to it.

Requires a frameworks/base change.

Change-Id: Ia50d4b8cceb943166198888dad364b09a2dc06a1

14 years agoUpdate file chooser to pass the accept type from WebCore to Java.
Ben Murdoch [Tue, 18 May 2010 12:15:44 +0000 (13:15 +0100)]
Update file chooser to pass the accept type from WebCore to Java.

Requires a frameworks/base change to receive the accept type and
a packages/apps/Browser change to override the new method
signature.

Change-Id: I3d0cfdc76151237a3167139c89f5e275b209ab37

14 years agoAdd a method to the PlatformBridge to resolve the filename of a file
Ben Murdoch [Tue, 18 May 2010 11:40:50 +0000 (12:40 +0100)]
Add a method to the PlatformBridge to resolve the filename of a file
given its representation as a content:// URI, and the associated
JNI plumbing.

Requires a frameworks/base change.

Change-Id: I9b8b8bb3fbfa31c86f4212f91c140fe62c6c6682

14 years agoCherry-pick WebKit change 59918 to fix Java bridge for JSC
Steve Block [Fri, 21 May 2010 08:59:46 +0000 (09:59 +0100)]
Cherry-pick WebKit change 59918 to fix Java bridge for JSC

This is required to allow the LayoutTestController to work.

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

Change-Id: I96ab4a0da1ebb9e42cff43e4296341830d57f078

14 years agoFix incorrect position when using CSS shadows, and use left/top over right/bottom...
Nicolas Roard [Fri, 14 May 2010 00:31:19 +0000 (17:31 -0700)]
Fix incorrect position when using CSS shadows, and use left/top over right/bottom if defined

Change-Id: I38dbc87faffdb6806b356d89bfff1162023124e7

14 years agoFix the infinite loop when flatten iframes.
Patrick Scott [Thu, 20 May 2010 15:41:22 +0000 (11:41 -0400)]
Fix the infinite loop when flatten iframes.

Somehow javascript can cause a layout of the parent renderer in the middle of
the FrameView's layout.

Bug: 2614175
Change-Id: I37ed3d2e88de1762715e0d0712549d8fab0f12d2

14 years agoMerge "Update Android to reflect upstreaming of PluginView JSC guards in WebKit chang...
Steve Block [Thu, 20 May 2010 10:56:47 +0000 (03:56 -0700)]
Merge "Update Android to reflect upstreaming of PluginView JSC guards in WebKit change 59826"

14 years agoUpdate Android to reflect upstreaming of PluginView JSC guards in WebKit change 59826
Steve Block [Tue, 11 May 2010 13:22:42 +0000 (14:22 +0100)]
Update Android to reflect upstreaming of PluginView JSC guards in WebKit change 59826

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

Change-Id: Ia1e16f7fa71fe8b5740610e3caa4bfbf05391a0f

14 years agoFix build.
Leon Scroggins III [Wed, 19 May 2010 16:34:47 +0000 (12:34 -0400)]
Fix build.

Change-Id: Ic8251cd255785f7ad1081eba9a0eb8db84697b97

14 years agoProhibit scrolling not initiated by the user.
Leon Scroggins III [Tue, 18 May 2010 17:32:59 +0000 (13:32 -0400)]
Prohibit scrolling not initiated by the user.

We used to have an ANDROID specific change that was removed when
webkit changed.  See https://android-git.corp.google.com/w/?p=platform/external/webkit.git;a=commitdiff;h=57a47dd4f75b9c15804c3c61479540cfdc11bd6e

Bug 1330729
Bug 2694223

Change-Id: Id51edbb4943eb0a1357477d4bcd31d838febb8fb

14 years agoam 5a1f66aa: am ec92ec7c: merge from open-source master
The Android Open Source Project [Tue, 18 May 2010 17:57:26 +0000 (10:57 -0700)]
am 5a1f66aa: am ec92ec7c: merge from open-source master

14 years agoam ec92ec7c: merge from open-source master
The Android Open Source Project [Tue, 18 May 2010 17:54:40 +0000 (10:54 -0700)]
am ec92ec7c: merge from open-source master

Merge commit 'ec92ec7cd8fe4ad6c8137865ec2d6b43c1a56ee5' into kraken

* commit 'ec92ec7cd8fe4ad6c8137865ec2d6b43c1a56ee5':
  Check for the absence of a frame.

14 years agomerge from open-source master
The Android Open Source Project [Tue, 18 May 2010 17:52:22 +0000 (10:52 -0700)]
merge from open-source master

Change-Id: I906635459af677aceff46ff10de93d45670481cd

14 years agoMerge "Make sure Geolocation is robust to location providers being absent on the...
Steve Block [Tue, 18 May 2010 15:28:49 +0000 (08:28 -0700)]
Merge "Make sure Geolocation is robust to location providers being absent on the device."

14 years agoMerge "Check for the absence of a frame. This crashes in the situation where the...
Jean-Baptiste Queru [Tue, 18 May 2010 15:16:33 +0000 (08:16 -0700)]
Merge "Check for the absence of a frame. This crashes in the situation where the XHR responseXML method is being called on a document with meta tags. b/issue?id=2346028"

14 years agoMake sure Geolocation is robust to location providers being absent on the device.
Steve Block [Tue, 18 May 2010 14:17:44 +0000 (15:17 +0100)]
Make sure Geolocation is robust to location providers being absent on the device.

Bug: 2692830
Change-Id: Ib6395a04ec916a04cdd3a09569c4ea373fb422e9

14 years agoMerge "Adds missing ENABLE(TOUCH_EVENTS) guards to Android-specific code"
Steve Block [Tue, 18 May 2010 11:23:49 +0000 (04:23 -0700)]
Merge "Adds missing ENABLE(TOUCH_EVENTS) guards to Android-specific code"

14 years agoAdds missing ENABLE(TOUCH_EVENTS) guards to Android-specific code
Steve Block [Mon, 17 May 2010 16:28:09 +0000 (17:28 +0100)]
Adds missing ENABLE(TOUCH_EVENTS) guards to Android-specific code

This will allow us to build with touch events disabled once we've merged
https://bugs.webkit.org/show_bug.cgi?id=39222

Change-Id: Ia665e5e6c3b4169b6c5576aa26721d95e72934e9

14 years agoam b7c854ae: am 18e97e57: merge from open-source master
The Android Open Source Project [Mon, 17 May 2010 22:03:04 +0000 (15:03 -0700)]
am b7c854ae: am 18e97e57: merge from open-source master

14 years agoam 18e97e57: merge from open-source master
The Android Open Source Project [Mon, 17 May 2010 20:53:30 +0000 (13:53 -0700)]
am 18e97e57: merge from open-source master

Merge commit '18e97e57694ae8596ac316af30cb5512fe8ef1bf' into kraken

* commit '18e97e57694ae8596ac316af30cb5512fe8ef1bf':
  Fix focus ring on links with non-latin text

14 years agoignore offscreen drawing in SVG
Cary Clark [Mon, 17 May 2010 15:50:45 +0000 (11:50 -0400)]
ignore offscreen drawing in SVG

Drawing outside of the visible window is recorded so that future
scrolls have the correct picture data. When SVG triggers this
code path on its way to drawing to an offscreen bitmap, it
has not instantiated a WebViewCore object. Since in SVG's case,
there's no reason to record drawing outside if the offscreen
bitmap, it's correct to do nothing.

Offscreen bitmaps do not work with SVG; but that problem is
independent of this bug fix.

Change-Id: I0b9c6d5506b6a35b2992abfa6bcb1db6cb872fd0
http://b/2682606

14 years agomerge from open-source master
The Android Open Source Project [Mon, 17 May 2010 17:23:33 +0000 (10:23 -0700)]
merge from open-source master

Change-Id: I0b566897309348d094f93ed7ae5d9af7b0e8a377

14 years agoMerge "Fix focus ring on links with non-latin text"
Jean-Baptiste Queru [Mon, 17 May 2010 15:58:16 +0000 (08:58 -0700)]
Merge "Fix focus ring on links with non-latin text"

14 years agoRemove a superfluous ANDROID-only include from Node.cpp that has not been upstreamed.
Ben Murdoch [Mon, 17 May 2010 12:43:33 +0000 (13:43 +0100)]
Remove a superfluous ANDROID-only include from Node.cpp that has not been upstreamed.

Diff -=4! :)

Change-Id: Iafac0c2529bb66808e15efac63e75c63966d9673

14 years agoAdding a mechanism for injecting accessibility in WebViews with disabled JavaScript.
Svetoslav Ganov [Sat, 8 May 2010 03:33:09 +0000 (20:33 -0700)]
Adding a mechanism for injecting accessibility in WebViews with disabled JavaScript.

Change-Id: If0d8fc9cffcd00356dffe46af094b65488b3ff5a

14 years agosuppress partial screen updates if a canvas element is visible
Cary Clark [Fri, 14 May 2010 19:31:44 +0000 (15:31 -0400)]
suppress partial screen updates if a canvas element is visible

A PictureSet contains a list of pictures. Each picture draws
part of the screen. If the picture contains a Canvas element,
the corresponding bitmap is not shared.

Small partial invalidates can create a dozen or so pictures,
each of which may be quite small, a few hundred bytes. But
the bitmap referenced by the picture may be large, several
meg.

The backing bitmap is unique to the Canvas element. Since
a canvas rarely benefits from small updates, disable the
partial invalidates if CacheBuilder detects a canvas.

Change-Id: I5761667db3d037d7363dcb01f8a26f7f62e2eabc
http://b/2678787

14 years agoMerge "clean up nav cache debugging"
Cary Clark [Fri, 14 May 2010 15:26:27 +0000 (08:26 -0700)]
Merge "clean up nav cache debugging"

14 years agoclean up nav cache debugging
Cary Clark [Thu, 13 May 2010 19:57:59 +0000 (15:57 -0400)]
clean up nav cache debugging

This adds additional content to the nav cache dump,
and cleans up a few formatting problems. This has no
effect on code that does not have nav cache debugging
enabled.

Change-Id: Ice2c4bb33138a8ddc96739d95ead58fbe328bfa8

14 years agoMerge Webkit at r58956: Update WebKit revision number.
Ben Murdoch [Wed, 12 May 2010 13:18:52 +0000 (14:18 +0100)]
Merge Webkit at r58956: Update WebKit revision number.

Change-Id: Ic2e7908a14f735ac9b0b995f032015e8eb216edf

14 years agoMerge Webkit at r58956: Cherry pick of https://bugs.webkit.org/show_bug.cgi?id=38990...
Ben Murdoch [Wed, 12 May 2010 15:19:55 +0000 (16:19 +0100)]
Merge Webkit at r58956: Cherry pick of https://bugs.webkit.org/show_bug.cgi?id=38990 landed as r59459. Fixes touch event support with V8.

Change-Id: I5fb7da6570ce7ba5ed14f54e78ecb9a24664613a

14 years agoMerge Webkit at r58956: SVGPaintServer has been deleted upstream and replaced with...
Ben Murdoch [Wed, 12 May 2010 11:58:10 +0000 (12:58 +0100)]
Merge Webkit at r58956: SVGPaintServer has been deleted upstream and replaced with SVGResourceSolidColor.cpp.

We had local modifications in the deleted file to correctly guard some Chromium/Skia includes we don't have on
Android, so move the guards into the new file. See http://trac.webkit.org/changeset/58212

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

Change-Id: I8e7e9ea39009019f7caefd68d99942be77ea602d

14 years agoMerge Webkit at r58956: Update plugin code to use C99 types. See http://trac.webkit...
Ben Murdoch [Wed, 12 May 2010 11:09:29 +0000 (12:09 +0100)]
Merge Webkit at r58956: Update plugin code to use C99 types. See trac.webkit.org/changeset/58590

Change-Id: I73f3f008a88e69962de831a98d40e8d23c3cce30

14 years agoMerge Webkit at r58956: Add bool parameter to Widget::setFocus. See http://trac.webki...
Ben Murdoch [Wed, 12 May 2010 11:30:06 +0000 (12:30 +0100)]
Merge Webkit at r58956: Add bool parameter to Widget::setFocus. See trac.webkit.org/changeset/58821

Change-Id: I3ab2eb4fdb14e32106c4b2ef51b889f2ffcd3661

14 years agoMerge Webkit at r58956: Remove GlyphMetrics from Font code. See http://trac.webkit...
Ben Murdoch [Wed, 12 May 2010 11:23:21 +0000 (12:23 +0100)]
Merge Webkit at r58956: Remove GlyphMetrics from Font code. See trac.webkit.org/changeset/58192

Change-Id: I2b3876f4027d2d3afbf0cfaa76061c53d0bf018f

14 years agoMerge Webkit at r58956: add new FrameLoaderClient methods. See http://trac.webkit...
Ben Murdoch [Wed, 12 May 2010 11:00:26 +0000 (12:00 +0100)]
Merge Webkit at r58956: add new FrameLoaderClient methods. See trac.webkit.org/changeset/58686 and http://trac.webkit.org/changeset/58111

Change-Id: Iebc4ab59ac768d4dde2fe56f63657d98c4b9db3a

14 years agoMerge Webkit at r58956: Update Android makefiles.
Ben Murdoch [Wed, 12 May 2010 10:02:25 +0000 (11:02 +0100)]
Merge Webkit at r58956: Update Android makefiles.

Change-Id: Ie3bcd0e3d0363ad5fdfa26e275af3cca5f147ca2

14 years agoMerge Webkit at r58956: Fix conflicts.
Ben Murdoch [Tue, 11 May 2010 17:45:47 +0000 (18:45 +0100)]
Merge Webkit at r58956: Fix conflicts.

Fix conflict: JavaScriptCore/wtf/MathExtras.h: Take theirs due to
    recently upstreamed change http://trac.webkit.org/changeset/58110

Fix conflict: WebCore/dom/Node.cpp: Take both. The Android part can
    be removed post-merge.

Fix conflict: WebCore/platform/ScrollView.cpp
Fix conflict: WebCore/platform/ScrollView.h
Fix conflict: WebCore/platform/android/ScrollViewAndroid.cpp: Remove
    ScrollView::platformProhibitsScrolling and
    ScrollView::scrollRectIntoViewRecursively as they have been
    removed upstream in http://trac.webkit.org/changeset/58428,
    http://trac.webkit.org/changeset/58445 and
    http://trac.webkit.org/changeset/58611.
    platformProhibitsScrolling was an Android specific function
    called only from scrollRectIntoViewRecursively.

Fix conflict: WebCore/bindings/v8/ScriptCallStack.cpp: Take both
    (we have an Android specific addition).

Fix conflict: WebCore/html/HTMLOptionElement.cpp: Take theirs,
    our fix has been upstreamed in
    http://trac.webkit.org/changeset/58490.

Fix conflict: WebCore/rendering/RenderBox.cpp: Take theirs.
    See http://trac.webkit.org/changeset/58177

Fix conflict: WebCore/css/CSSStyleSelector.cpp Take both (Android
    specific addition).

Fix conflict: WebCore/css/CSSParser.cpp Take both (Android specific
    addition).

Fix conflict: WebCore/bridge/jni/jni_jsobject.h: Take theirs.
    see http://trac.webkit.org/changeset/58775

Fix conflict: FileSystemAndroid.cpp:
Fix conflict: FileSystemPOSIX.cpp: Take ours. Our changes have been
    upstreamed but beyond 58596. See
    http://trac.webkit.org/changeset/59226

Change-Id: I92c7e319bea9edcc2eb08726654b5c1e163effaf

14 years agoMerge Webkit at r58956: Initial merge by Git.
Ben Murdoch [Tue, 11 May 2010 17:35:50 +0000 (18:35 +0100)]
Merge Webkit at r58956: Initial merge by Git.

Change-Id: I1d9fb60ea2c3f2ddc04c17a871acdb39353be228

14 years agoFix a CSS position: fixed problem, where we were not using left or top if nothing...
Nicolas Roard [Fri, 14 May 2010 00:31:19 +0000 (17:31 -0700)]
Fix a CSS position: fixed problem, where we were not using left or top if nothing was defined

Change-Id: Ib9f5b473cbda0518e332332cdc1c515652150a8c

14 years agoCheck for the absence of a frame.
Leon Clarke [Thu, 14 Jan 2010 16:39:36 +0000 (16:39 +0000)]
Check for the absence of a frame.
This crashes in the situation where the XHR responseXML method is being
called on a document with meta tags.
http://b/issue?id=2346028

14 years agoMerge "don't use animated gifs if gifs only have one frame"
Cary Clark [Thu, 13 May 2010 19:55:51 +0000 (12:55 -0700)]
Merge "don't use animated gifs if gifs only have one frame"

14 years agodon't use animated gifs if gifs only have one frame
Cary Clark [Thu, 13 May 2010 19:31:02 +0000 (15:31 -0400)]
don't use animated gifs if gifs only have one frame

Gifs use a different decoding mechanism from other images. The
default webkit implementation allocates a bitmap for the gif,
which is serialized when the picture is flattened. A page with
a 25K display list may flatten into a 20M file if GIFs are
included as bitmaps.

GIFs can be written like other image types, as streams; then
the display list flattens to a 140K file. Currently, the
Skia-based images only can handle non-animated types.

When animated gifs was recently enabled, the flattened file
size grew. All gifs were treated as if they could be animated,
and all were decoded into bitmaps with straight memory allocations.

This change uses the stream-allocation mechanism if the GIF
has only one frame, and is therefore not animating.

Change-Id: Ie2360bb6f20515b81bd62761ca97242f33ffb43b
http://b/2650945

14 years agoMerge "Fix crash in fast/frames/iframe-access-screen-of-deleted.html"
Ben Murdoch [Thu, 13 May 2010 16:46:15 +0000 (09:46 -0700)]
Merge "Fix crash in fast/frames/iframe-access-screen-of-deleted.html"

14 years agoFix crash in fast/frames/iframe-access-screen-of-deleted.html
Ben Murdoch [Thu, 13 May 2010 10:51:29 +0000 (11:51 +0100)]
Fix crash in fast/frames/iframe-access-screen-of-deleted.html

This is a new layout test and triggers a crash inside screenRect() by
accessing the null page pointer. Other platform implementations perform
a null check on page in this function, so we now do the same to prevent
the crash.

Change-Id: I2403d7adc157daae69f6fb53bbbf212d9d04341c

14 years agoMerge "Add dom/html LayoutTests to Android tree."
Steve Block [Thu, 13 May 2010 10:09:15 +0000 (03:09 -0700)]
Merge "Add dom/html LayoutTests to Android tree."

14 years agoAdd dom/html LayoutTests to Android tree.
Steve Block [Thu, 13 May 2010 09:55:31 +0000 (10:55 +0100)]
Add dom/html LayoutTests to Android tree.

The new link prefetching tests have already been added to
dom/html/level2/html on Android (though they may be relocated during
upstreaming). This change pulls the entire dom/html directory (at r58033) into
Android to keep the merge process as simple as possible. All tests currently
pass.

Change-Id: I6908177dd626e0e45f72c12503b3a115bb879715

14 years agorestrict nav cache picture to content width, height
Cary Clark [Wed, 12 May 2010 19:12:02 +0000 (15:12 -0400)]
restrict nav cache picture to content width, height

Formerly, the nav cache picture recorded a rectangle of
(0, 0, INT_MAX, INT_MAX). If the drawing was subsequently
translated, the rectangle wrapped around and futher drawing
was clipped out.

Now the drawing is constrained to the contentWidth and
contentHeight -- the enclosing picture already had this
restriction.

http://b/2604141

Change-Id: Idde1cbaeb507310813a7c5b00e3dde9cacebe44d