OSDN Git Service

android-x86/external-webkit.git
13 years agobug:3325039 Making the cursor ring movement send accessibility events.
Svetoslav Ganov [Thu, 6 Jan 2011 02:52:54 +0000 (18:52 -0800)]
bug:3325039 Making the cursor ring movement send accessibility events.

1. Added a mechanism to select the cursor ring content if accessibility is
   enabled - This is achieved by sending an event to the WebCore thread
   (if accessibility is enabled) to select the content of the cursor when
   the latter moves. Added code in WebViewCore to select the given node
   and notify the UI thread for the selection markup which is delivered
   of the accessibility injector which manages sending accessibility
   events. This is relevant for adding accessibility to WebView if
   JavaScript is not enabled. (If JS is enabled we inject a screenreader
   written in JS).

2. Fixed the event delegation to the accessibility injector since it
   should be able to consume key events of interest and perform some
   action which leads to sending appropriate accessibility event.
   In the previous implementation it was possible that the injector
   consumes the event but the latter was bubbled up.

3. Added function to scroll the selection into view while moving it
   around based on user commands.

Note: This is a two project change.

Change-Id: Ica27f317e194474d4e38aba5d7a2c0acc9f05a33

13 years agoAdd debug info
Teng-Hui Zhu [Thu, 6 Jan 2011 00:42:38 +0000 (16:42 -0800)]
Add debug info

When we have such extra info in the log, it could lead to a root cause
more directly without manual adding and rebuilding.

bug:3307016
Change-Id: I7699c554923d1cdc4ddeb9795ad9c89687b1f27a

13 years agoMerge "Add multi-touch plugin API." into honeycomb
Derek Sollenberger [Fri, 7 Jan 2011 18:41:51 +0000 (10:41 -0800)]
Merge "Add multi-touch plugin API." into honeycomb

13 years agoRedo the clippingRect calculation
Teng-Hui Zhu [Thu, 6 Jan 2011 19:56:00 +0000 (11:56 -0800)]
Redo the clippingRect calculation

Although the intersetcion is done correctly, but the clippingRect
should take the parents' matrix into account.

To make the code cleaner, we convert all the rects into screen
coordinate for intersection.

bug:3304761
Change-Id: Ia3dc3e7b72f2e72eaab66ba8e017d89ab71dc468

13 years agoMerge "Not set max decoded image size in WebCore." into honeycomb
Shimeng (Simon) Wang [Fri, 7 Jan 2011 18:01:03 +0000 (10:01 -0800)]
Merge "Not set max decoded image size in WebCore." into honeycomb

13 years agoAdd multi-touch plugin API.
Derek Sollenberger [Fri, 7 Jan 2011 16:19:37 +0000 (11:19 -0500)]
Add multi-touch plugin API.

bug: 3302363
Change-Id: Iaaa5bdf8616043fdba47690fc130002d9fe57e8b

13 years agoMerge "Add additional debugging for plugins." into honeycomb
Derek Sollenberger [Fri, 7 Jan 2011 16:17:00 +0000 (08:17 -0800)]
Merge "Add additional debugging for plugins." into honeycomb

13 years agoAdd additional debugging for plugins.
Derek Sollenberger [Fri, 7 Jan 2011 16:04:46 +0000 (11:04 -0500)]
Add additional debugging for plugins.

Change-Id: Ie4437e0b62a16ee7e9d1b6fc605554ecc161cc6c

13 years agoMerge "Update a WebCache comment" into honeycomb
Steve Block [Fri, 7 Jan 2011 16:03:56 +0000 (08:03 -0800)]
Merge "Update a WebCache comment" into honeycomb

13 years agoUpdate a WebCache comment
Steve Block [Tue, 4 Jan 2011 15:58:40 +0000 (15:58 +0000)]
Update a WebCache comment

This should have been updated in
https://android-git.corp.google.com/g/82475

Change-Id: Ia4dee2458ebeb25bf9dc86a99b6f25f335be72dc

13 years agoMerge "Adds an optimization to cache the WebCache backend" into honeycomb
Steve Block [Fri, 7 Jan 2011 15:42:47 +0000 (07:42 -0800)]
Merge "Adds an optimization to cache the WebCache backend" into honeycomb

13 years agoMerge "Fix MIME type handling for badly-behaved servers." into honeycomb
Iain Merrick [Fri, 7 Jan 2011 13:51:41 +0000 (05:51 -0800)]
Merge "Fix MIME type handling for badly-behaved servers." into honeycomb

13 years agoFix MIME type handling for badly-behaved servers.
Iain Merrick [Thu, 6 Jan 2011 16:31:24 +0000 (16:31 +0000)]
Fix MIME type handling for badly-behaved servers.

This fixes http://scrabb.ly, which is a particularly bad example as
there is no filename and no Content-Type header. This CL duplicates
the behaviour of the Apache HTTP stack by defaulting to text/html.

Bug: 3242012
Change-Id: Id0e131ee880466e1708367612ac0217d43db347b

