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

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

Issue 2380233002: Changed EListStylePosition to an enum class and renamed its members to keywords (Closed)
Patch Set: Rebase Created 4 years, 2 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 fe586c81d8a6206e5948805791cbc87093c241d1..64da9e9c7e85cfa62458071f3504d6137949db7d 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -354,7 +354,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
m_inheritedData.m_emptyCells = static_cast<unsigned>(initialEmptyCells());
m_inheritedData.m_captionSide = static_cast<unsigned>(initialCaptionSide());
m_inheritedData.m_listStyleType = initialListStyleType();
- m_inheritedData.m_listStylePosition = initialListStylePosition();
+ m_inheritedData.m_listStylePosition =
+ static_cast<unsigned>(initialListStylePosition());
m_inheritedData.m_textAlign = initialTextAlign();
m_inheritedData.m_textTransform = initialTextTransform();
m_inheritedData.m_textUnderline = false;
@@ -2118,13 +2119,13 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// list-style-position
static EListStylePosition initialListStylePosition() {
- return ListStylePositionOutside;
+ return EListStylePosition::Outside;
}
EListStylePosition listStylePosition() const {
return static_cast<EListStylePosition>(m_inheritedData.m_listStylePosition);
}
void setListStylePosition(EListStylePosition v) {
- m_inheritedData.m_listStylePosition = v;
+ m_inheritedData.m_listStylePosition = static_cast<unsigned>(v);
}
// list-style-image

Powered by Google App Engine
This is Rietveld 408576698