OSDN Git Service

android-x86/external-webkit.git
13 years agoam 48a84519: (-s ours) am 31cf3287: Do not merge: Cherry-pick CL to help flash plugin...
Nicolas Roard [Fri, 25 Feb 2011 00:34:26 +0000 (16:34 -0800)]
am 48a84519: (-s ours) am 31cf3287: Do not merge: Cherry-pick CL to help flash plugin performance

* commit '48a84519fe5415339de288d11f43a71fb3ca6c28':
  Do not merge: Cherry-pick CL to help flash plugin performance

13 years agoam 31cf3287: Do not merge: Cherry-pick CL to help flash plugin performance
Nicolas Roard [Fri, 25 Feb 2011 00:32:11 +0000 (16:32 -0800)]
am 31cf3287: Do not merge: Cherry-pick CL to help flash plugin performance

* commit '31cf3287137bf5e5c4c120c731ba886e2be1eb24':
  Do not merge: Cherry-pick CL to help flash plugin performance

13 years agoDo not merge: Cherry-pick CL to help flash plugin performance
Nicolas Roard [Fri, 25 Feb 2011 00:14:33 +0000 (16:14 -0800)]
Do not merge: Cherry-pick CL to help flash plugin performance

Add a glFinish() at the end of drawGL(), to help
the GPU and the flash plugin...

bug:3471680
Change-Id: I309e0ba13f0b51b08b762de39b47b2b409faeacc

13 years agoMerge "Add a glFinish() at the end of drawGL(), to help the GPU and the flash plugin..."
Nicolas Roard [Fri, 25 Feb 2011 00:19:01 +0000 (16:19 -0800)]
Merge "Add a glFinish() at the end of drawGL(), to help the GPU and the flash plugin..."

13 years agoAdd a glFinish() at the end of drawGL(), to help
Nicolas Roard [Fri, 25 Feb 2011 00:14:33 +0000 (16:14 -0800)]
Add a glFinish() at the end of drawGL(), to help
the GPU and the flash plugin...

bug:3471680
Change-Id: I436de6caea4dd5b1171f260d328dfe8170463832

13 years agoam 04cd60b1: (-s ours) am 13427c01: Do not merge: cherry-pick incorect clip CL from...
Derek Sollenberger [Thu, 24 Feb 2011 23:56:55 +0000 (15:56 -0800)]
am 04cd60b1: (-s ours) am 13427c01: Do not merge: cherry-pick incorect clip CL from master

* commit '04cd60b14091f375070bd41ec748ece31777b00b':
  Do not merge: cherry-pick incorect clip CL from master

13 years agoam 13427c01: Do not merge: cherry-pick incorect clip CL from master
Derek Sollenberger [Thu, 24 Feb 2011 23:54:46 +0000 (15:54 -0800)]
am 13427c01: Do not merge: cherry-pick incorect clip CL from master

* commit '13427c01ee4c0f85b8baabb2294fb527013acfc2':
  Do not merge: cherry-pick incorect clip CL from master

13 years agoDo not merge: cherry-pick incorect clip CL from master
Derek Sollenberger [Thu, 24 Feb 2011 21:17:51 +0000 (16:17 -0500)]
Do not merge: cherry-pick incorect clip CL from master

Fix problem where plugins were not drawn due to an incorrect clip.

bug: 3451982
Change-Id: I9eaaa218afa1a386dcb89d1d7845f80b0b180959

13 years agoMerge "Fix problem where plugins were not drawn due to an incorrect clip."
Bart Sears [Thu, 24 Feb 2011 23:15:01 +0000 (15:15 -0800)]
Merge "Fix problem where plugins were not drawn due to an incorrect clip."

13 years agoMerge "revert "Enable layers for fixed elements only for mobile websites""
Teng-Hui Zhu [Thu, 24 Feb 2011 22:40:41 +0000 (14:40 -0800)]
Merge "revert "Enable layers for fixed elements only for mobile websites""

13 years agoMerge "Update fixed layer at sync time."
Teng-Hui Zhu [Thu, 24 Feb 2011 22:31:27 +0000 (14:31 -0800)]
Merge "Update fixed layer at sync time."

13 years agorevert "Enable layers for fixed elements only for mobile websites"
Teng-Hui Zhu [Thu, 24 Feb 2011 01:10:23 +0000 (17:10 -0800)]
revert "Enable layers for fixed elements only for mobile websites"

revert #change,93656
Now we will use layer for fixed element in desktop site, too.

Change-Id: I0a86d46f86fa75b704286aa613e967108851b990

13 years agoUpdate fixed layer at sync time.
Teng-Hui Zhu [Thu, 24 Feb 2011 21:40:37 +0000 (13:40 -0800)]
Update fixed layer at sync time.

For the example of google news, one of the fixed position layer is under
another fixed layer, and it is not updated for scrolling.
The CSS value did change, but we don't have a updated fixed position call.
Moving the update to sync time fix this issue.

