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

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

Issue 14612004: Remove CURSOR_VISIBILITY, it's always off (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix UseCounter Created 7 years, 8 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
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSProperty.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValueMappings.h
diff --git a/Source/core/css/CSSPrimitiveValueMappings.h b/Source/core/css/CSSPrimitiveValueMappings.h
index be8e24c005ed0984c837ced469920305a91fe2f0..9c565ec506a3e285ca547a4d8bc68a353922f347 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -1151,34 +1151,6 @@ template<> inline CSSPrimitiveValue::operator ECursor() const
return static_cast<ECursor>(m_value.ident - CSSValueAuto);
}
-
-#if ENABLE(CURSOR_VISIBILITY)
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(CursorVisibility e)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_IDENT;
- switch (e) {
- case CursorVisibilityAuto:
- m_value.ident = CSSValueAuto;
- break;
- case CursorVisibilityAutoHide:
- m_value.ident = CSSValueAutoHide;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator CursorVisibility() const
-{
- if (m_value.ident == CSSValueAuto)
- return CursorVisibilityAuto;
- if (m_value.ident == CSSValueAutoHide)
- return CursorVisibilityAutoHide;
-
- ASSERT_NOT_REACHED();
- return CursorVisibilityAuto;
-}
-#endif
-
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(EDisplay e)
: CSSValue(PrimitiveClass)
{
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSProperty.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698