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

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

Issue 2880993004: [LayoutNG] Fixes small crash inside preferred widths. (Closed)
Patch Set: ng-bot2 Created 3 years, 6 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
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | 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 8af4036ef3099fc23e31ffdf24e380de270ef556..f0f2bcd7966ceead00d42f09030b3b7d0c44b32b 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
@@ -228,8 +228,9 @@ bool NGBlockNode::CanUseNewLayout() const {
if (Style().SpecifiesColumns())
return false;
- if (!box_->IsLayoutBlockFlow())
+ if (!box_->IsLayoutNGBlockFlow())
return false;
+
return RuntimeEnabledFeatures::LayoutNGEnabled();
}
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698