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

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

Issue 2635143002: Changed EBoxSizing to an enum class and renamed its members (Closed)
Patch Set: Aded k prefix Created 3 years, 11 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 825e0e5fd7be9d75e7f6a0679674c4c4c12afb5b..6acf18433e0c0a833c95e5cdc101019be7f42631 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -758,9 +758,11 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
void setBoxShadow(PassRefPtr<ShadowList>);
// box-sizing (aka -webkit-box-sizing)
- static EBoxSizing initialBoxSizing() { return BoxSizingContentBox; }
+ static EBoxSizing initialBoxSizing() { return EBoxSizing::kContentBox; }
EBoxSizing boxSizing() const { return m_box->boxSizing(); }
- void setBoxSizing(EBoxSizing s) { SET_VAR(m_box, m_boxSizing, s); }
+ void setBoxSizing(EBoxSizing s) {
+ SET_VAR(m_box, m_boxSizing, static_cast<unsigned>(s));
+ }
// clear
static EClear initialClear() { return ClearNone; }

Powered by Google App Engine
This is Rietveld 408576698