| Index: third_party/WebKit/Source/core/layout/ng/ng_box.cc
|
| diff --git a/third_party/WebKit/Source/core/layout/ng/ng_box.cc b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
|
| index 8fe304a5ad05878ebc01b75b3f24ab52320d11bc..13f790844a421e87d8c086081e50bbb862332853 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_box.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
|
| @@ -118,7 +118,13 @@ bool NGBox::CanUseNewLayout() {
|
| if (!layout_box_->isLayoutBlockFlow())
|
| return false;
|
| const LayoutBlockFlow* block_flow = toLayoutBlockFlow(layout_box_);
|
| - return !block_flow->childrenInline() || !block_flow->firstChild();
|
| + LayoutObject* child = block_flow->firstChild();
|
| + while (child) {
|
| + if (child->isInline())
|
| + return false;
|
| + child = child->nextSibling();
|
| + }
|
| + return true;
|
| }
|
|
|
| void NGBox::CopyFragmentDataToLayoutBox(
|
|
|