bug:3486524

Change-Id: Iecb65b37d06e65902511e569238546b49b1dcd47

13 years agoFix problem where plugins were not drawn due to an incorrect clip.
Derek Sollenberger [Thu, 24 Feb 2011 21:17:51 +0000 (16:17 -0500)]
Fix problem where plugins were not drawn due to an incorrect clip.

bug: 3451982
Change-Id: If1d7bff729f72c28fec4905c3525b2f2ac1c6475

13 years agoMerge "Only show video texture when frames are available."
Derek Sollenberger [Thu, 24 Feb 2011 21:12:02 +0000 (13:12 -0800)]
Merge "Only show video texture when frames are available."

13 years agoMerge "bias towards space in select text"
Cary Clark [Thu, 24 Feb 2011 19:42:44 +0000 (11:42 -0800)]
Merge "bias towards space in select text"

13 years agoOnly show video texture when frames are available.
Derek Sollenberger [Thu, 24 Feb 2011 18:47:46 +0000 (13:47 -0500)]
Only show video texture when frames are available.

bug: 3460361
Change-Id: Ifcf97b4360e0a86cfcc100e6287e1fbce8d2185a

13 years agoStop the blinking caret when moving to another field.
Leon Scroggins [Thu, 24 Feb 2011 17:34:42 +0000 (12:34 -0500)]
Stop the blinking caret when moving to another field.

Bug:2930013

Requires a change in frameworks/base.

Change-Id: I892fcdd9b9a0abdcf82e5bb26c930b68ae8b10fa

13 years agoFixed element in iframe support
Teng-Hui Zhu [Thu, 24 Feb 2011 01:17:20 +0000 (17:17 -0800)]
Fixed element in iframe support

We first identify the iframe for each LayerAndroid.
Then when traverse to update the fixed elements, we use the parent iframe
info to update the fixed position.

Change-Id: I13e0333fc6453414cea2343a787c41d525f6e3d2

13 years agobias towards space in select text
Cary Clark [Thu, 24 Feb 2011 17:20:18 +0000 (12:20 -0500)]
bias towards space in select text

When computing the presence or absence of a space,
it's usually the case that the absense of a space case
has no error. The presence of a space may have more
error, since the size of the space may be adjusted by
the page.

When the two computed errors are equal, bias towards
the space case. This fixes text selection on Google News.

bug:3470564
Change-Id: I1feadd945e9faaf970bca0702a7cf79429592784

13 years agoMerge "Skia Merge (revision 808)"
Derek Sollenberger [Thu, 24 Feb 2011 13:27:46 +0000 (05:27 -0800)]
Merge "Skia Merge (revision 808)"

13 years agoMerge "Copy constructor for AutoJObject must increase the ref count on the underlying...
Steve Block [Thu, 24 Feb 2011 12:54:25 +0000 (04:54 -0800)]
Merge "Copy constructor for AutoJObject must increase the ref count on the underlying object"

13 years agoCopy constructor for AutoJObject must increase the ref count on the underlying object
Steve Block [Wed, 23 Feb 2011 13:49:10 +0000 (13:49 +0000)]
Copy constructor for AutoJObject must increase the ref count on the underlying object

This is needed to balance the derefs in any temporary instance's d'tor.
See https://chromereview.prom.corp.google.com/2013001

Change-Id: I8329f475ecbd1bc8669d0e8d368f1a385d891fb3

13 years agoSkia Merge (revision 808)
Derek Sollenberger [Tue, 22 Feb 2011 19:00:57 +0000 (14:00 -0500)]
Skia Merge (revision 808)

This is a companion CL to the one found in /external/skia

Change-Id: I469b8845a88f24d972fd57ee5c9cab505a5b83aa

13 years agoMerge "Scroll the RenderLayer during touch events."
Patrick Scott [Tue, 22 Feb 2011 19:06:12 +0000 (11:06 -0800)]
Merge "Scroll the RenderLayer during touch events."

13 years agoMerge "fix select text space detection"
Cary Clark [Tue, 22 Feb 2011 18:01:47 +0000 (10:01 -0800)]
Merge "fix select text space detection"

13 years agofix select text space detection
Cary Clark [Tue, 22 Feb 2011 17:31:24 +0000 (12:31 -0500)]
fix select text space detection

Some helpers like isSpace() are used in two contexts: while the
picture is parsed, and after the best answer in the picture has
been found. The proper paint must be used in each case.

Associate paints with candidate and best glyphs, so that the
appropriate paint can be used as needed.

bug:3470564
Change-Id: I28bcc82dbe727ee3ef0716e7657e61a982467a40

13 years agoScroll the RenderLayer during touch events.
Patrick Scott [Tue, 22 Feb 2011 16:20:56 +0000 (11:20 -0500)]
Scroll the RenderLayer during touch events.

Keep track of the owning layer for each LayerAndroid. No longer need to unadjust
the node bounds since the node will be scrolled into view.