13 years agoMerge WebKit at Chromium 9.0.597.55: Update WebKit revision number
Ben Murdoch [Thu, 6 Jan 2011 21:48:45 +0000 (21:48 +0000)]
Merge WebKit at Chromium 9.0.597.55: Update WebKit revision number

Note that we are tracking the Chromium 9.0.597 release branch, which is
WebKit r72805 + stability cherry picks.

Change-Id: I640ea1149a9e95b7e27169a298f2fc63b544a269

13 years agoMerge WebKit at Chromium 9.0.597.55: RenderFrame docWidth method changed
Ben Murdoch [Thu, 6 Jan 2011 21:47:36 +0000 (21:47 +0000)]
Merge WebKit at Chromium 9.0.597.55: RenderFrame docWidth method changed

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

Change-Id: I8ab3171330e475bec7eade78b35b11304f74579a

13 years agoMerge WebKit at Chromium 9.0.597.55: trivial merge by git
Ben Murdoch [Thu, 6 Jan 2011 21:36:31 +0000 (21:36 +0000)]
Merge WebKit at Chromium 9.0.597.55: trivial merge by git

Change-Id: I2c6f2ebc4431d15ac82b5b1a9f08159e1731bc57

13 years agoDon't reflow if a RenderBlock has background color or image.
Shimeng (Simon) Wang [Fri, 7 Jan 2011 01:27:02 +0000 (17:27 -0800)]
Don't reflow if a RenderBlock has background color or image.

issue: 3313826
Change-Id: Ic9c87880eb6f41f72319f72123cc21cc2fe623f0

13 years agoNot set max decoded image size in WebCore.
Shimeng (Simon) Wang [Thu, 6 Jan 2011 22:14:18 +0000 (14:14 -0800)]
Not set max decoded image size in WebCore.

Two reasons:
1. the image size will be limited in ImageSourceAndroid.cpp.
2. WebCore will do an estimation comparison against that max value, which
will limit some good cases.

For example, in the case of the following bug, the background image size is limited
and good, but its estimation value in WebCore will exceed the max.

issue: 3240499
Change-Id: I721c7565beb648dd83200d05e223012299997e04

13 years agoMerge "When canceling <select> popup leave the value unchanged." into honeycomb
Leon Scroggins [Thu, 6 Jan 2011 19:39:24 +0000 (11:39 -0800)]
Merge "When canceling <select> popup leave the value unchanged." into honeycomb

13 years agoWhen canceling <select> popup leave the value unchanged.
Leon Scroggins [Thu, 6 Jan 2011 18:50:23 +0000 (13:50 -0500)]
When canceling <select> popup leave the value unchanged.

Bug:3328658

Change-Id: I70e7fa72a0f2df3957cb295efdf404fd91511610

13 years agoMerge "add iframes to the types that want key events" into honeycomb
Cary Clark [Thu, 6 Jan 2011 18:52:42 +0000 (10:52 -0800)]
Merge "add iframes to the types that want key events" into honeycomb

13 years agoadd iframes to the types that want key events
Cary Clark [Thu, 6 Jan 2011 18:43:34 +0000 (13:43 -0500)]
add iframes to the types that want key events

This is a companion change to frameworks/base, to
route the enter key to a webkit click only if the
cursor node does not want the key event.

bug:3325093
Change-Id: I78ebcec42cc413f645c080dff7f38e75e7f09c7f

13 years agoMerge "Add a stdStringToJstring() helper function" into honeycomb
Steve Block [Thu, 6 Jan 2011 18:23:10 +0000 (10:23 -0800)]
Merge "Add a stdStringToJstring() helper function" into honeycomb

13 years agoAdds an optimization to cache the WebCache backend
Steve Block [Tue, 4 Jan 2011 16:44:31 +0000 (16:44 +0000)]
Adds an optimization to cache the WebCache backend

Also does some general cleaning up.

Change-Id: If1b5a338bc6500c34d0c239a75377a2d23dc996d

13 years agoAdd a stdStringToJstring() helper function
Steve Block [Thu, 6 Jan 2011 17:35:52 +0000 (17:35 +0000)]
Add a stdStringToJstring() helper function

Change-Id: I323c753d7ce22e0e23928a126cfb99c781a074f1

13 years agoMerge "don't join non-adjacent bitmaps" into honeycomb
Cary Clark [Thu, 6 Jan 2011 18:17:07 +0000 (10:17 -0800)]
Merge "don't join non-adjacent bitmaps" into honeycomb

13 years agodon't join non-adjacent bitmaps
Cary Clark [Thu, 6 Jan 2011 18:05:07 +0000 (13:05 -0500)]
don't join non-adjacent bitmaps

When computing cursor rings, adjacent bitmaps and rectangles
may be joined into one. Glyphs may be non-adjacent to account
for intercharacter spacing and white space characters.

Bitmaps and rects may be close by but not joinable if they
don't share a common edge.

