summaryrefslogtreecommitdiffstats
path: root/WebCore/platform
Commit message (Collapse)AuthorAgeFilesLines
* Fix hit testing inside layers.Patrick Scott2010-12-136-80/+158
| | | | | | | | | | | | | | | | | | * Prevent asking for a sync in GraphicsLayerAndroid if some property has not changed. * Remove scrolling logic from LayerAndroid and create a subclass for scrollable layers. * Report the scrolling limits to the layer in order to scroll iframes (not turned on) and to avoid computing them each time the layer is scrolled. * Change the foreground rect calculations to better match the non-overflow case. * During hit testing, intersect the hitTestClip with the foreground and background to prevent false positives in the layer. * Prepare for iframe scrolling by adding code to trigger compositing for iframes. This currently works great except for navigation so it disabled for now. Bug: 3258631 Change-Id: I0da2d8dbe25376c6aa4f485c9350048c82c6f563
* Refactor recent changes to SharedTexture and TilesManager.Derek Sollenberger2010-12-0910-26/+39
| | | | | | | These changes are directly related to the comments found in this CL --> https://android-git.corp.google.com/g/#change,83984 Change-Id: Ida0acb772f9bcaa4f4f5b394676d45b27f4149d2
* When the tile get painted, it should be cleared first.Teng-Hui Zhu2010-12-081-1/+1
| | | | | | | | | | | This will clear the residue for the areas not in viewport, either the area belongs to the tiles inside or outside the viewport. In another word, area in the viewport will be redraw anyway, but area not in the viewport will get an invalidate only, that is why we need to clear the content when invalidating. bug: 3253934 Change-Id: I29b88c20cb5e68d6c0f917e7fa9fb22b395d6321
* Add a DeleteTextureOperation class and use it in SharedTextureNicolas Roard2010-12-085-30/+139
| | | | Change-Id: If0fd058911d84263b4f6257bf19cf6b2132c029a
* TexturesGenerator refactoringNicolas Roard2010-12-085-61/+152
| | | | | | | | | Introduce a generic QueuedOperation class to process various operations on the Textures generation thread. Right now this is just a refactoring, but we need this for the layers (to queue up layers painting as well as texture deletion operations) Change-Id: Ib8c8ceda1965bbd178a6c720cebf1d2eb0312d8a
* Get rid of some Debug spew which is out of dataTeng-Hui Zhu2010-12-071-3/+2
| | | | | | For bug : 3171575 Change-Id: I8736ba7e174a7ea8e4228bfbdacb8ca443828f99
* Merge "Change scrollBy to scrollTo in order to support fling."Patrick Scott2010-12-072-25/+34
|\
| * Change scrollBy to scrollTo in order to support fling.Patrick Scott2010-12-072-25/+34
| | | | | | | | | | | | | | | | | | | | Requires a change in frameworks/base. Report the scrollable rectangle when asking for a scrollable layer. This rectangle contains the current offset and the max offset for scrolling. These are content coordinates relative to 0, 0. Change-Id: Ia27dd23d6232057a648892d866109770f8e5bb55
* | Fix for <select> elements.Leon Scroggins2010-12-073-21/+103
|/ | | | | | | | | | | | Bug:3230016 Allow webkit to handle the click on a <select> element if it is a RenderMenuList. Implement PopupMenu class, using PopupMenuClient to interact with the <select> element. Change-Id: I9611c23304fc2fc3eb01ecbd7a46fa02cd52df9a
* Merge "Fix 3185363 by reverting fd0bf63b4: Better lookup with @font-face local"Russell Brenner2010-12-031-87/+47
|\
| * Fix 3185363 by reverting fd0bf63b4: Better lookup with @font-face localRussell Brenner2010-12-021-87/+47
| | | | | | | | | | | | | | This reopens bug 2720133: @font-face does not work if a local font is specified before a remote font in the src list. Change-Id: Ibfe93549b3ea7fd88cffd6ee75674a03f5e94d43
* | Rewrite scrollable layers using multiple layers.Patrick Scott2010-12-037-163/+147
|/ | | | | | | | | | | | | | | | | | | | | | | Remove PlatformBridge::updateLayers and instead call layersDraw from ChromeClientAndroid during a requested sync. Instead of LayerAndroid having knowledge of scrolling pictures, use multiple layers (background, mask, foreground). Update navigation to use the new structure. Always record nodes in absolute, unscrolled coordinates. Do not track layers unless the node has a composited layer and a last child. Check for composited parents when adding to tracked layers as well. TODO: * developer.android.com doesn't completely work with navigation due to some nodes being clipped out. * BaseLayerAndroid needs to be able to operate with a matrix other than identity. * nested fixed position elements do not draw correctly. * nested overflow layers haven't been tested. Change-Id: I0e2bd37612341e8884d68153ab36194cb2dc1eeb
* Merge WebKit at r72274: Add new flag to ImageSource constructor with ↵Russell Brenner2010-12-021-2/+3
| | | | | | | | | asssociated storage member Patch for webkit change: http://trac.webkit.org/changeset/72130 Change-Id: I5718b8c1ee5b2a9c8afa31de24e882f30d62972f
* Merge WebKit at r72274: Add orientation stubRussell Brenner2010-12-021-2/+5
| | | | | | | | Orientation is hardwired to horizontal. Needs proper implementation. http://trac.webkit.org/changeset/71970 Change-Id: If838dd9689e0e54b282baaa82515b2460e50578f
* Merge WebKit at r72272: Fix conflicts.Russell Brenner2010-12-022-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebCore/Android.v8bindings.mk http://trac.webkit.org/changeset/71802 WebCore/bindings/v8/V8Proxy.cpp http://trac.webkit.org/changeset/71735 WebCore/css/CSSParser.cpp http://trac.webkit.org/changeset/71767 http://trac.webkit.org/changeset/72116 (several APIs purged) WebCore/loader/ResourceLoader.cpp http://trac.webkit.org/changeset/71884 WebCore/platform/graphics/MediaPlayer.cpp http://trac.webkit.org/changeset/72117 WebCore/platform/image-decoders/ImageDecoder.cpp http://trac.webkit.org/changeset/72130 WebCore/rendering/RenderBlockLineLayout.cpp http://trac.webkit.org/changeset/72235 WebCore/rendering/RenderView.cpp http://trac.webkit.org/changeset/71851 Change-Id: If0a3466754b9755c1f4be97bf589f88c48eece0a
* Merge WebKit at r72274: Initial merge by git.Russell Brenner2010-12-02173-1264/+3066
| | | | Change-Id: Ie51f0b4a16da82942bd516dce59cfb79ebbe25fb
* Fix style in WebCore/platform/network/androidSteve Block2010-12-012-10/+5
| | | | | | | This matches what was upstreamed in http://trac.webkit.org/changeset/73062 Change-Id: I2cf2064ab51105fb16039f8af285a3797abe49a9
* Use one WebRequestContext per WebViewSteve Block2010-12-013-6/+3
| | | | | | | | | | | | This change switches from using a pair of WebRequestContexts (one for private browsing, one for regular browsing) to using one WebRequestContext per WebView. This is required to allow us to set the userAgent on each WebView. The WebRequestContext is now owned by the WebView. Bug: 3113804 Change-Id: Iba2b1490e7ce4ff65c08a04a310963fa2c7e4f83
* attach the last extra to the next pictureCary Clark2010-12-012-1/+3
| | | | | | | | | | When a new picture is generated for the content, use the last cursor ring / text selection etc. for the interval between the picture message and the view inval. This reduces flickering. bug:3230094 Change-Id: Ie099a8db395bfa707790ffe3c1f7f5398cc9afa4
* Merge "Refactoring the zoom"Nicolas Roard2010-11-293-40/+52
|\
| * Refactoring the zoomNicolas Roard2010-11-243-40/+52
| | | | | | | | Change-Id: I84d44b6aab2222b52d21a65ceb74e390c677fe72
* | allow animated gifs to skip framesCary Clark2010-11-241-4/+0
|/ | | | | | | | Removing this patch causes gifs to skip frames rather than play all intermediate frames in an attempt to catch up. bug:2621902 Change-Id: Idc19b11991c37c685d1dc61bb5daddc6d12d30e0
* reenable draw extras when GL is turned onCary Clark2010-11-237-40/+58
| | | | | | | | | | | | | | | | This captures the drawing in the UI thread, then passes the drawing to the tile imaging thread. The draw extras interface now takes an additional rectangle, and each draw extra fills in the inval area formed as that part is drawn. The old extra implementation in GLWebViewState has been removed. The inval portion of the setBaseLayer call has been split out so it can be called directly. bug:3161294 Change-Id: I28d3e6879059770b973e7c0f7c0796909f7359aa
* Fix the Zoom out / dirty tiles bugNicolas Roard2010-11-221-0/+7
| | | | | Bug:3212531 Bug:3212527 Change-Id: Ie038f5b42cd34653f0a3e8fbe8c1fb1c0c3aceca
* Fix case where the Texture class held a reference to a deleted Tile.Derek Sollenberger2010-11-224-2/+13
| | | | | bug: 3217947 Change-Id: If75673ece459d6539f1fd990d538347e13d60d68
* Clear GL inside clear view.Shimeng (Simon) Wang2010-11-223-0/+13
| | | | | issue: 3215000 Change-Id: I8668a857d840084c363b13c95efffc740a1451db
* Fix browser ANR when using Hardware AccelerationNicolas Roard2010-11-222-1/+5
| | | | | Bug:3217947 Change-Id: Ic0da5c4c131026a88afff2acc254a23a4d6a42ff
* Merge Webkit at r71558: Define ImageInterpolationQuality in AndroidTeng-Hui Zhu2010-11-171-0/+6
| | | | | | http://trac.webkit.org/changeset/71337 Change-Id: I2c800902231b676f6b9ec73fe43c6621939b9fb9
* Merge Webkit at r71558: Remove clipOutEllipseInRectTeng-Hui Zhu2010-11-171-11/+0
| | | | | | http://trac.webkit.org/changeset/70996 Change-Id: I0e12e9f1b94fc1a9798ab2faa61d4fd2aeb8f076
* Merge Webkit at r71558: Fix conflicts.Teng-Hui Zhu2010-11-172-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WebCore/loader/FrameLoader.cpp http://trac.webkit.org/changeset/70960 http://trac.webkit.org/changeset/70971 WebCore/css/CSSStyleSelector.cpp http://trac.webkit.org/changeset/71218 WebCore/css/CSSParser.cpp http://trac.webkit.org/changeset/71218 WebCore/html/HTMLLinkElement.cpp http://trac.webkit.org/changeset/71159 WebCore/platform/android/PlatformBridge.h http://trac.webkit.org/changeset/71484 WebCore/platform/android/TemporaryLinkStubs.cpp http://trac.webkit.org/changeset/71484 WebCore/rendering/RenderTableSection.cpp http://trac.webkit.org/changeset/71382 http://trac.webkit.org/changeset/71251 WebCore/rendering/RenderLayer.cpp http://trac.webkit.org/changeset/71536 WebCore/rendering/RenderTable.cpp http://trac.webkit.org/changeset/71382 WebCore/Android.v8bindings.mk http://trac.webkit.org/changeset/71515 WebCore/bindings/scripts/CodeGeneratorV8.pm http://trac.webkit.org/changeset/71227 http://trac.webkit.org/changeset/71230 Change-Id: I3ad8c6bc6e36c90aedebedf915a8614b2c786550
* Merge WebKit at r71558: Initial merge by git.Teng-Hui Zhu2010-11-17127-2122/+4197
| | | | Change-Id: Ib345578fa29df7e4bc72b4f00e4a6fddcb754c4c
* make helper class privateCary Clark2010-11-172-6/+6
| | | | | | | | | Confusion on my part about nested classes prevented me from getting this right the first time. Thanks to Pat for setting me straight. bug:3114609 Change-Id: If6551ec98c08c45e0bbd84a51a3a48bda0e55619
* Use LayerAndroid::find with the original x and y.Patrick Scott2010-11-121-1/+1
| | | | | | | If the picture is not provided, use the findInner case to find the layer at the given position. Change-Id: I811c1c4d631086832a3a32038834117a1c4e9601
* Track all tiles in the viewport instead of only the upper left tile.Derek Sollenberger2010-11-125-91/+113
| | | | | | | | | | | | | | | We currently store only the coordinates of the upper left tile and leave it to the caller to compute the actual number of tiles in the viewport. This CL computes that information upfront and then passes a rect containing the tiles in the viewport to the necessary parties. This also allows us to intelligently prepare tiles that are currently off-screen but given the user's scroll direction will be on-screen shortly. bug: 3190926 Change-Id: I50a5922ed8bc7e8fd8e4cacd4986a9f275cd37b0
* Only check to see if the page is ready when necessary.Derek Sollenberger2010-11-111-2/+2
| | | | | | | This CL reorders the contents of an if statement to ensure that we do not pointlessly check to see if the tiledPage is ready. Change-Id: I7155c4beb5a6dcbcb195e2c80c317a599a9553af
* Merge "Use a fixed number of BaseTiles per TiledPage."Derek Sollenberger2010-11-117-88/+121
|\
| * Use a fixed number of BaseTiles per TiledPage.Derek Sollenberger2010-11-117-88/+121
| | | | | | | | | | | | | | | | | | This CL ensures that the TiledPage only keeps track of BaseTiles that are backed by a texture. In order to avoid unecessary allocations on the stack we pre-allocate the memory for the tiles and reuse tiles. Change-Id: I894cf4d5c6b564169ccf7a967629f5d670a5426d
* | Revert "Merge "Fix text-shadow style when blur is 0px""Bart Sears2010-11-101-4/+7
| | | | | | | | | | | | | | Bug: 3185661 This reverts commit ccbb8a238ca0ba5fc0780884e281e6b6a601a675, reversing changes made to fcb462de639304deaa2da761823fbfeef88b36d4.
* | Merge Webkit at r70949: moved stub to right namespaceJohn Reck2010-11-091-1/+5
| | | | | | | | | | | | Cherry pick of http://trac.webkit.org/changeset/71346 Change-Id: Id64a084c3e0e74e5b9ec7c0c22141b46b044097d
* | Merge Webkit at r70949: Added FontOrientation paramJohn Reck2010-11-092-2/+3
| | | | | | | | | | | | | | FontOrientation was added as a parameter to the fontPlatformData function http://trac.webkit.org/changeset/70250 Change-Id: I918401828c6b1cd9901c0aa50f6a6ffffac01a8c
* | Merge Webkit at r70949: Initial merge by git.John Reck2010-11-09180-1257/+3996
| | | | | | | | Change-Id: I77b8645c083b5d0da8dba73ed01d4014aab9848e
* | Merge "Null-check in GLUtils::isEGLImageSupported()"Russell Brenner2010-11-081-2/+3
|\ \
| * | Null-check in GLUtils::isEGLImageSupported()Russell Brenner2010-11-051-2/+3
| |/ | | | | | | | | | | | | Avoid segfault by checking for null strings in GLUtils::isEGLImageSupported() and GLUtils::isEGLFenceSyncSupported(). Bug: 3169653
* | Merge "Fix text-shadow style when blur is 0px"Teng-Hui Zhu2010-11-081-7/+4
|\ \
| * | Fix text-shadow style when blur is 0pxTeng-Hui Zhu2010-11-051-7/+4
| | | | | | | | | | | | | | | | | | | | | When blur is 0px , the should at least show up without any blurry. http://b/issue?id=2581273 Change-Id: I3db26647c1ed3f7dd29e7045ae6f5c5b81722da6
* | | Fix the blank screen bug.Nicolas Roard2010-11-051-5/+13
| |/ |/| | | | | | | | | | | | | As the texture generator thread isn't an infinite loop, we could miss a signaled new request. Bug:3155078 Change-Id: Ifad1ec356b061eec24399cad4b572866f6d74f06
* | Support partial invalidation of tiles based on webkit's inval rect.Derek Sollenberger2010-11-0513-205/+199
| | | | | | | | | | | | | | | | | | This CL reverts the rollback of the original CL now that we have fixed bug #3165953. This reverts commit 144ccd9c8dba05ffaa0ae598f9b70032050fc20e. Change-Id: Ibb5254f652ed95aa3b7b71bf24a2578c51e74a70
* | Merge "Code cleanup for FontCacheAndroid.cpp"Russell Brenner2010-11-051-3/+4
|\ \
| * | Code cleanup for FontCacheAndroid.cppRussell Brenner2010-11-041-3/+4
| | | | | | | | | | | | | | | | | | | | | Minor changes to allow check-webkit-style to complete without warning for FontCacheAndroid.cpp. Change-Id: Ifaa8634d53374c94251641d6b9daf5f8114af9e9
* | | Merge "Adjust layers when parent layer scrolls"Cary Clark2010-11-051-6/+19
|\ \ \