[Cherry-pick] Positioned children of an overflow:visible container should ignore...
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 14 Jan 2013 22:44:02 +0000 (22:44 +0000)
committerGerrit Code Review <gerrit2@kim11>
Fri, 5 Apr 2013 05:37:10 +0000 (14:37 +0900)
commitb5cab56eca1f2e2c3a55f163703903437f285190
treefc77ba39504b0057b3fbf49976e30522ade435ed
parent600683b5a11de5944c2f6af60471306b345146e9
[Cherry-pick] Positioned children of an overflow:visible container should ignore scroll offset when updating layer position

[Title] [Cherry-pick] Positioned children of an overflow:visible container should ignore scroll offset when updating layer position
[Issue] N_SE-31159
[Problem] display Delicious/Join page clipped.
[Cause] renderLayer which has relative property is placed in wrong position.
[Solution] Cherry-pick the opensource patch.

[Cherry-pick] Positioned children of an overflow:visible container should ignore scroll offset when updating layer position
https://bugs.webkit.org/show_bug.cgi?id=106814

Source/WebCore:

Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-01-14
Reviewed by Simon Fraser.

This patch fixes a bug in RenderLayer::updateLayerPosition that
scrollLeft / scrollTop of a block should only be effective when the
block has overflow clipping. The bug results in rendering artifacts
and triggers a RenderGeometryMap assertion falure.

Fixes http://crbug.com/167985

Test: fast/overflow/overflow-visible-should-ignore-scroll.html

* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::updateLayerPosition):

LayoutTests:

This patch fixes a bug in RenderLayer::updateLayerPosition that
scrollLeft / scrollTop of a block should only be effective when the
block has overflow clipping. The bug results in rendering artifacts
and triggers a RenderGeometryMap assertion falure.

Fixes http://crbug.com/167985

Patch by Tien-Ren Chen <trchen@chromium.org> on 2013-01-14
Reviewed by Simon Fraser.

* fast/overflow/overflow-visible-should-ignore-scroll-expected.html: Added.
* fast/overflow/overflow-visible-should-ignore-scroll.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@139669 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/fast/overflow/overflow-visible-should-ignore-scroll-expected.html [new file with mode: 0644]
LayoutTests/fast/overflow/overflow-visible-should-ignore-scroll.html [new file with mode: 0644]
Source/WebCore/rendering/RenderLayer.cpp