bug:3322613
Change-Id: Ie9e4b4f9f66857c533a8459c0f8a9a62d0be8dcd

13 years agoFix naming of wtfStringToJstring()
Steve Block [Thu, 6 Jan 2011 16:08:13 +0000 (16:08 +0000)]
Fix naming of wtfStringToJstring()

Change-Id: I3e1a4fb110fc9d312cc608c86fcaf7cb27431685

13 years agoMerge changes Idd1eee54,I6a266e12,Iaa56a5a5,I81915808,I956ac20a,I7e999ae3,If2386201...
Steve Block [Thu, 6 Jan 2011 14:28:27 +0000 (06:28 -0800)]
Merge changes Idd1eee54,I6a266e12,Iaa56a5a5,I81915808,I956ac20a,I7e999ae3,If2386201,I5ba4d097,Iac42b5b4,I5d2bb4e8

* changes:
  Merge WebKit at r72805: Update WebKit revision
  Merge WebKit at r72805: Cherry-pick WebKit change 73062
  Merge WebKit at r72805: Cherry-pick WebKit change 72948
  Merge WebKit at r72805: Update call sites to RenderFrame::docWidth()/docHeight()
  Merge WebKit at r72805: Undo previous conflict resolution in RenderSVGResourceSolidColor.cpp
  Merge WebKit at r72805: Update GraphicsContext method signatures
  Merge WebKit at r72805: Update EditorClient::getGuessesForWord()
  Merge WebKit at r72805: Use Node::parent() rather than Node::parentNode()
  Merge WebKit at r72805: Fix Makefiles
  Merge WebKit at r72805: Initial merge by Git

13 years agoMerge WebKit at r72805: Update WebKit revision
Steve Block [Wed, 5 Jan 2011 15:39:46 +0000 (15:39 +0000)]
Merge WebKit at r72805: Update WebKit revision

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: Idd1eee54590180c2efc16861453092295651eba3

13 years agoMerge WebKit at r72805: Cherry-pick WebKit change 73062
Steve Block [Wed, 5 Jan 2011 14:52:42 +0000 (14:52 +0000)]
Merge WebKit at r72805: Cherry-pick WebKit change 73062

This change is the upstreaming of local changes in
WebCore/platform/network. It did not generate conflicts in the merge to
r73109 as both upstream and local versions matched at r73109. But since
it appears after r72805, it was inadvertantly removed as part of the
initial merge by Git to r72805.

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

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: I6a266e1270cbc1f155065ae1c56c491ccf33e497

13 years agoMerge WebKit at r72805: Cherry-pick WebKit change 72948
Steve Block [Wed, 5 Jan 2011 15:06:26 +0000 (15:06 +0000)]
Merge WebKit at r72805: Cherry-pick WebKit change 72948

This fixes CodeGeneratorV8.pm

It is a re-commit of 'Merge WebKit at r72274: Fix CodeGeneratorV8.pm',
which was inadvertantly removed as part of the initial merge by Git to
r72805.

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

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: Iaa56a5a503aaaf4d996ebc44d66d557d12838cfa

13 years agoMerge WebKit at r72805: Update call sites to RenderFrame::docWidth()/docHeight()
Steve Block [Wed, 5 Jan 2011 12:20:13 +0000 (12:20 +0000)]
Merge WebKit at r72805: Update call sites to RenderFrame::docWidth()/docHeight()

This is effectively a revert of
"Merge Webkit at r73109: render frame docWidth/docHeight method changed."

See http://trac.webkit.org/changeset/72852 and
http://trac.webkit.org/changeset/73063

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: I81915808439847dce87beefdd527f77962e074b5

13 years agoMerge WebKit at r72805: Undo previous conflict resolution in RenderSVGResourceSolidCo...
Steve Block [Wed, 5 Jan 2011 12:24:24 +0000 (12:24 +0000)]
Merge WebKit at r72805: Undo previous conflict resolution in RenderSVGResourceSolidColor.cpp

This is effectively a partial revert of
"Merge Webkit at r73109: Fix conflicts"

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

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: I956ac20ac4985ed69921a8efad4a351ba0034e84

13 years agoMerge WebKit at r72805: Update GraphicsContext method signatures
Steve Block [Wed, 5 Jan 2011 12:29:23 +0000 (12:29 +0000)]
Merge WebKit at r72805: Update GraphicsContext method signatures

Note that this is a partial revert of
"Merge Webkit at r73109: graphics method signature changed."

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

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: I7e999ae384bd791c5953f5edcf494a008e6fceea

13 years agoMerge WebKit at r72805: Update EditorClient::getGuessesForWord()
Steve Block [Wed, 5 Jan 2011 12:35:52 +0000 (12:35 +0000)]
Merge WebKit at r72805: Update EditorClient::getGuessesForWord()

This is a revert of
"Merge Webkit at r73109: getGuessForWord method signature change"

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

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: If23862010b9e047f10991de5b428ca1b74b306b0

