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

Issue 2046863006: Dirty line boxes correctly when a float gets layout (Closed)

Created:
4 years, 6 months ago by rhogan
Modified:
4 years, 6 months ago
Reviewers:
cbiesinger, eae
CC:
blink-reviews, blink-reviews-layout_chromium.org, chromium-reviews, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@618230
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Dirty line boxes correctly when a float gets layout https://codereview.chromium.org/1308433003 was still not right. Revert to using dirtyLinesFromChangedChild() but confine it to searching for lineboxes within the object. BUG=616167 Committed: https://crrev.com/5db9460f869b506fd00f88ce74d60bd23d5f761a Cr-Commit-Position: refs/heads/master@{#400248}

Patch Set 1 #

Patch Set 2 : Updated #

Total comments: 2

Patch Set 3 : Updated #

Patch Set 4 : Updated #

Total comments: 1

Patch Set 5 : Updated #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -101 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/float-should-dirty-line-even-when-it-doesnt-intersect-it.html View 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/float-should-dirty-line-even-when-it-doesnt-intersect-it-2.html View 1 chunk +25 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/float-should-dirty-line-even-when-it-doesnt-intersect-it-2-expected.html View 1 chunk +13 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/float-should-dirty-line-even-when-it-doesnt-intersect-it-3.html View 1 chunk +27 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/float-should-dirty-line-even-when-it-doesnt-intersect-it-3-expected.html View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/block/float/float-should-dirty-line-even-when-it-doesnt-intersect-it-expected.html View 1 chunk +10 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/block/do-not-strip-anonymous-blocks-when-block-child-becomes-float-and-other-block-on-line-expected.txt View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-10-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-10-expected.txt View 4 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-3-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-3-expected.txt View 6 chunks +25 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-4-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-4-expected.txt View 5 chunks +25 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-5-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-5-expected.txt View 4 chunks +13 lines, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-6-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-6-expected.txt View 5 chunks +4 lines, -20 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-9-expected.png View Binary file 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/repaint/line-flow-with-floats-9-expected.txt View 8 chunks +1 line, -65 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlow.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutInline.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutObject.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/api/LineLayoutItem.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineBoxList.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/line/LineBoxList.cpp View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
rhogan
4 years, 6 months ago (2016-06-09 19:46:01 UTC) #2
cbiesinger
eae, I'll leave this review to you as you know line layout better, but I ...
4 years, 6 months ago (2016-06-09 23:03:36 UTC) #3
eae
https://codereview.chromium.org/2046863006/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/2046863006/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1598 third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp:1598: setAncestorLineBoxDirty(ancestorLineBoxWasDirty); Shouldn't this be setAncestorLineBoxDirty(ancestorLineBoxWasDirty || ancestorLineBoxDirty())?
4 years, 6 months ago (2016-06-10 06:20:41 UTC) #4
rhogan
https://codereview.chromium.org/2046863006/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp File third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp (right): https://codereview.chromium.org/2046863006/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp#newcode1598 third_party/WebKit/Source/core/layout/LayoutBlockFlowLine.cpp:1598: setAncestorLineBoxDirty(ancestorLineBoxWasDirty); On 2016/06/10 at 06:20:41, eae wrote: > Shouldn't ...
4 years, 6 months ago (2016-06-10 17:25:13 UTC) #5
rhogan
https://codereview.chromium.org/2046863006/diff/60001/third_party/WebKit/Source/core/layout/line/LineBoxList.h File third_party/WebKit/Source/core/layout/line/LineBoxList.h (right): https://codereview.chromium.org/2046863006/diff/60001/third_party/WebKit/Source/core/layout/line/LineBoxList.h#newcode79 third_party/WebKit/Source/core/layout/line/LineBoxList.h:79: void dirtyLinesFromChangedChild(LineLayoutItem parent, LineLayoutItem child, bool canDirtyAncestors); I used ...
4 years, 6 months ago (2016-06-14 19:45:00 UTC) #6
rhogan
On 2016/06/14 at 19:45:00, rhogan wrote: > https://codereview.chromium.org/2046863006/diff/60001/third_party/WebKit/Source/core/layout/line/LineBoxList.h > File third_party/WebKit/Source/core/layout/line/LineBoxList.h (right): > > https://codereview.chromium.org/2046863006/diff/60001/third_party/WebKit/Source/core/layout/line/LineBoxList.h#newcode79 ...
4 years, 6 months ago (2016-06-15 19:04:29 UTC) #7
eae
Thanks! This looks correct, thanks for the clarification, LGTM
4 years, 6 months ago (2016-06-16 15:03:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046863006/60001
4 years, 6 months ago (2016-06-16 15:03:49 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/201787)
4 years, 6 months ago (2016-06-16 15:11:06 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2046863006/80001
4 years, 6 months ago (2016-06-16 18:01:43 UTC) #15
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 6 months ago (2016-06-16 20:21:48 UTC) #16
commit-bot: I haz the power
4 years, 6 months ago (2016-06-16 20:24:02 UTC) #18
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/5db9460f869b506fd00f88ce74d60bd23d5f761a
Cr-Commit-Position: refs/heads/master@{#400248}

Powered by Google App Engine
This is Rietveld 408576698