Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Issue 839103002: Consider transformed container's scroll offset when calculating fixed descendant's offset (Closed)

Created:
5 years, 11 months ago by Xianzhu
Modified:
5 years, 11 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, Dominik Röttsches, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, zoltan1
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Consider transformed container's scroll offset when calculating fixed descendant's offset Fixed-position descendant of a transformed-container behaves differently than normal fixed-position elements. See http://dev.w3.org/csswg/css-transforms/#transform-rendering for details. Though the topic is still controversial https://www.w3.org/Bugs/Public/show_bug.cgi?id=16328 we have already followed the current spec in most parts of our code. The spec doesn't say if the fixed-pos element should scroll if the transformed container is scrollable. We are inconsistent about this. We consider the scroll offset during painting, but not during invalidation. When the fixed-position elements needs repaint, we invalidate the place that is different from where paint the fixed-pos element, if the transformed container is scrolled. This change make it consistent. With this change, we'll avoid corrupted rendering, and behave the same as Firefox. BUG=439930 TEST=fast/repaint/fixed-descendant-of-transformed-scrolled.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188245

Patch Set 1 #

Total comments: 2

Patch Set 2 : ASSERT and comments about the scrollable container of the fixed-position #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -1 line) Patch
A LayoutTests/fast/repaint/fixed-descendant-of-transformed-scrolled.html View 1 chunk +48 lines, -0 lines 0 comments Download
A + LayoutTests/fast/repaint/fixed-descendant-of-transformed-scrolled-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayer.cpp View 1 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
Xianzhu
5 years, 11 months ago (2015-01-08 18:57:07 UTC) #2
Julien - ping for review
https://codereview.chromium.org/839103002/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/839103002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode1388 Source/core/rendering/RenderLayer.cpp:1388: if (RenderLayerScrollableArea* scrollableArea = ancestorLayer->scrollableArea()) Won't this add the ...
5 years, 11 months ago (2015-01-09 13:25:02 UTC) #4
Xianzhu
https://codereview.chromium.org/839103002/diff/1/Source/core/rendering/RenderLayer.cpp File Source/core/rendering/RenderLayer.cpp (right): https://codereview.chromium.org/839103002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode1388 Source/core/rendering/RenderLayer.cpp:1388: if (RenderLayerScrollableArea* scrollableArea = ancestorLayer->scrollableArea()) On 2015/01/09 13:25:02, Julien ...
5 years, 11 months ago (2015-01-09 17:54:16 UTC) #5
Xianzhu
On 2015/01/09 17:54:16, Xianzhu wrote: > https://codereview.chromium.org/839103002/diff/1/Source/core/rendering/RenderLayer.cpp > File Source/core/rendering/RenderLayer.cpp (right): > > https://codereview.chromium.org/839103002/diff/1/Source/core/rendering/RenderLayer.cpp#newcode1388 > ...
5 years, 11 months ago (2015-01-12 17:35:21 UTC) #6
Xianzhu
ping...
5 years, 11 months ago (2015-01-12 17:35:46 UTC) #7
dsinclair
lgtm
5 years, 11 months ago (2015-01-12 19:28:56 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839103002/20001
5 years, 11 months ago (2015-01-12 19:29:55 UTC) #10
Xianzhu
Julien, I'm landing this patch as I think your comment has been addressed. The bug ...
5 years, 11 months ago (2015-01-12 19:31:19 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-12 20:38:53 UTC) #12
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188245

Powered by Google App Engine
This is Rietveld 408576698