13 years agoMerge WebKit at r72805: Use Node::parent() rather than Node::parentNode()
Steve Block [Wed, 5 Jan 2011 12:37:24 +0000 (12:37 +0000)]
Merge WebKit at r72805: Use Node::parent() rather than Node::parentNode()

This is a revert of
"Merge WebKit at r73109: use parentNode method."

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

This reverts commit 23aa22bb0c8bf0d91c99d21c5dca4c64a4825a87.

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: I5ba4d0976c3b87b32326fdc8e2eb1cffdd7541cf

13 years agoMerge WebKit at r72805: Fix Makefiles
Steve Block [Wed, 5 Jan 2011 15:22:02 +0000 (15:22 +0000)]
Merge WebKit at r72805: Fix Makefiles

This is a partial revert of
"Merge Webkit at r73109: Fix Makefiles."

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: Iac42b5b4232b71fab322bf99e74e7fb6c7be10c5

13 years agoMerge WebKit at r72805: Initial merge by Git
Steve Block [Wed, 5 Jan 2011 12:15:11 +0000 (12:15 +0000)]
Merge WebKit at r72805: Initial merge by Git

Note that this is a backwards merge from Chromium release 9.0.600.0
to 9.0.597.0, to align with the Chromium 9 stable release branch.

Change-Id: I5d2bb4e8cee9d39ae8485abf48bdb55ecf8b3790

13 years agoTurn off iframe flattening.
Patrick Scott [Thu, 6 Jan 2011 13:27:36 +0000 (08:27 -0500)]
Turn off iframe flattening.

Bug: 3304817
Change-Id: I902ba0ef0915a4546710851e2c50d13d5fd10d0b

13 years agoMerge "refine empty picture test to look for color rects"
Cary Clark [Thu, 6 Jan 2011 13:07:46 +0000 (05:07 -0800)]
Merge "refine empty picture test to look for color rects"

13 years agoKeep track of whether input fields have autocomplete.
Leon Scroggins [Wed, 5 Jan 2011 20:14:34 +0000 (15:14 -0500)]
Keep track of whether input fields have autocomplete.

Bug:3300365

Requires a change in frameworks/base.

Change-Id: Ia466cae0c43b43817651e9d5903e18aae96a814f

13 years agoMerge "clip rect fix for iframe when GL on"
Teng-Hui Zhu [Wed, 5 Jan 2011 17:19:00 +0000 (09:19 -0800)]
Merge "clip rect fix for iframe when GL on"

13 years agorefine empty picture test to look for color rects
Cary Clark [Wed, 5 Jan 2011 15:58:18 +0000 (10:58 -0500)]
refine empty picture test to look for color rects

bug:3296986
Change-Id: I171435f6285f671abc9f2e38ad00ebcabb783cb3

13 years agoMerge "Plugin API to report the onscreen visibility of the plugin."
Derek Sollenberger [Wed, 5 Jan 2011 15:48:25 +0000 (07:48 -0800)]
Merge "Plugin API to report the onscreen visibility of the plugin."

13 years agoPlugin API to report the onscreen visibility of the plugin.
Derek Sollenberger [Wed, 5 Jan 2011 14:40:04 +0000 (09:40 -0500)]
Plugin API to report the onscreen visibility of the plugin.

bug: 3324143
Change-Id: I4ad5837b4d79ee63bf53ce974a634d357130930e

13 years agouse same matrix left when reading picture
Cary Clark [Wed, 5 Jan 2011 14:36:53 +0000 (09:36 -0500)]
use same matrix left when reading picture

In select text, the nav cache picture is read multiple times.

If the matrix is different, it's possible that the text
metrics will be off by one when the text position is near
to but not equal to an integer (e.g., 315.999969). Pinning
the matrix to zero makes the matrices the same in the bug case.

Use the simpler doIRect interface if the glyph rec isn't needed.

Check for contentRender() before dereferencing it.

bug:3315620
Change-Id: I4bfaf9f9b7bf12f66b29f4609d744bceaf5b2964

13 years agostart select all without tapping
Cary Clark [Wed, 29 Dec 2010 19:54:43 +0000 (14:54 -0500)]
start select all without tapping

For the keyboard interface to 'Select All',
establish the select text context by finding some
text on the page and returning its coordinates.

This allows tapping and keyboard interfaces to share
most of the select all implementation.

bug:3270434
Change-Id: Ic080a8002115af9086a669dd366d0399b1082f3c

13 years agoam c9f38c56: (-s ours) am 08fcb454: Cherry-pick WebKit change 60729 to avoid an AppCa...
Steve Block [Wed, 5 Jan 2011 11:50:42 +0000 (03:50 -0800)]
am c9f38c56: (-s ours) am 08fcb454: Cherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT MERGE

* commit 'c9f38c569b3b11991dc69847f941517d0164bff4':
  Cherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT MERGE

