| 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();
|
|
|