Fixed elements sometimes marked out-of-view if you have rubber-banded too far,
authorbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jan 2013 01:31:55 +0000 (01:31 +0000)
committerbdakin@apple.com <bdakin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Jan 2013 01:31:55 +0000 (01:31 +0000)
commitc09df56441142e4b929d6dfb9c91e7bc4645190e
tree876ae51d255c9352c908748a5f2d73d793f63f60
parent683d8180ba7f753f10f181776d8d2a48aa7525d8
Fixed elements sometimes marked out-of-view if you have rubber-banded too far,
affects flickr.com
https://bugs.webkit.org/show_bug.cgi?id=107882
-and corresponding-
<rdar://problem/13065897>

Reviewed by Simon Fraser.

Source/WebCore:

It is possible to rubber band so far that our fixed object appears to be outside
of the visibleContentArea(). We should use the
viewportConstrainedVisibleContentRect() since that is what fixed objects are
positioned based on anyway.

* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::requiresCompositingForPosition):

LayoutTests:

* platform/mac/tiled-drawing/fixed/negative-scroll-offset-in-view-expected.txt: Added.
* platform/mac/tiled-drawing/fixed/negative-scroll-offset-in-view.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@140758 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/platform/mac/tiled-drawing/fixed/negative-scroll-offset-in-view-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/tiled-drawing/fixed/negative-scroll-offset-in-view.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/rendering/RenderLayerCompositor.cpp