13 years agoam 08fcb454: Cherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT...
Steve Block [Wed, 5 Jan 2011 11:48:41 +0000 (03:48 -0800)]
am 08fcb454: Cherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT MERGE

* commit '08fcb454f4c35929b9ab4b984ce1a279a105c585':
  Cherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT MERGE

13 years agoclip rect fix for iframe when GL on
Teng-Hui Zhu [Tue, 4 Jan 2011 23:13:55 +0000 (15:13 -0800)]
clip rect fix for iframe when GL on

First, for each layer, the clip rect should be intersecting with
all of its parents.
Then the rect should use pre-transformation info, the real
transformation will handle by the clip() function.

P.S: renaming variable "bounds" b/c there is a member function
using the same name.

bug:3304761

Change-Id: Id5d602b55da904c63b37cb5436b5bf2f5526a94f

13 years agoMerge "Add full-screen support for OpenGL based plugins."
Derek Sollenberger [Tue, 4 Jan 2011 21:42:33 +0000 (13:42 -0800)]
Merge "Add full-screen support for OpenGL based plugins."

13 years agoMerge "Remove the div element check."
Patrick Scott [Tue, 4 Jan 2011 21:29:57 +0000 (13:29 -0800)]
Merge "Remove the div element check."

13 years agoAdd full-screen support for OpenGL based plugins.
Derek Sollenberger [Tue, 4 Jan 2011 20:57:57 +0000 (15:57 -0500)]
Add full-screen support for OpenGL based plugins.

bug: 3321891
Change-Id: Ife1bbeed91b3285277bfe47c71f523d477891b98

13 years agoRemove the div element check.
Patrick Scott [Tue, 4 Jan 2011 20:58:53 +0000 (15:58 -0500)]
Remove the div element check.

This allows other elements to specify overflow.

Bug: 3310376
Change-Id: I039b07aebeefa9184b56950972222ffea1ed09c7

13 years agoMerge "Update JSDOMWindowBase to reflect recent upstreaming"
Steve Block [Tue, 4 Jan 2011 19:51:48 +0000 (11:51 -0800)]
Merge "Update JSDOMWindowBase to reflect recent upstreaming"

13 years agoFix mlb shopping site not drawing correctly.
Patrick Scott [Tue, 4 Jan 2011 15:20:10 +0000 (10:20 -0500)]
Fix mlb shopping site not drawing correctly.

Return false in hasOverflowScroll if flattening is on.

Bug: 3309139
Change-Id: Ia4c981fab26154a38e66412d7e2938da32e7d718

13 years agoUpdate JSDOMWindowBase to reflect recent upstreaming
Steve Block [Fri, 31 Dec 2010 13:19:41 +0000 (13:19 +0000)]
Update JSDOMWindowBase to reflect recent upstreaming

An Android-specific modification was upstreamed in
http://trac.webkit.org/changeset/74806

Bug: 3305994
Change-Id: Ie43475aa611259d2d2de39397e167e42b24434f3

13 years agoMerge "A WAR to get content showing up when GL enabled"
Teng-Hui Zhu [Wed, 29 Dec 2010 17:53:03 +0000 (09:53 -0800)]
Merge "A WAR to get content showing up when GL enabled"

13 years agoA WAR to get content showing up when GL enabled
Teng-Hui Zhu [Tue, 28 Dec 2010 23:27:13 +0000 (15:27 -0800)]
A WAR to get content showing up when GL enabled

The emptiness check is not optimal for GL rendering yet.
That cause some content are not showing up when GL enabled.

A WAR is to just update the textures and use them without
emptiness check.

bug: 3296986
Change-Id: I5087dbc34b744ffbe24f4a4a6616f4d5715e1f11

13 years agojoin rects without gaps
Cary Clark [Tue, 28 Dec 2010 14:23:04 +0000 (09:23 -0500)]
join rects without gaps

While analyzing cursor rings, regions are built from text,
rects, and bitmaps to determine the areas inside and outside
the rings. These areas determine if the rings are fully visible,
and if they can be expanded into a larger bounds.

Empty input areas are defined only by rects drawn as their
background. In general, rects may be drawn as pieces that need
to be stitched together. Unlike glyphs, the stitching should
not allow gaps between rects.

By detecting gaps, and treating each unjoined rect as its own
area, a page with multiple successive input fields correctly
computes cursor rect bounds.

bug:3116242
Change-Id: If702b692c99c96c0188b42a638f750da12af6df4

13 years agoMerge "use text slop for ring test"
Cary Clark [Thu, 23 Dec 2010 20:04:20 +0000 (12:04 -0800)]
Merge "use text slop for ring test"

13 years agouse text slop for ring test
Cary Clark [Thu, 23 Dec 2010 19:47:34 +0000 (14:47 -0500)]
use text slop for ring test

The mTextSlop contains the cursor ring test area.
The mTestBounds contains the total test area.

Use the former when checking to see if text is
drawn outside of the cursor rings, but inside
the bounds.

