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

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

Issue 2667493002: Changed EPosition to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 10 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_layout_algorithm.cc
diff --git a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
index 0d92903cecd8964f77c6475e0d1b1b696c4b49fb..6ba7f392a61cb070e15a86b16f09aa204da1af70 100644
--- a/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
+++ b/third_party/WebKit/Source/core/layout/ng/ng_block_layout_algorithm.cc
@@ -430,7 +430,7 @@ RefPtr<NGPhysicalFragment> NGBlockLayoutAlgorithm::Layout() {
if (current_child_->Type() == NGLayoutInputNode::kLegacyBlock) {
NGBlockNode* current_block_child = toNGBlockNode(current_child_);
EPosition position = current_block_child->Style().position();
- if (position == AbsolutePosition || position == FixedPosition) {
+ if (position == EPosition::kAbsolute || position == EPosition::kFixed) {
builder_->AddOutOfFlowChildCandidate(current_block_child,
GetChildSpaceOffset());
current_child_ = current_block_child->NextSibling();

Powered by Google App Engine
This is Rietveld 408576698