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

Issue 1964203004: Helper method for non-direct beforeChild in LayoutBlock::addChild(). (Closed)

Created:
4 years, 7 months ago by mstensho (USE GERRIT)
Modified:
4 years, 7 months ago
Reviewers:
wkorman, eae, szager1
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Helper method for non-direct beforeChild in LayoutBlock::addChild(). A lot of what's in LayoutBlock::addChild() will eventually be moved down to LayoutBlockFlow::addChild(), but both classes are expected to handle insertion of children before a non-direct beforeChild. One difference, compared to how it used to work when all of this was inside addChild(), is that it's no longer allowed to continue if we fail to find a suitable direct beforeChild replacement. Will always RELEASE_ASSERT() in such situations now. BUG=302024 Committed: https://crrev.com/cfc78f790b9ad78c5b3575195f6c16295f09f898 Cr-Commit-Position: refs/heads/master@{#393201}

Patch Set 1 #

Patch Set 2 : Fix broken test. Use RELEASE_ASSERT. Back out unnecessary change. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -40 lines) Patch
M third_party/WebKit/Source/core/layout/LayoutBlock.h View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBlock.cpp View 1 1 chunk +47 lines, -38 lines 2 comments Download
M third_party/WebKit/Source/core/layout/LayoutMultiColumnFlowThreadTest.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 14 (7 generated)
mstensho (USE GERRIT)
ptal https://codereview.chromium.org/1964203004/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1964203004/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode390 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:390: RELEASE_ASSERT(beforeDescendantContainer->isAnonymous()); Here's a difference. We previously allowed this ...
4 years, 7 months ago (2016-05-11 21:06:00 UTC) #3
eae
LGTM https://codereview.chromium.org/1964203004/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp File third_party/WebKit/Source/core/layout/LayoutBlock.cpp (right): https://codereview.chromium.org/1964203004/diff/20001/third_party/WebKit/Source/core/layout/LayoutBlock.cpp#newcode390 third_party/WebKit/Source/core/layout/LayoutBlock.cpp:390: RELEASE_ASSERT(beforeDescendantContainer->isAnonymous()); On 2016/05/11 21:06:00, mstensho wrote: > Here's ...
4 years, 7 months ago (2016-05-11 21:10:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1964203004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1964203004/20001
4 years, 7 months ago (2016-05-11 21:11:02 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/220115)
4 years, 7 months ago (2016-05-11 23:32:18 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1964203004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1964203004/20001
4 years, 7 months ago (2016-05-12 05:13:03 UTC) #10
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 7 months ago (2016-05-12 07:38:56 UTC) #12
commit-bot: I haz the power
4 years, 7 months ago (2016-05-12 07:41:14 UTC) #14
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/cfc78f790b9ad78c5b3575195f6c16295f09f898
Cr-Commit-Position: refs/heads/master@{#393201}

Powered by Google App Engine
This is Rietveld 408576698