bug:3307120
Change-Id: Ice69ce3d70aabb435890a0fd8848ef3fe2de9796

13 years agoMerge WebKit at r73109: put correct ordering at Makefile.
Shimeng (Simon) Wang [Thu, 23 Dec 2010 18:58:40 +0000 (10:58 -0800)]
Merge WebKit at r73109: put correct ordering at Makefile.

Change-Id: I8953ea3eb6e78548c50953495cf688feaf9a8385

13 years agoCherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT MERGE
Steve Block [Thu, 23 Dec 2010 17:35:15 +0000 (17:35 +0000)]
Cherry-pick WebKit change 60729 to avoid an AppCache crash - DO NOT MERGE

This was observed when the AppCache database path was not set and hence
opening the database failed.

This change has already been pulled into master as part of the regular WebKit
merge process, so do not merge.

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

Bug: 3305684
Change-Id: I5707839a9b0f886a24604f890ca4d575e311edbe

13 years agoMerge Webkit at r73109: render frame docWidth/docHeight method changed.
Shimeng (Simon) Wang [Thu, 9 Dec 2010 02:50:49 +0000 (18:50 -0800)]
Merge Webkit at r73109: render frame docWidth/docHeight method changed.

Change-Id: I492d321eea76f2d2c5278e44ae9c2fe37b5834a6
See:
http://trac.webkit.org/changeset/72852
http://trac.webkit.org/changeset/73063

13 years agoMerge Webkit at r73109: Fix Makefiles.
Shimeng (Simon) Wang [Thu, 9 Dec 2010 01:48:05 +0000 (17:48 -0800)]
Merge Webkit at r73109: Fix Makefiles.

Change-Id: If8cc4cfc06399c67b08cf5157852de90876c3d55

13 years agoMerge Webkit at r73109: Fix conflicts
Shimeng (Simon) Wang [Wed, 8 Dec 2010 19:32:25 +0000 (11:32 -0800)]
Merge Webkit at r73109: Fix conflicts

1. WebCore/Android.jscbindings.mk
http://trac.webkit.org/changeset/72590
http://trac.webkit.org/changeset/72344

2. WebCore/WebCore.vcproj/WebCore.vcproj
too many changes between 72274 and 73109
http://trac.webkit.org/log/trunk/WebCore/WebCore.vcproj/WebCore.vcproj
also due to Android change.
https://android-git.corp.google.com/g/#change,37374

3. WebCore/platform/android/PlatformBridge.h
http://trac.webkit.org/changeset/72631

4. WebCore/rendering/RenderSVGResourceSolidColor.cpp
http://trac.webkit.org/changeset/72926
our code is not upstreamed

5. WebCore/rendering/RenderView.h
http://trac.webkit.org/changeset/72852
http://trac.webkit.org/changeset/73063

Change-Id: Id7a1dbdfef6327b4fe08c9884122bf9decd039ca

13 years agoMerge WebKit at r73109: return true to support rich source info.
Shimeng (Simon) Wang [Wed, 22 Dec 2010 18:07:38 +0000 (10:07 -0800)]
Merge WebKit at r73109: return true to support rich source info.

This is because:
http://trac.webkit.org/changeset/72360
which disables line info except in case of enabling JS debugger or inpspector.

This is a quick fix.  Long term solution is to get this fixed upstream.

Change-Id: Ibc5dd89719628848ab4710fcc7c06453b60cc119

13 years agoMerge WebKit at r73109: Fix V8 JNI binding.
Shimeng (Simon) Wang [Thu, 16 Dec 2010 21:47:51 +0000 (13:47 -0800)]
Merge WebKit at r73109: Fix V8 JNI binding.

cherry pick the change for webkit bug:
https://bugs.webkit.org/show_bug.cgi?id=51156

And fix array bindings.

Change-Id: I64b89fadd10ac87fa998a79b2af4aa9db07a8318

13 years agoMerge WebKit at r73109: Update WebKit revision number.
Shimeng (Simon) Wang [Thu, 9 Dec 2010 22:48:17 +0000 (14:48 -0800)]
Merge WebKit at r73109: Update WebKit revision number.

Change-Id: I1748e24000110d5c667f729c25131d5e624de41f

13 years agoMerge Webkit at r73109: graphics method signature changed.
Shimeng (Simon) Wang [Thu, 9 Dec 2010 19:43:06 +0000 (11:43 -0800)]
Merge Webkit at r73109: graphics method signature changed.

this is because:
http://trac.webkit.org/changeset/72926
http://trac.webkit.org/changeset/72528

Change-Id: I511eef7fece8e97ed4a199ca7b6f388124921b79

13 years agoMerge Webkit at r73109: add new method.
Shimeng (Simon) Wang [Thu, 9 Dec 2010 02:11:01 +0000 (18:11 -0800)]
Merge Webkit at r73109: add new method.

This is because:
http://trac.webkit.org/changeset/72631

This is to merge the following change into Android:
https://android-git.corp.google.com/g/#change,81198