Bug: 3442108
Change-Id: I7c9604d347af326ccfb86e6d3f2b95b7ce1b97c1

13 years agoMerge "Fix for bug 3424689 Corrupt (truncated) downloads for apk from browser"
Kristian Monsen [Mon, 21 Feb 2011 15:22:52 +0000 (07:22 -0800)]
Merge "Fix for bug 3424689 Corrupt (truncated) downloads for apk from browser"

13 years agoMerge "Fix a leaked JNI LocaRef in WebViewCore::jsPrompt()"
Steve Block [Mon, 21 Feb 2011 13:10:33 +0000 (05:10 -0800)]
Merge "Fix a leaked JNI LocaRef in WebViewCore::jsPrompt()"

13 years agoFix a leaked JNI LocaRef in WebViewCore::jsPrompt()
Steve Block [Mon, 21 Feb 2011 11:12:10 +0000 (11:12 +0000)]
Fix a leaked JNI LocaRef in WebViewCore::jsPrompt()

Bug: 3470906
Change-Id: I8fb9ddcf4ff3dee35c2225a18a86b4015002da96

13 years agoam d3b2919d: (-s ours) am 634f229e: Do not merge: Cherry-pick Fix ANR in the browser...
Nicolas Roard [Sat, 19 Feb 2011 15:39:19 +0000 (07:39 -0800)]
am d3b2919d: (-s ours) am 634f229e: Do not merge: Cherry-pick Fix ANR in the browser from master

* commit 'd3b2919d307e4b0ea98b7b5c67991c853c99b562':
  Do not merge: Cherry-pick Fix ANR in the browser from master

13 years agoam 634f229e: Do not merge: Cherry-pick Fix ANR in the browser from master
Nicolas Roard [Sat, 19 Feb 2011 15:35:45 +0000 (07:35 -0800)]
am 634f229e: Do not merge: Cherry-pick Fix ANR in the browser from master

* commit '634f229e4f0075b052e110ba0a89554c46f6c510':
  Do not merge: Cherry-pick Fix ANR in the browser from master

13 years agoDo not merge: Cherry-pick Fix ANR in the browser from master
Nicolas Roard [Sat, 19 Feb 2011 09:22:16 +0000 (01:22 -0800)]
Do not merge: Cherry-pick Fix ANR in the browser from master

Sometimes we were not releasing textures as they were busy; they could
still be deleted when swapping the layers trees, and as they were
also still present in the LayerTexture Hashmap this was causing an ANR
(at best -- the texture was already deallocated, the LayerTexture dtor
was then trying to release() them...)

bug:3398660
Change-Id: I3b08af94a6a7041d45d373ebaec0ec4ba59dac82

13 years agoam d3f53495: (-s ours) am 928bc355: Merge "Do not merge: Cherry-pick 2nd part of...
Nicolas Roard [Sat, 19 Feb 2011 09:20:06 +0000 (01:20 -0800)]
am d3f53495: (-s ours) am 928bc355: Merge "Do not merge:  Cherry-pick 2nd part of GL_BLEND CL from master" into honeycomb

* commit 'd3f534955e1e80e5a9192c84db518f8f0eff5b00':
  Do not merge:  Cherry-pick 2nd part of GL_BLEND CL from master

13 years agoam 928bc355: Merge "Do not merge: Cherry-pick 2nd part of GL_BLEND CL from master...
Nicolas Roard [Sat, 19 Feb 2011 09:16:48 +0000 (01:16 -0800)]
am 928bc355: Merge "Do not merge:  Cherry-pick 2nd part of GL_BLEND CL from master" into honeycomb

* commit '928bc35505a3fa29f1598842d49124c06703f972':
  Do not merge:  Cherry-pick 2nd part of GL_BLEND CL from master

13 years agoMerge "Do not merge: Cherry-pick 2nd part of GL_BLEND CL from master" into honeycomb
Nicolas Roard [Sat, 19 Feb 2011 09:13:56 +0000 (01:13 -0800)]
Merge "Do not merge:  Cherry-pick 2nd part of GL_BLEND CL from master" into honeycomb

13 years agoam ffef3d3a: (-s ours) am 6f7a546a: Do not merge: Cherry-pick Flash performance CL...
Nicolas Roard [Sat, 19 Feb 2011 05:09:18 +0000 (21:09 -0800)]
am ffef3d3a: (-s ours) am 6f7a546a: Do not merge: Cherry-pick Flash performance CL from Master

* commit 'ffef3d3a1baae44ba44696024ddc12f92337d518':
  Do not merge: Cherry-pick Flash performance CL from Master

13 years agoam b1c4dba8: (-s ours) am b1f94474: Do Not Merge: Cherry-pick GL_BLEND CL from master
Derek Sollenberger [Sat, 19 Feb 2011 05:09:16 +0000 (21:09 -0800)]
am b1c4dba8: (-s ours) am b1f94474: Do Not Merge: Cherry-pick GL_BLEND CL from master

