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

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

Issue 2633633003: Changed EInsideLink to an enum class with an unsigned type. (Closed)
Patch Set: Rebase. 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..261bc9be1f6e3dabcc34f0d2f167b9e1b7e71406 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -301,7 +301,8 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
ComputedStyleBase::setBitDefaults();
m_inheritedData.m_hasSimpleUnderline = false;
m_inheritedData.m_cursorStyle = static_cast<unsigned>(initialCursor());
- m_inheritedData.m_insideLink = NotInsideLink;
+ m_inheritedData.m_insideLink =
+ static_cast<unsigned>(EInsideLink::kNotInsideLink);
m_nonInheritedData.m_effectiveDisplay =
m_nonInheritedData.m_originalDisplay =
@@ -2592,7 +2593,7 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
return static_cast<EInsideLink>(m_inheritedData.m_insideLink);
}
void setInsideLink(EInsideLink insideLink) {
- m_inheritedData.m_insideLink = insideLink;
+ m_inheritedData.m_insideLink = static_cast<unsigned>(insideLink);
}
bool hasExplicitlyInheritedProperties() const {

Powered by Google App Engine
This is Rietveld 408576698