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

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

Issue 2561973002: Changed EOverflowAnchor to an enum class and renamed its members (Closed)
Patch Set: 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/style/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 225dcbb2fea09328939f16314bf69bca5c2337fd..2f9c6cb6f2f9beb1e3a5189d2427cc7faf76a0e1 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -373,7 +373,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
m_nonInheritedData.m_effectiveDisplay =
m_nonInheritedData.m_originalDisplay =
static_cast<unsigned>(initialDisplay());
- m_nonInheritedData.m_overflowAnchor = initialOverflowAnchor();
+ m_nonInheritedData.m_overflowAnchor =
+ static_cast<unsigned>(initialOverflowAnchor());
m_nonInheritedData.m_overflowX = initialOverflowX();
m_nonInheritedData.m_overflowY = initialOverflowY();
m_nonInheritedData.m_verticalAlign = initialVerticalAlign();
@@ -1544,12 +1545,14 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
// Overflow properties.
// overflow-anchor
- static EOverflowAnchor initialOverflowAnchor() { return AnchorAuto; }
+ static EOverflowAnchor initialOverflowAnchor() {
+ return EOverflowAnchor::Auto;
+ }
EOverflowAnchor overflowAnchor() const {
return static_cast<EOverflowAnchor>(m_nonInheritedData.m_overflowAnchor);
}
void setOverflowAnchor(EOverflowAnchor v) {
- m_nonInheritedData.m_overflowAnchor = v;
+ m_nonInheritedData.m_overflowAnchor = static_cast<unsigned>(v);
}
// overflow-x

Powered by Google App Engine
This is Rietveld 408576698