* commit 'b1c4dba88c350dca089fc918e923d77052df750c':
  Do Not Merge: Cherry-pick GL_BLEND CL from master

13 years agoam 6e36bd5d: (-s ours) am dc8ac1db: DO NOT MERGE Fix GL_BLEND problem. glBindAttribLo...
Nicolas Roard [Sat, 19 Feb 2011 05:09:14 +0000 (21:09 -0800)]
am 6e36bd5d: (-s ours) am dc8ac1db: DO NOT MERGE Fix GL_BLEND problem. glBindAttribLocation() will only work after a shader has been linked; This was working previously due to the way the nvidia driver work when using blending (it generates another shader).

* commit '6e36bd5dadbf7af2b01b92ebb38e23a22b9718d1':
  DO NOT MERGE Fix GL_BLEND problem. glBindAttribLocation() will only work after a shader has been linked; This was working previously due to the way the nvidia driver work when using blending (it generates another shader).

13 years agoam dd17d165: (-s ours) am bdbce22a: DO NOT MERGE Clip layers if the texture size...
Nicolas Roard [Sat, 19 Feb 2011 05:09:11 +0000 (21:09 -0800)]
am dd17d165: (-s ours) am bdbce22a: DO NOT MERGE Clip layers if the texture size is too large for the GPU

* commit 'dd17d165c8aefdc123104908cef4cb5f742f2296':
  DO NOT MERGE Clip layers if the texture size is too large for the GPU

13 years agoam 6c92fe34: am 227fffee: Fix potential bug in setMaxTextureCount and limit the numbe...
Nicolas Roard [Sat, 19 Feb 2011 05:09:07 +0000 (21:09 -0800)]
am 6c92fe34: am 227fffee: Fix potential bug in setMaxTextureCount and limit the number of textures to 154

* commit '6c92fe3486d362d49c3d2a0399611797d35173d1':
  Fix potential bug in setMaxTextureCount and limit the number of textures to 154

13 years agoam e69a5d5d: (-s ours) am 704eaca6: Set correct max texture allocations.
Shimeng (Simon) Wang [Sat, 19 Feb 2011 05:09:03 +0000 (21:09 -0800)]
am e69a5d5d: (-s ours) am 704eaca6: Set correct max texture allocations.

* commit 'e69a5d5da77aef92f09588057db3ec1f5be5c71b':
  Set correct max texture allocations.

13 years agoam 6f7a546a: Do not merge: Cherry-pick Flash performance CL from Master
Nicolas Roard [Sat, 19 Feb 2011 03:58:00 +0000 (19:58 -0800)]
am 6f7a546a: Do not merge: Cherry-pick Flash performance CL from Master

* commit '6f7a546a8676227fcd810149bce26090ab1e49eb':
  Do not merge: Cherry-pick Flash performance CL from Master

13 years agoDo not merge: Cherry-pick Flash performance CL from Master
Nicolas Roard [Fri, 18 Feb 2011 23:54:32 +0000 (15:54 -0800)]
Do not merge: Cherry-pick Flash performance CL from Master

Bug: 3471589

Fix some of the performance issues when using the flash plugin embedded.

What happened was that MediaLayer was always telling us to repaint the
screen; we could repaint the same frame a dozen of times unecessarily.
This in itself was wasteful but should have been ok, but the stream
of commands plus the compositing caused the GPU commands used by flash
to stall until they were executed...
The compounded impact drasticaly lowered the performances.

This is not a full fix as those conditions (us repainting the screen
a lot) happens anyway when zooming or scrolling; but this should improve
performances in the general case.

Change-Id: I79a75c759fd5968cb822616eba0caa8c77e75835

13 years agoam b1f94474: Do Not Merge: Cherry-pick GL_BLEND CL from master
Derek Sollenberger [Sat, 19 Feb 2011 03:48:34 +0000 (19:48 -0800)]
am b1f94474: Do Not Merge: Cherry-pick GL_BLEND CL from master

* commit 'b1f94474f57c247527261dbb10de63b7a4285d60':
  Do Not Merge: Cherry-pick GL_BLEND CL from master

13 years agoam dc8ac1db: DO NOT MERGE Fix GL_BLEND problem. glBindAttribLocation() will only...
Nicolas Roard [Sat, 19 Feb 2011 03:48:30 +0000 (19:48 -0800)]
am dc8ac1db: DO NOT MERGE Fix GL_BLEND problem. glBindAttribLocation() will only work after a shader has been linked; This was working previously due to the way the nvidia driver work when using blending (it generates another shader).

* commit 'dc8ac1db6f8a14dbac0eb104ecfc18292f6e9a03':
  DO NOT MERGE Fix GL_BLEND problem. glBindAttribLocation() will only work after a shader has been linked; This was working previously due to the way the nvidia driver work when using blending (it generates another shader).

