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

Unified Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 9823d00a0dcc8a64af401490b4aef5d22413a90f..f8187ce3362495b65d9340a8a9fe4711b790de3a 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1442,7 +1442,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
SET_VAR(rare_non_inherited_data_, page_size_, s);
}
void SetPageSizeType(PageSizeType t) {
- SET_VAR(rare_non_inherited_data_, page_size_type_, t);
+ SET_VAR(rare_non_inherited_data_, page_size_type_,
+ static_cast<unsigned>(t));
}
// Text decoration properties.
@@ -3052,7 +3053,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase<ComputedStyle>,
// Page size utility functions.
void ResetPageSizeType() {
- SET_VAR(rare_non_inherited_data_, page_size_type_, PAGE_SIZE_AUTO);
+ SET_VAR(rare_non_inherited_data_, page_size_type_,
+ static_cast<unsigned>(PageSizeType::kAuto));
}
// Outline utility functions.
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698