Change-Id: Ifc7ca98388ca88828669371df501b616f8021e80

13 years agoMerge Webkit at r73109: getGuessForWord method signature change
Shimeng (Simon) Wang [Thu, 9 Dec 2010 02:06:15 +0000 (18:06 -0800)]
Merge Webkit at r73109: getGuessForWord method signature change

This is because:
http://trac.webkit.org/changeset/73088

Change-Id: I4051bc71c638e74ede803b216d9035311cbaf198

13 years agoMerge WebKit at r73109: use parentNode method.
Shimeng (Simon) Wang [Thu, 9 Dec 2010 02:03:15 +0000 (18:03 -0800)]
Merge WebKit at r73109: use parentNode method.

This is because of:
http://trac.webkit.org/changeset/72825/trunk/WebCore/dom/Node.h
which makes the parent method private.

Change-Id: I706c4cbc4e69bee990f9e138aeb7ad2ed2a3d42f

13 years agoMerge WebKit at r73109: Initial merge by git.
Shimeng (Simon) Wang [Wed, 8 Dec 2010 01:22:45 +0000 (17:22 -0800)]
Merge WebKit at r73109: Initial merge by git.

Change-Id: I61f1a66d9642e3d8405d3ac6ccab2a53421c75d8

13 years agoam 1e5798a4: am d436a8e4: Allow HTML5 video to seek.
Ben Murdoch [Wed, 22 Dec 2010 21:59:17 +0000 (13:59 -0800)]
am 1e5798a4: am d436a8e4: Allow HTML5 video to seek.

* commit '1e5798a41696c2d04b2a28eabf9e5914fb6856e2':
  Allow HTML5 video to seek.

13 years agoam d436a8e4: Allow HTML5 video to seek.
Ben Murdoch [Wed, 22 Dec 2010 21:56:43 +0000 (13:56 -0800)]
am d436a8e4: Allow HTML5 video to seek.

* commit 'd436a8e4bf9a2c6eab6a09513ce13340c84ef10c':
  Allow HTML5 video to seek.

13 years agoAllow HTML5 video to seek.
Ben Murdoch [Wed, 22 Dec 2010 18:45:20 +0000 (18:45 +0000)]
Allow HTML5 video to seek.

Need to return the duration of the currently playing video to WebCore
to allow the video to seek correctly.

Bug: 3303699
Change-Id: I79f6a7e7217cf987d35b5b1a9313a918630be7a0

13 years agouse copies of matrix, paint instead of references
Cary Clark [Mon, 20 Dec 2010 17:33:36 +0000 (12:33 -0500)]
use copies of matrix, paint instead of references

The matrix and paint may be gone when later referenced
to determine the width of spaces. Replace the references
with copies.

When widening the initial selection to a word, the first
or last glyph could be skipped if the tap was one
glyph away. Detect this include the final glyph.

The bitmap used to detect a space between glyphs could
be too small for the test; make it as large as possible.

The test for finding the closest glyph when the test point
is inside the glyph's bounds should be triggered only
if the best glyph found so far is also a match.

If the initial hit point doesn't touch a word, abort.

Only measure the distance for test points if the test
text and best text have the same column state or if
the test point is outside of the current column.

The initial word selection needs to work differently from
extending the selection. Make the clip small for the
initial detect and widen it for the word expansion.

Build the selection region before expanding the word
since the column selection uses that data.

There is a companion bug fix in frameworks/base triggered
by this code, but neither is dependent on the other.

bug:3293330
Change-Id: If9d1a3bd7ec5d1642b63dbab1845d2f3735ddc81

13 years agoRemoving the host resolver leak
Kristian Monsen [Wed, 22 Dec 2010 12:09:14 +0000 (12:09 +0000)]
Removing the host resolver leak

The crash was fixed when some unsafe local changes were removed recently.

I think this was what removed the crash:
https://android-git.corp.google.com/g/#change,84795

Fix for bug 3243797

Change-Id: If23e55270f035831ef7781681b012dfdca0ac74d

13 years agoMerge "Adding a method to delete a WebCache"
Kristian Monsen [Wed, 22 Dec 2010 11:35:41 +0000 (03:35 -0800)]
Merge "Adding a method to delete a WebCache"

13 years agoAdding a method to delete a WebCache
Kristian Monsen [Tue, 21 Dec 2010 16:31:19 +0000 (16:31 +0000)]
Adding a method to delete a WebCache

This is needed so the cache doesn't survive when closing
all private tabs.

Change-Id: I52ffaf89f8794466f98370c289b9a646de0fdb59

13 years agoTurn iframe flattening back on
Bart Sears [Tue, 21 Dec 2010 21:52:48 +0000 (13:52 -0800)]
Turn iframe flattening back on

Until we can figure out why web gmail is having problems turn
iframe flattening back on.

Bug: 3294278
Change-Id: I7096be2a2178c6b56b5450defb405a265fc2b477

