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

Unified Diff: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h

Issue 2542843002: Changed EPointerEvents to an enum class and renamed its members to keywords (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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
index 6f80b12fb2b7392860d9d47cd03552cf13daef49..4b4545ab4736ae9802e7daef93eb9dc3b78ef2f3 100644
--- a/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h
@@ -3105,37 +3105,37 @@ template <>
inline CSSIdentifierValue::CSSIdentifierValue(EPointerEvents e)
: CSSValue(IdentifierClass) {
switch (e) {
- case PE_NONE:
+ case EPointerEvents::PE_NONE:
m_valueID = CSSValueNone;
break;
- case PE_STROKE:
+ case EPointerEvents::PE_STROKE:
m_valueID = CSSValueStroke;
break;
- case PE_FILL:
+ case EPointerEvents::PE_FILL:
m_valueID = CSSValueFill;
break;
- case PE_PAINTED:
+ case EPointerEvents::PE_PAINTED:
m_valueID = CSSValuePainted;
break;
- case PE_VISIBLE:
+ case EPointerEvents::PE_VISIBLE:
m_valueID = CSSValueVisible;
break;
- case PE_VISIBLE_STROKE:
+ case EPointerEvents::PE_VISIBLE_STROKE:
m_valueID = CSSValueVisibleStroke;
break;
- case PE_VISIBLE_FILL:
+ case EPointerEvents::PE_VISIBLE_FILL:
m_valueID = CSSValueVisibleFill;
break;
- case PE_VISIBLE_PAINTED:
+ case EPointerEvents::PE_VISIBLE_PAINTED:
m_valueID = CSSValueVisiblePainted;
break;
- case PE_AUTO:
+ case EPointerEvents::PE_AUTO:
m_valueID = CSSValueAuto;
break;
- case PE_ALL:
+ case EPointerEvents::PE_ALL:
m_valueID = CSSValueAll;
break;
- case PE_BOUNDINGBOX:
+ case EPointerEvents::PE_BOUNDINGBOX:
m_valueID = CSSValueBoundingBox;
break;
}
@@ -3145,33 +3145,33 @@ template <>
inline EPointerEvents CSSIdentifierValue::convertTo() const {
switch (m_valueID) {
case CSSValueAll:
- return PE_ALL;
+ return EPointerEvents::PE_ALL;
case CSSValueAuto:
- return PE_AUTO;
+ return EPointerEvents::PE_AUTO;
case CSSValueNone:
- return PE_NONE;
+ return EPointerEvents::PE_NONE;
case CSSValueVisiblePainted:
- return PE_VISIBLE_PAINTED;
+ return EPointerEvents::PE_VISIBLE_PAINTED;
case CSSValueVisibleFill:
- return PE_VISIBLE_FILL;
+ return EPointerEvents::PE_VISIBLE_FILL;
case CSSValueVisibleStroke:
- return PE_VISIBLE_STROKE;
+ return EPointerEvents::PE_VISIBLE_STROKE;
case CSSValueVisible:
- return PE_VISIBLE;
+ return EPointerEvents::PE_VISIBLE;
case CSSValuePainted:
- return PE_PAINTED;
+ return EPointerEvents::PE_PAINTED;
case CSSValueFill:
- return PE_FILL;
+ return EPointerEvents::PE_FILL;
case CSSValueStroke:
- return PE_STROKE;
+ return EPointerEvents::PE_STROKE;
case CSSValueBoundingBox:
- return PE_BOUNDINGBOX;
+ return EPointerEvents::PE_BOUNDINGBOX;
default:
break;
}
ASSERT_NOT_REACHED();
- return PE_ALL;
+ return EPointerEvents::PE_ALL;
}
template <>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698