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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlock.cpp

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/LayoutBlock.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
index b826a3e0771feb27c2a01a0ab53f9e5245428e6c..c7f0f27d3ead0f40e91f6733e82661342a58b769 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlock.cpp
@@ -1495,13 +1495,13 @@ void LayoutBlock::computeBlockPreferredLogicalWidths(
if (child->isFloating() ||
(child->isBox() && toLayoutBox(child)->avoidsFloats())) {
LayoutUnit floatTotalWidth = floatLeftWidth + floatRightWidth;
- if (childStyle->clear() == ClearBoth ||
- childStyle->clear() == ClearLeft) {
+ if (childStyle->clear() == EClear::kBoth ||
+ childStyle->clear() == EClear::kLeft) {
maxLogicalWidth = std::max(floatTotalWidth, maxLogicalWidth);
floatLeftWidth = LayoutUnit();
}
- if (childStyle->clear() == ClearBoth ||
- childStyle->clear() == ClearRight) {
+ if (childStyle->clear() == EClear::kBoth ||
+ childStyle->clear() == EClear::kRight) {
maxLogicalWidth = std::max(floatTotalWidth, maxLogicalWidth);
floatRightWidth = LayoutUnit();
}

Powered by Google App Engine
This is Rietveld 408576698