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

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

Issue 2653123002: Changed EClear to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 3 years, 11 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 cfbeae94cffe846d35f55b189e36f21ecacd8be2..e41fcf817a8203b5f30ff46d9b332f3fcb2ef371 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
@@ -43,15 +43,15 @@ void AdjustToClearance(const NGConstraintSpace& space,
right_exclusion ? right_exclusion->rect.BlockEndOffset() : *content_size;
switch (style.clear()) {
- case EClear::ClearNone:
+ case EClear::kNone:
return; // nothing to do here.
- case EClear::ClearLeft:
+ case EClear::kLeft:
*content_size = left_block_end_offset;
break;
- case EClear::ClearRight:
+ case EClear::kRight:
*content_size = right_block_end_offset;
break;
- case EClear::ClearBoth:
+ case EClear::kBoth:
*content_size = std::max(left_block_end_offset, right_block_end_offset);
break;
default:

Powered by Google App Engine
This is Rietveld 408576698