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

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

Issue 2936113003: Make EIsolation an enum class. (Closed)
Patch Set: Fix code Created 3 years, 6 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 5f3cb9e0a2a9a204911be4b6a9b3dcb239b7ea8b..ff869fc1718e43d98105dfb0ab5c342739393d64 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1021,12 +1021,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// isolation
- static EIsolation InitialIsolation() { return kIsolationAuto; }
+ static EIsolation InitialIsolation() { return EIsolation::kAuto; }
EIsolation Isolation() const {
return static_cast<EIsolation>(rare_non_inherited_data_->isolation_);
}
void SetIsolation(EIsolation v) {
- rare_non_inherited_data_.Access()->isolation_ = v;
+ rare_non_inherited_data_.Access()->isolation_ = static_cast<unsigned>(v);
}
// -webkit-margin-before-collapse (aka -webkit-margin-top-collapse)
@@ -2947,7 +2947,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
bool IsDisplayFlexibleBox() const { return IsDisplayFlexibleBox(Display()); }
// Isolation utility functions.
- bool HasIsolation() const { return Isolation() != kIsolationAuto; }
+ bool HasIsolation() const { return Isolation() != EIsolation::kAuto; }
// Content utility functions.
bool HasContent() const { return GetContentData(); }
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSProperties.json5 ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698