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

Unified Diff: third_party/WebKit/Source/core/layout/ng/ng_block_node.cc

Issue 2535533002: [LayoutNG] Simplify NGBox::CanUseNewLayout(). (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
index d6bc5e3f8824bed3265ef62a3cc9ea639b6292f9..e8b6f837495585c4264546be1509d2a29dc2deef 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_node.cc
@@ -229,11 +229,8 @@ bool NGBlockNode::CanUseNewLayout() {
return true;
if (!layout_box_->isLayoutBlockFlow())
return false;
- if (RuntimeEnabledFeatures::layoutNGInlineEnabled())
- return true;
- if (HasInlineChildren())
- return false;
- return true;
+ return RuntimeEnabledFeatures::layoutNGInlineEnabled() ||
+ !HasInlineChildren();
}
bool NGBlockNode::HasInlineChildren() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698