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

Issue 1268493002: Unify code paths for fixed and absolutely positioned objects in accumulateOffsetTowardsAncestor(). (Closed)

Created:
5 years, 4 months ago by mstensho (USE GERRIT)
Modified:
5 years, 4 months ago
CC:
blink-reviews, blink-reviews-paint_chromium.org, dshwang, mstensho (USE GERRIT), slimming-paint-reviews_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Unify code paths for fixed and absolutely positioned objects in accumulateOffsetTowardsAncestor(). Deleted most of the code specific to handling of fixed-positioned objects, and have fixed-positioned objects use the code for absolutely positioned objects instead. One piece needs to be kept, though: If the container of a fixed positioned object is the viewport, we need to make sure that we call LayoutObject::localToAbsolute() to calculate the correct position, since DeprecatedPaintLayer::location() doesn't handle fixed-positioning properly. This gets rid of an assertion failure that would trigger when we had a multicol with a transform with a fixedpos. BUG=496929 R=chrishtr@chromium.org,jchaffraix@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199725

Patch Set 1 #

Total comments: 6

Patch Set 2 : Make a reftest instead. #

Patch Set 3 : Fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -48 lines) Patch
A LayoutTests/fast/multicol/transform-with-fixedpos.html View 1 1 chunk +9 lines, -0 lines 0 comments Download
A LayoutTests/fast/multicol/transform-with-fixedpos-expected.html View 1 1 chunk +4 lines, -0 lines 0 comments Download
M Source/core/paint/DeprecatedPaintLayer.cpp View 1 2 2 chunks +4 lines, -48 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
mstensho (USE GERRIT)
Just couldn't figure out why we would need (let alone want) separate code paths for ...
5 years, 4 months ago (2015-07-29 19:11:25 UTC) #1
Julien - ping for review
lgtm Yay to unifying! https://codereview.chromium.org/1268493002/diff/1/LayoutTests/fast/multicol/transform-with-fixedpos-crash.html File LayoutTests/fast/multicol/transform-with-fixedpos-crash.html (right): https://codereview.chromium.org/1268493002/diff/1/LayoutTests/fast/multicol/transform-with-fixedpos-crash.html#newcode6 LayoutTests/fast/multicol/transform-with-fixedpos-crash.html:6: <p>PASS if no crash or ...
5 years, 4 months ago (2015-07-29 23:10:52 UTC) #2
mstensho (USE GERRIT)
https://codereview.chromium.org/1268493002/diff/1/LayoutTests/fast/multicol/transform-with-fixedpos-crash.html File LayoutTests/fast/multicol/transform-with-fixedpos-crash.html (right): https://codereview.chromium.org/1268493002/diff/1/LayoutTests/fast/multicol/transform-with-fixedpos-crash.html#newcode6 LayoutTests/fast/multicol/transform-with-fixedpos-crash.html:6: <p>PASS if no crash or assertion failure.</p> On 2015/07/29 ...
5 years, 4 months ago (2015-07-30 09:32:07 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1268493002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1268493002/40001
5 years, 4 months ago (2015-07-30 09:32:40 UTC) #6
commit-bot: I haz the power
5 years, 4 months ago (2015-07-30 10:34:51 UTC) #7
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=199725

Powered by Google App Engine
This is Rietveld 408576698