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

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

Issue 2767793002: Merge LayoutNGInline into LayoutNG runtime enabled feature (Closed)
Patch Set: Created 3 years, 9 months 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
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 af0c901f543b1fc38621638228709ac0ae77d1d7..d1520dfe3945f59a03bd0dfc8f2116cae5eea233 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
@@ -199,8 +199,7 @@ DEFINE_TRACE(NGBlockNode) {
bool NGBlockNode::CanUseNewLayout() {
if (!layout_box_->isLayoutBlockFlow())
return false;
- return RuntimeEnabledFeatures::layoutNGInlineEnabled() ||
- !HasInlineChildren();
+ return RuntimeEnabledFeatures::layoutNGEnabled() || !HasInlineChildren();
cbiesinger1 2017/03/21 23:07:11 You can now always return true here. This code is
}
bool NGBlockNode::HasInlineChildren() {

Powered by Google App Engine
This is Rietveld 408576698