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

Issue 2429113002: Don't update height in LayoutBlock::markFixedPositionObjectForLayoutIfNeeded. (Closed)

Created:
4 years, 2 months ago by skobes
Modified:
4 years, 1 month ago
CC:
chromium-reviews, szager+layoutwatch_chromium.org, zoltan1, blink-reviews-layout_chromium.org, pdr+renderingwatchlist_chromium.org, eae+blinkwatch, leviw+renderwatch, jchaffraix+rendering, blink-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Don't update height in LayoutBlock::markFixedPositionObjectForLayoutIfNeeded. This prevented LayoutBlockFlow::layoutBlockFlow from seeing that the height had changed. As a result, it failed to set relayoutChildren = true. The bug affects fixed-pos objects in abs-pos containers, so it got worse with http://crrev.com/1172153004 but existed before. An equivalent patch for width was made in http://crrev.com/171463003. Additionally, update the early return for the case where the abs-pos container is the LayoutView. (This is just an optimization.) BUG=640639 Committed: https://crrev.com/1abcf254f3e55be39879ca76d268192faf64a254 Cr-Commit-Position: refs/heads/master@{#426515}

Patch Set 1 #

Total comments: 4

Patch Set 2 : address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -11 lines) Patch
A third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html View 1 1 chunk +38 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 3 chunks +12 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 2 chunks +8 lines, -3 lines 0 comments Download

Messages

Total messages: 26 (19 generated)
skobes
4 years, 2 months ago (2016-10-19 15:20:39 UTC) #12
mstensho (USE GERRIT)
https://chromiumcodereview.appspot.com/2429113002/diff/1/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html File third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html (right): https://chromiumcodereview.appspot.com/2429113002/diff/1/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html#newcode36 third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html:36: assert_equals(box.offsetTop, 350); This value depends on the viewport height, ...
4 years, 2 months ago (2016-10-19 18:24:30 UTC) #14
skobes
https://codereview.chromium.org/2429113002/diff/1/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html File third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html (right): https://codereview.chromium.org/2429113002/diff/1/third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html#newcode36 third_party/WebKit/LayoutTests/fast/block/positioning/fixed-in-abs-height-change.html:36: assert_equals(box.offsetTop, 350); On 2016/10/19 18:24:30, mstensho wrote: > This ...
4 years, 2 months ago (2016-10-19 21:48:40 UTC) #17
mstensho (USE GERRIT)
lgtm, nice test improvement!
4 years, 2 months ago (2016-10-20 08:58:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2429113002/20001
4 years, 2 months ago (2016-10-20 16:58:24 UTC) #22
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-10-20 17:17:44 UTC) #24
commit-bot: I haz the power
4 years, 1 month ago (2016-10-21 13:19:34 UTC) #26
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/1abcf254f3e55be39879ca76d268192faf64a254
Cr-Commit-Position: refs/heads/master@{#426515}

Powered by Google App Engine
This is Rietveld 408576698