13 years agoam bdbce22a: DO NOT MERGE Clip layers if the texture size is too large for the GPU
Nicolas Roard [Sat, 19 Feb 2011 03:48:25 +0000 (19:48 -0800)]
am bdbce22a: DO NOT MERGE Clip layers if the texture size is too large for the GPU

* commit 'bdbce22a3ad0e8abea6b824e7ec9fd5ae3ea9637':
  DO NOT MERGE Clip layers if the texture size is too large for the GPU

13 years agoam 227fffee: Fix potential bug in setMaxTextureCount and limit the number of textures...
Nicolas Roard [Sat, 19 Feb 2011 03:48:20 +0000 (19:48 -0800)]
am 227fffee: Fix potential bug in setMaxTextureCount and limit the number of textures to 154

* commit '227fffee9ee9b07919a140866fda1ee7445d3f5a':
  Fix potential bug in setMaxTextureCount and limit the number of textures to 154

13 years agoam 704eaca6: Set correct max texture allocations.
Shimeng (Simon) Wang [Sat, 19 Feb 2011 03:48:16 +0000 (19:48 -0800)]
am 704eaca6: Set correct max texture allocations.

* commit '704eaca6f77288587c438291bc15a967515eaa8e':
  Set correct max texture allocations.

13 years agoDo not merge: Cherry-pick 2nd part of GL_BLEND CL from master
Derek Sollenberger [Fri, 18 Feb 2011 19:04:07 +0000 (14:04 -0500)]
Do not merge:  Cherry-pick 2nd part of GL_BLEND CL from master

Ensure non-ready tiles are painted with the page background color.

bug: 3465059
bug: 3471680
Change-Id: Id0cc94f181882d1308471c9bd898fe005101d6f8

13 years agoDo Not Merge: Cherry-pick GL_BLEND CL from master
Derek Sollenberger [Mon, 14 Feb 2011 16:26:30 +0000 (11:26 -0500)]
Do Not Merge: Cherry-pick GL_BLEND CL from master

Selectively enable and disable GL_BLEND for better performance.

Bug: 3471680
Change-Id: I065b07f72a097418b81e5922574579574e7ca91a

13 years agoDO NOT MERGE Fix GL_BLEND problem.
Nicolas Roard [Fri, 11 Feb 2011 19:38:49 +0000 (11:38 -0800)]
DO NOT MERGE Fix GL_BLEND problem.
glBindAttribLocation() will only work after a shader has been linked;
This was working previously due to the way the nvidia driver work
when using blending (it generates another shader).

Change-Id: Ie5d28ba451e7b37fd9c6a76c14fc3e4e525d9bf0

13 years agoDO NOT MERGE Clip layers if the texture size is too large for the GPU
Nicolas Roard [Fri, 11 Feb 2011 18:00:52 +0000 (10:00 -0800)]
DO NOT MERGE Clip layers if the texture size is too large for the GPU

bug:3436987
Change-Id: Ibf42685ee07c6d0dd8a1a2b9c8b57da7f2a422db

13 years agoFix potential bug in setMaxTextureCount and limit
Nicolas Roard [Sat, 19 Feb 2011 00:35:20 +0000 (16:35 -0800)]
Fix potential bug in setMaxTextureCount and limit
the number of textures to 154

Change-Id: I39409e938b6b4bff23d6f1f0dc44648d63443f59

13 years agoFix potential bug in setMaxTextureCount and limit
Nicolas Roard [Sat, 19 Feb 2011 00:35:20 +0000 (16:35 -0800)]
Fix potential bug in setMaxTextureCount and limit
the number of textures to 154

Change-Id: Ie77935015d744fcfda9bfffd751df6c7f3cd10bb

13 years agoSet correct max texture allocations.
Shimeng (Simon) Wang [Tue, 15 Feb 2011 22:30:49 +0000 (14:30 -0800)]
Set correct max texture allocations.

This fixes core dump or dead lock in GL code when rotating screen.

Change-Id: Ia7bfa71125f1d24158084b6192d805b5b08b60f8

13 years agoMerge "Fix some of the performance issues when using the flash plugin embedded."
Nicolas Roard [Sat, 19 Feb 2011 00:02:07 +0000 (16:02 -0800)]
Merge "Fix some of the performance issues when using the flash plugin embedded."

13 years agoFix some of the performance issues when using the flash plugin embedded.
Nicolas Roard [Fri, 18 Feb 2011 23:54:32 +0000 (15:54 -0800)]
Fix some of the performance issues when using the flash plugin embedded.

What happened was that MediaLayer was always telling us to repaint the
screen; we could repaint the same frame a dozen of times unecessarily.
This in itself was wasteful but should have been ok, but the stream
of commands plus the compositing caused the GPU commands used by flash
to stall until they were executed...
The compounded impact drasticaly lowered the performances.

This is not a full fix as those conditions (us repainting the screen
a lot) happens anyway when zooming or scrolling; but this should improve
performances in the general case.

Change-Id: I3391c2c5a5198a73863ace53bc10f623cdc00921

