summaryrefslogtreecommitdiffstats
path: root/WebCore/rendering/RenderLayer.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge webkit.org at r58033 : Initial merge by gitSteve Block2010-05-111-45/+119
| | | | Change-Id: If006c38561af287c50cd578d251629b51e4d8cd1
* Merge webkit.org at r55033 : Initial merge by gitSteve Block2010-04-271-1/+3
| | | | Change-Id: I98a4af828067cc243ec3dc5e5826154dd88074b5
* Fix click issues when using fixed elements. This CL also fix the positioningNicolas Roard2010-03-181-16/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | of a fixed layer when no position is defined, and also only use the screen to position only the fixed elements, not other types of positioned elements. Bug:2521087 The click issues were due to not returning the fixed element when looking for a parent stackingContext in RenderLayer::stackingContext(). This resulted in incorrect coordinates for the layers children of a fixed layer, that we then had to recompute in RenderLayer::convertToLayerCoords(), but this in turns was invaliding hit test detection... Fixed elements are now positioned relative to the screen instead of the virtual viewport (ANDROID_FIXED_ELEMENTS); but this was applying indiscriminantly to all positioned elements, absolute elements included. The CL modify RenderBox::containingBlockWidthForPositioned() and RenderBox::containingBlockHeightForPositioned() to only do this for fixed elements. Finally, fixed layers were wrongly positioned if the positions were not fully set (e.g. only setting top:0 but no left or right). The change to LayerAndroid::updateFixedLayersPositions() fixes this. Change-Id: I07a179dd631a2bc1a313e33ffcf69ef388ecb7ca
* Refactor how we set up the layers hierarchy when using fixedNicolas Roard2010-03-171-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | composited layers, and fix the z-index position. Bug:2497910 Bug:2450006 We add a new COMPOSITED_FIXED_ELEMENTS define to isolate the changes in the webkit common code. We previously had a problem where the hierarchy of GraphicsLayer (i.e. the backed surfaces associated to the composited RenderLayer) was not reflecting that layers were children of a fixed layer. The workaround we currently have is not fully satisfactory, due to the way we draw layers on screen (in some cases layers were wrongly translated, see Bug:2497910). Instead, modifying the webkit common code simplify things a lot, and makes the patch more likely to be upstreamed to webkit, as it's now a reasonably well-delimited feature (use composited layers for fixed elements). What we do now is to consider fixed elements as a stacking context, which makes all layers children of such elements children too in the GraphicsLayer hierarchy, and modifying the offset of those children accordingly (in RenderLayer.cpp). In addition, we fixes the z-index bugs we had by signaling that there is a fixed element to its siblings, and turning the siblings as composited layers as well (so that the ordering works fully UI-side). Change-Id: I735c6c14d955ef54653f0053187d3495bef1f332
* Update Android to reflect upstreaming of matrix optimization in RenderLayer.cppSteve Block2010-02-221-6/+0
| | | | | | See http://trac.webkit.org/changeset/55081 Change-Id: If34e70743c554b2a5e8315b2657cce6964805f6a
* Fixes a bug in RenderLayer::paintLayer due to Android's FASTER_MATRIX ↵Steve Block2010-02-181-1/+1
| | | | | | | | | | | | | | | | optimisation This bug was introduced by the merge to r51976 on 15 Dec 2009. WebKit change 51355 modified RenderLayer::paintLayer and the Android FASTER_MATRIX modification was not updated to reflect this. The difference is that, compared to the intended code, the Android version misses a call to makeMatrixRenderable, which in turn calls makeAffine, when calculating the transform matrix. See http://trac.webkit.org/changeset/51355 Change-Id: Ibc25b92e64381642fc3bbcfd672c056a3d89e035
* Merge webkit.org at r54731 : Initial merge by gitSteve Block2010-02-161-5/+5
| | | | Change-Id: Ia79977b6cf3b0b00c06ef39419989b28e57e4f4a
* Merge webkit.org at r54127 : Initial merge by gitSteve Block2010-02-041-26/+88
| | | | Change-Id: Ib661abb595522f50ea406f72d3a0ce17f7193c82
* Merge webkit.org at r51976 : Fix general conflicts.Steve Block2009-12-171-5/+1
| | | | | | | | | | | | | | | Notes ... For FrameLoader.cpp/h, see http://trac.webkit.org/changeset/51644 For FrameView.cpp and ScrolView.cpp, see http://trac.webkit.org/changeset/51636 For PluginInfoStore.cpp, see http://trac.webkit.org/changeset/51257 For Geolocation.cpp, see http://trac.webkit.org/changeset/50605 For V8DOMWrapper.cpp, see http://trac.webkit.org/changeset/51004 For V8Proxy.cpp, see http://trac.webkit.org/changeset/50441, http://trac.webkit.org/changeset/50327, http://trac.webkit.org/changeset/50406 and http://trac.webkit.org/changeset/50523 For HTMLInputElement.cpp, see http://trac.webkit.org/changeset/50996 For RenderBlock.cpp/RenderInline.cpp, see https://android-git.corp.google.com/g/#change,33465 Android-specific change to now-deleted JSCanvasArrayCustom.cpp was trivial. Change-Id: Iddc8d43bdcb6208d6a991a7a1d591e8a4f918bf7
* Merge webkit.org at r51976 : Initial merge by git.Steve Block2009-12-171-76/+141
| | | | Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43
* Merge webkit.org at r50258 : Initial merge by git.Steve Block2009-11-101-3/+12
| | | | Change-Id: I1a9e1dc4ed654b69174ad52a4f031a07240f37b0
* Merge webkit.org at R49305 : Automatic merge by git.Steve Block2009-10-201-61/+149
| | | | Change-Id: I8968561bc1bfd72b8923b7118d3728579c6dbcc7
* Revert "Merge WebKit r47420"Andrei Popescu2009-08-191-39/+13
| | | | This reverts commit d227fc870c7a697500a3c900c31baf05fb9a8524.
* Merge WebKit r47420Ben Murdoch2009-08-181-13/+39
|
* Merge in WebKit r47029.Ben Murdoch2009-08-111-76/+175
|
* Get WebKit r44544.Feng Qian2009-06-171-37/+76
|
* speedup some common matrix operations, to be submitted backMike Reed2009-06-111-0/+5
|
* AI 145796: Land the WebKit merge @r42026.Feng Qian2009-04-101-334/+880
| | | | Automated import of CL 145796
* auto import from //depot/cupcake/@136594The Android Open Source Project2009-03-051-269/+308
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+2572
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-2572/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-482/+550
|
* external/webkit r30707Upstream1970-01-121-0/+2504