Changeset 136452 in webkit
- Timestamp:
- Dec 3, 2012, 4:04:52 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r136449 r136452 1 2012-12-03 Kenneth Rohde Christiansen <kenneth@webkit.org> 2 3 [EFL][Qt][WK2] Fixed position elements are not always fixed 4 https://bugs.webkit.org/show_bug.cgi?id=103452 5 6 Reviewed by Simon Fraser. 7 8 The code figuring out whether fixed position layers are inside 9 the visible viewport, assumes that the visible viewport is always 10 the size of the layout viewport. This assumption doesn't hold with 11 how the Qt and EFL tiled backing store and coordinated graphics 12 works, so instead using the visibleContentsRect(), which provides 13 the right values in all cases. 14 15 * rendering/RenderLayerCompositor.cpp: 16 (WebCore::RenderLayerCompositor::requiresCompositingForPosition): 17 18 Use visibleContentsRect instead of scrollOffsetForFixedPosition(). 19 20 scrollOffsetForFixedPosition() is needed sometimes in the Mac code 21 because visibleContentRect() will return negative offsets when you 22 are in the rubber-band phase of a scroll on the Mac. 23 24 However that is not an issue here. 25 1 26 2012-12-03 Sheriff Bot <webkit.review.bot@gmail.com> 2 27 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r136433 r136452 1975 1975 // Fixed position elements that are invisible in the current view don't get their own layer. 1976 1976 if (FrameView* frameView = m_renderView->frameView()) { 1977 IntRect viewBounds = IntRect(IntPoint(frameView->scrollOffsetForFixedPosition()), frameView->layoutSize());1977 IntRect viewBounds = frameView->visibleContentRect(); 1978 1978 IntRect layerBounds = calculateCompositedBounds(layer, rootRenderLayer()); 1979 1979 if (!viewBounds.intersects(layerBounds))
Note:
See TracChangeset
for help on using the changeset viewer.