13 years agoMerge "Ensure non-ready tiles are painted with the page background color."
Derek Sollenberger [Fri, 18 Feb 2011 20:28:21 +0000 (12:28 -0800)]
Merge "Ensure non-ready tiles are painted with the page background color."

13 years agoEnsure non-ready tiles are painted with the page background color.
Derek Sollenberger [Fri, 18 Feb 2011 19:04:07 +0000 (14:04 -0500)]
Ensure non-ready tiles are painted with the page background color.

bug: 3465059
Change-Id: Ia6e5ec7e9f68d641f5bf0df34c04c5c9958a4046

13 years agoPart of fix for bug 3424424 Browser hanging
Kristian Monsen [Fri, 18 Feb 2011 15:58:41 +0000 (15:58 +0000)]
Part of fix for bug 3424424 Browser hanging

Always calling complete, and adding an assert if Wait finishes
without incrementing the count.

Change-Id: Iceec36c2b82f225ee88cd67eeb18d5c5064c6bfb

13 years agoMerge "use measure instead of bounder to find spaces"
Cary Clark [Fri, 18 Feb 2011 16:14:49 +0000 (08:14 -0800)]
Merge "use measure instead of bounder to find spaces"

13 years agouse measure instead of bounder to find spaces
Cary Clark [Fri, 18 Feb 2011 15:55:25 +0000 (10:55 -0500)]
use measure instead of bounder to find spaces

Pictures do not include white space characters in their
text spans, so they must be deduced. The old method
used drawing through the canvas, compared against
drawing the text directly.

The new method measure and rounds the text to match
how webkit adjusts characters' widths in WidthIterator.

bug:348629
Change-Id: I39fecd274fe0b195fbad13a6083656daa62ed852

13 years agoFix memory allocation bug in convertV8ObjectToNPVariant() for strings
Steve Block [Fri, 18 Feb 2011 11:18:37 +0000 (11:18 +0000)]
Fix memory allocation bug in convertV8ObjectToNPVariant() for strings

This is a cherry-pick of WebKit change 78994

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

Change-Id: I1994bbbe89490e68025f9bbaa0606cf9766f2ca3

13 years agoMerge "Fixed element in iframe should have a layer"
Teng-Hui Zhu [Fri, 18 Feb 2011 01:03:29 +0000 (17:03 -0800)]
Merge "Fixed element in iframe should have a layer"

13 years agoFixed element in iframe should have a layer
Teng-Hui Zhu [Thu, 17 Feb 2011 23:40:08 +0000 (15:40 -0800)]
Fixed element in iframe should have a layer

bug:3466931
Change-Id: I3ce5aaef47b6135b191749b40869913f6420ce7f

13 years agoMerge "Merge WebKit at Chromium 9.0.597.106: Update WebKit merge revision"
Steve Block [Thu, 17 Feb 2011 17:06:53 +0000 (09:06 -0800)]
Merge "Merge WebKit at Chromium 9.0.597.106: Update WebKit merge revision"

13 years agoMerge "Merge WebKit at Chromium 9.0.597.106: Initial merge by Git"
Steve Block [Thu, 17 Feb 2011 17:06:39 +0000 (09:06 -0800)]
Merge "Merge WebKit at Chromium 9.0.597.106: Initial merge by Git"

13 years agob/3452201 Set certificate only when it's from the main page.
Huahui Wu [Thu, 17 Feb 2011 04:58:42 +0000 (20:58 -0800)]
b/3452201 Set certificate only when it's from the main page.

Change-Id: Ia81109b5afe993bac2ee4a3b2da232c19f750439

13 years agoAdding a debug setting to enable visual indicator for GL
Teng-Hui Zhu [Wed, 16 Feb 2011 19:26:46 +0000 (11:26 -0800)]
Adding a debug setting to enable visual indicator for GL

  [This is the webkit part]
  The idea is to turn on the visual indicator without building the code.

  The implementation included:
  1. Setup the UI on browser side to check whether or not this is enabled.
  2. Transfer the info from browser setting to web setting.
  3. Send this info down from WebView to webkit.
  4. In the webkit, we save this info in TilesManager.
  5. At texture generation time, we query this info to decide whether or not
     add the visual indicator on the texture.

  One design decision we made is we don't want to restart the browser for
  debugging purpose. This is better preserving the browser current activity,
  the only pitfall is that the visual indicator is NOT updated on different
  textures simultaneously.

  The dependent webView change is #change,97055

bug:3458721
Change-Id: I0ce51d7ac7de66ccdb95c9bf1f0edc7ec688622f

13 years agoMerge "Selectively enable and disable GL_BLEND for better performance."
Derek Sollenberger [Wed, 16 Feb 2011 20:48:46 +0000 (12:48 -0800)]
Merge "Selectively enable and disable GL_BLEND for better performance."

13 years agoSelectively enable and disable GL_BLEND for better performance.
Derek Sollenberger [Mon, 14 Feb 2011 16:26:30 +0000 (11:26 -0500)]
Selectively enable and disable GL_BLEND for better performance.