13 years agoOverride ALWAYS_INLINE attribute with inline.
Jing Yu [Wed, 15 Dec 2010 22:28:35 +0000 (14:28 -0800)]
Override ALWAYS_INLINE attribute with inline.

ALWAYS_INLINE attribute was abused in libwebcore.so. By overriding
it with normal inline attribute, the size of libwebcore.so is
reduced by 3.71%, wihtout noticable performance regression on
webcore_test benchmark.

Change-Id: Icc1710726f28a93c3be660ba7c22c8c356748460

13 years agoTurn off flattening again now that scrolling is
Patrick Scott [Tue, 21 Dec 2010 16:50:36 +0000 (11:50 -0500)]
Turn off flattening again now that scrolling is
fixed.

Change-Id: I2cdedf37cc7cff7b0cfe96dd65803902ca7e92c6

13 years agoFix iframe scrolling.
Patrick Scott [Tue, 21 Dec 2010 15:36:17 +0000 (10:36 -0500)]
Fix iframe scrolling.

Do the same check everywhere for enabling scrolling in an iframe.  Make sure the
owner renderer is a RenderIFrame to avoid trying to composite an embedded
object.  Also check if the owner layer has visible content since some iframes
are marked hidden.

Dirty the parent normal flow list when turning on overflow scrolling for divs.

Bug: 3280851
Bug: 3290276
Change-Id: I8d0a49324e06426c15abaf552874a32d6e2ee11a

13 years agoMerge "Set 660 permissions on Appcache database"
Steve Block [Tue, 21 Dec 2010 14:50:21 +0000 (06:50 -0800)]
Merge "Set 660 permissions on Appcache database"

13 years agoMerge "Revert "Revert "Merge "Add a method java can send proxy changes to""""
Kristian Monsen [Tue, 21 Dec 2010 14:45:30 +0000 (06:45 -0800)]
Merge "Revert "Revert "Merge "Add a method java can send proxy changes to""""

13 years agoSet 660 permissions on Appcache database
Steve Block [Tue, 21 Dec 2010 14:18:10 +0000 (14:18 +0000)]
Set 660 permissions on Appcache database

Bug: 3244281
Change-Id: I5c90f44c4e8c3cd7d1ae2652e5d9f864a69b5dfe

13 years agoMerge "Set 660 permissions on HTML5 Database API meta database"
Steve Block [Tue, 21 Dec 2010 14:17:49 +0000 (06:17 -0800)]
Merge "Set 660 permissions on HTML5 Database API meta database"

13 years agoSet 660 permissions on HTML5 Database API meta database
Steve Block [Tue, 21 Dec 2010 11:55:38 +0000 (11:55 +0000)]
Set 660 permissions on HTML5 Database API meta database

Bug: 3244281
Change-Id: I7af7c47c92fc180435cff2416922916a1114c88f

13 years agoRevert "Revert "Merge "Add a method java can send proxy changes to"""
Kristian Monsen [Tue, 21 Dec 2010 12:28:10 +0000 (12:28 +0000)]
Revert "Revert "Merge "Add a method java can send proxy changes to"""

This reverts commit 9c4386e62deef6236674a2b2073a1efd514d75ac.

13 years agoMerge "Only download the same poster URL once."
Ben Murdoch [Tue, 21 Dec 2010 10:25:16 +0000 (02:25 -0800)]
Merge "Only download the same poster URL once."

13 years agoMerge "Revert "Merge "Add a method java can send proxy changes to"""
Huahui Wu [Mon, 20 Dec 2010 23:02:48 +0000 (15:02 -0800)]
Merge "Revert "Merge "Add a method java can send proxy changes to"""

13 years agoRevert "Merge "Add a method java can send proxy changes to""
Huahui Wu [Mon, 20 Dec 2010 22:41:06 +0000 (14:41 -0800)]
Revert "Merge "Add a method java can send proxy changes to""

This reverts commit c3a805c84165787f1693b3502ce139d6ea405307, reversing
changes made to 062390c915ca7282c88b435ad4fa7b6f157fb5ef.

13 years agoAdd clipping support
Nicolas Roard [Sat, 18 Dec 2010 01:55:42 +0000 (17:55 -0800)]
Add clipping support

Change-Id: If26bb40c4f75caa0fc9146aecb9f06dd1bcecd44

13 years agoMerge "Prevent media layers from allocating textures."
Derek Sollenberger [Mon, 20 Dec 2010 19:55:52 +0000 (11:55 -0800)]
Merge "Prevent media layers from allocating textures."

13 years agoFix image drawing
Nicolas Roard [Sat, 18 Dec 2010 03:36:55 +0000 (19:36 -0800)]
Fix image drawing

Change-Id: I6dacf397f510948b4ecc3c180d2f61050dec00a2

13 years agoMerge "Add a method java can send proxy changes to"
Kristian Monsen [Mon, 20 Dec 2010 18:14:45 +0000 (10:14 -0800)]
Merge "Add a method java can send proxy changes to"