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

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

Issue 2890733002: Make EBorderStyle an enum class. (Closed)
Patch Set: Build for Mac 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/OutlineValue.h
diff --git a/third_party/WebKit/Source/core/style/OutlineValue.h b/third_party/WebKit/Source/core/style/OutlineValue.h
index 5cbc5aa5d46c726ac9bc2e256debd5e77dfb63e0..82034e6b86d0ed87626c7de17a721278fe4dff68 100644
--- a/third_party/WebKit/Source/core/style/OutlineValue.h
+++ b/third_party/WebKit/Source/core/style/OutlineValue.h
@@ -45,7 +45,8 @@ class OutlineValue final : public BorderValue {
bool operator!=(const OutlineValue& o) const { return !(*this == o); }
bool VisuallyEqual(const OutlineValue& o) const {
- if (style_ == kBorderStyleNone && o.style_ == kBorderStyleNone)
+ if (style_ == static_cast<unsigned>(EBorderStyle::kNone) &&
+ o.style_ == static_cast<unsigned>(EBorderStyle::kNone))
return true;
return *this == o;
}
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyleTest.cpp ('k') | third_party/WebKit/Source/core/style/OutlineValueTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698