Change-Id: I473e2bff91c2e0b1ec2436f0666506023a7c0945

13 years agoMerge "Clip nodes to the visible rect."
Patrick Scott [Wed, 16 Feb 2011 20:00:23 +0000 (12:00 -0800)]
Merge "Clip nodes to the visible rect."

13 years agoClip nodes to the visible rect.
Patrick Scott [Wed, 16 Feb 2011 18:35:37 +0000 (13:35 -0500)]
Clip nodes to the visible rect.

Do not build scrollable layers if the layer does not draw. No need to ask for a
sync since the rebuild happens during a sync.

Bug: 3429982
Change-Id: I7740cd4de4e1658e760da7391de708cbdf05cd44

13 years agoMerge "match UI text selection background color"
Cary Clark [Wed, 16 Feb 2011 15:57:03 +0000 (07:57 -0800)]
Merge "match UI text selection background color"

13 years agoMerge "apply essential security patches"
Cary Clark [Wed, 16 Feb 2011 15:56:22 +0000 (07:56 -0800)]
Merge "apply essential security patches"

13 years agomatch UI text selection background color
Cary Clark [Wed, 16 Feb 2011 14:45:27 +0000 (09:45 -0500)]
match UI text selection background color

bug:3451973
Change-Id: Ie334c54ebb6b5b1083616739f9a90b8e8f3b6693

13 years agoFix for bug 3424689 Corrupt (truncated) downloads for apk from browser
Kristian Monsen [Wed, 16 Feb 2011 14:40:18 +0000 (14:40 +0000)]
Fix for bug 3424689 Corrupt (truncated) downloads for apk from browser

Sending the url of the response instead of the request, so using
the new url if there is a redirect.

Change-Id: Ic314d315a6e9b5be837c302cdcfd740cc185466d

13 years agoMerge WebKit at Chromium 9.0.597.106: Update WebKit merge revision
Steve Block [Wed, 16 Feb 2011 13:13:01 +0000 (13:13 +0000)]
Merge WebKit at Chromium 9.0.597.106: Update WebKit merge revision

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

This corresponds to r78455 on the 597 release branch.

Change-Id: I79be576710a57ed6d72c7c4dd37408c61c159768

13 years agoMerge WebKit at Chromium 9.0.597.106: Initial merge by Git
Steve Block [Wed, 16 Feb 2011 13:06:58 +0000 (13:06 +0000)]
Merge WebKit at Chromium 9.0.597.106: Initial merge by Git

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

This corresponds to r78455 on the 597 release branch.

Change-Id: I72375d9b61a767449086f0c9dc4105b2a6b62ddc

13 years agoMerge "Improve layers repaint speed. Computing the layers texture size is heavy;...
Nicolas Roard [Wed, 16 Feb 2011 01:57:48 +0000 (17:57 -0800)]
Merge "Improve layers repaint speed. Computing the layers texture size is heavy; we delay this computation if one was done recently."

13 years agoImprove layers repaint speed.
Nicolas Roard [Wed, 16 Feb 2011 01:48:19 +0000 (17:48 -0800)]
Improve layers repaint speed.
Computing the layers texture size is heavy; we delay this
computation if one was done recently.

bug:3375416
Change-Id: I0ce79cdfcaa15cd1521370a1d5b8df5a5e5ea2c5

13 years agoMerge "Set correct max texture allocations."
Shimeng (Simon) Wang [Tue, 15 Feb 2011 22:46:14 +0000 (14:46 -0800)]
Merge "Set correct max texture allocations."

13 years agoSet correct max texture allocations.
Shimeng (Simon) Wang [Tue, 15 Feb 2011 22:30:49 +0000 (14:30 -0800)]
Set correct max texture allocations.

This fixes core dump or dead lock in GL code when rotating screen.

Change-Id: I5da2e5a41dfdb18f98f126d2a2fac999210ce7c7

13 years agoMerge "fix buttons in GL"
Cary Clark [Tue, 15 Feb 2011 20:55:15 +0000 (12:55 -0800)]
Merge "fix buttons in GL"

13 years agofix buttons in GL
Cary Clark [Tue, 15 Feb 2011 19:57:24 +0000 (14:57 -0500)]
fix buttons in GL

Buttons failed to draw when selected with the keyboard, and
sometimes when selected by touch, for three reasons:

1) GL short-circuits if the last extra rectangle and the
   curent extra rectangle match. When buttons change color,
   the rectangles do match, but the picture still needs to
   be redrawn.

2) Buttons do not have cursor rings, so the button's bounds
   was not passed to GL.

3) The timeout logic to switch from a focused state to a normal
   state was incorrect.

This adds a flag to GLWebViewState::setExtra that can skip the
equal rectangle case. Note that the equal rectangle test hides
a more serious bug where the setExtra is called repeatedly -- so
it would be worthwhile to examine this further.

