Commit 3a8d44bd authored by mstensho's avatar mstensho Committed by Commit bot

Let LayoutNG handle childless block flows.

The fact that they are marked with childrenInline() doesn't matter if they have
no children.

BUG=635619

Review-Url: https://codereview.chromium.org/2320393002
Cr-Commit-Position: refs/heads/master@{#417543}
parent 035e5f84
......@@ -132,8 +132,9 @@ void NGBox::PositionUpdated() {
bool NGBox::CanUseNewLayout() {
if (!layout_box_)
return true;
if (layout_box_->isLayoutBlockFlow() && !layout_box_->childrenInline())
return true;
return false;
if (!layout_box_->isLayoutBlockFlow())
return false;
const LayoutBlockFlow* block_flow = toLayoutBlockFlow(layout_box_);
return !block_flow->childrenInline() || !block_flow->firstChild();
}
} // namespace blink
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment