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

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

Issue 2569013006: Changed EOverflow to an enum class and renamed its members (Closed)
Patch Set: Rebase Created 4 years 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/LayoutBox.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBox.cpp b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
index ae749332cb175fc9fb0dff0e53e2083c0c4bf687..6ef942cda397c54183555428e055ba4500c40749 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBox.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBox.cpp
@@ -929,14 +929,14 @@ void LayoutBox::computeSelfHitTestRects(Vector<LayoutRect>& rects,
}
int LayoutBox::verticalScrollbarWidth() const {
- if (!hasOverflowClip() || style()->overflowY() == OverflowOverlay)
+ if (!hasOverflowClip() || style()->overflowY() == EOverflow::Overlay)
return 0;
return getScrollableArea()->verticalScrollbarWidth();
}
int LayoutBox::horizontalScrollbarHeight() const {
- if (!hasOverflowClip() || style()->overflowX() == OverflowOverlay)
+ if (!hasOverflowClip() || style()->overflowX() == EOverflow::Overlay)
return 0;
return getScrollableArea()->horizontalScrollbarHeight();
@@ -3196,8 +3196,8 @@ LayoutUnit LayoutBox::computePercentageLogicalHeight(
// cases, but it is preferable to the alternative (sizing intrinsically
// and making the row end up too big).
LayoutTableCell* cell = toLayoutTableCell(cb);
- if (style()->overflowY() != OverflowVisible &&
- style()->overflowY() != OverflowHidden &&
+ if (style()->overflowY() != EOverflow::Visible &&
+ style()->overflowY() != EOverflow::Hidden &&
(!cell->style()->logicalHeight().isAuto() ||
!cell->table()->style()->logicalHeight().isAuto()))
return LayoutUnit();
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBox.h ('k') | third_party/WebKit/Source/core/layout/LayoutFlexibleBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698