The logic that determines if the cursor is a button was split
out so that the cursor ring can be associated with a button even
if the cursor is hidden.

bug:3364248
Change-Id: I75944cb045486c128743aa13922d20758ccf783f

13 years agoA couple of fixes for scrolling layers.
Patrick Scott [Tue, 15 Feb 2011 16:21:28 +0000 (11:21 -0500)]
A couple of fixes for scrolling layers.

Update the layer structure during compositing sync. Make sure to turn off
scrolling if it changes.

Since I replace the content layer with a different structure, append the
children to the foreground layer so they move with the content. Remove the
clipping layer in the compositor for scrollable layers.

For children of scrollable layers, add back in the content scroll offset so that
layers are positioned relative to 0,0.

Bug: 3416512
Change-Id: I74de90aac2dcf67bd969d0b85f440343123ecab9

13 years agoapply essential security patches
Cary Clark [Mon, 14 Feb 2011 21:10:15 +0000 (16:10 -0500)]
apply essential security patches

bug:3341457
bug:3341449
Change-Id: I7ba58e63a6bcf992b76eb2f5557c26ff30e63ef6

13 years agoMerge "don't combine single image bitmaps"
Cary Clark [Mon, 14 Feb 2011 20:10:25 +0000 (12:10 -0800)]
Merge "don't combine single image bitmaps"

13 years agodon't combine single image bitmaps
Cary Clark [Mon, 14 Feb 2011 19:26:57 +0000 (14:26 -0500)]
don't combine single image bitmaps

Anchors and other links often contain multiple bitmaps, which must
be stitched together when analyzing the picture data to determine
if the anchor is fully visible, partially occluded, or fully hidden.
For instance, nine-patches in WebKit appear as adjacent bitmaps.

If a website design has two or more bitmaps adjacent to each other,
these may be mistakenly joined. By tracking whether the original
node contained exactly one img element, combining bitmaps based
on their location is avoided unncessarily.

bug:3373743
Change-Id: I5bcbdaec3097a2b839ee2444e512a0def6a016d0

13 years agoMerge "Generate well-formed makrup for accessibility events."
Svetoslav Ganov [Mon, 14 Feb 2011 18:17:23 +0000 (10:17 -0800)]
Merge "Generate well-formed makrup for accessibility events."

13 years agoGenerate well-formed makrup for accessibility events.
Svetoslav Ganov [Fri, 11 Feb 2011 02:27:54 +0000 (18:27 -0800)]
Generate well-formed makrup for accessibility events.

bug:3444147

1. Removed the code that incorrectly strips CSS spans appended
   by WebKit. This CSS information is now propagated to the
   client applications such as TalkBack.

2. Renamed getImplicitAnchorOrOffsetNode to getImplicitBoundaryNode.

Change-Id: I6618be4d208fafd223ba09fb90c393046121ca88

13 years agoMerge "remove unused helper class"
Cary Clark [Mon, 14 Feb 2011 16:22:37 +0000 (08:22 -0800)]
Merge "remove unused helper class"

13 years agoremove unused helper class
Cary Clark [Mon, 14 Feb 2011 15:50:57 +0000 (10:50 -0500)]
remove unused helper class

Change-Id: Icfb3ccfb8f89486604f1d63ab40e13d28d00cf7c

13 years agoMerge "Adding debug information about requests. #ifdef out by default"
Kristian Monsen [Mon, 14 Feb 2011 15:36:51 +0000 (07:36 -0800)]
Merge "Adding debug information about requests. #ifdef out by default"

13 years agoMerge "Partly fix for bug 3410366"
Kristian Monsen [Mon, 14 Feb 2011 15:36:39 +0000 (07:36 -0800)]
Merge "Partly fix for bug 3410366"

13 years agoFix GL_BLEND problem.
Nicolas Roard [Fri, 11 Feb 2011 19:38:49 +0000 (11:38 -0800)]
Fix GL_BLEND problem.
glBindAttribLocation() will only work after a shader has been linked;
This was working previously due to the way the nvidia driver work
when using blending (it generates another shader).

Change-Id: Ia8bf578e214a02c7a7b3ad47600fca87fce73ac8

13 years agoClip layers if the texture size is too large for the GPU
Nicolas Roard [Fri, 11 Feb 2011 18:00:52 +0000 (10:00 -0800)]
Clip layers if the texture size is too large for the GPU

bug:3436987
Change-Id: I180b9f54b9db5d190ca2832bea8b9ff210a0619a

13 years agoMerge "Fix ANR in the browser Sometimes we were not releasing textures as they were...
Nicolas Roard [Fri, 11 Feb 2011 03:33:59 +0000 (19:33 -0800)]
Merge "Fix ANR in the browser Sometimes we were not releasing textures as they were busy; they could still be deleted when swapping the layers trees, and as they were also still present in the LayerTexture Hashmap this was causing an ANR (at best -- the texture was already deallocated, the LayerTexture dtor was then trying to release() them...)"