| 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 026d7bde3f958322c119b0cb8ed96425fa6dd9bc..d8085c90e7ec7dddb05805c0d512fa0f77bdacd7 100644
|
| --- a/third_party/WebKit/Source/core/layout/ng/ng_box.cc
|
| +++ b/third_party/WebKit/Source/core/layout/ng/ng_box.cc
|
| @@ -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
|
|
|