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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2908933002: Make PageSizeType an enum class. (Closed)
Patch Set: Created 3 years, 7 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/dom/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 4f428b56ad24d5b1e19a8efa7d18ff9c1309022d..ccd9ac75e34a599aa700678b2c043c81f18c388d 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -2429,17 +2429,17 @@ void Document::PageSizeAndMarginsInPixels(int page_index,
double width = page_size.Width();
double height = page_size.Height();
switch (style->GetPageSizeType()) {
- case PAGE_SIZE_AUTO:
+ case PageSizeType::kAuto:
break;
- case PAGE_SIZE_AUTO_LANDSCAPE:
+ case PageSizeType::kLandscape:
if (width < height)
std::swap(width, height);
break;
- case PAGE_SIZE_AUTO_PORTRAIT:
+ case PageSizeType::kPortrait:
if (width > height)
std::swap(width, height);
break;
- case PAGE_SIZE_RESOLVED: {
+ case PageSizeType::kResolved: {
FloatSize size = style->PageSize();
width = size.Width();
height = size.Height();

Powered by Google App Engine
This is Rietveld 408576698