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

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

Issue 16357011: Remove support for -webkit-color-correction (which we've never supported on (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: resolve merge conflicts, obey brace style changes Created 7 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
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSProperties.in » ('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 f2cac71285e45cc32162af578232eeb36f1e792f..61c26050cd173d40f7a66b36a81f7b8c0db5a7b4 100644
--- a/Source/core/css/CSSPrimitiveValueMappings.h
+++ b/Source/core/css/CSSPrimitiveValueMappings.h
@@ -34,7 +34,6 @@
#include "core/css/CSSCalculationValue.h"
#include "core/css/CSSPrimitiveValue.h"
#include "core/css/CSSReflectionDirection.h"
-#include "core/platform/graphics/ColorSpace.h"
#include "core/platform/graphics/FontDescription.h"
#include "core/platform/graphics/FontSmoothingMode.h"
#include "core/platform/graphics/GraphicsTypes.h"
@@ -3371,38 +3370,6 @@ template<> inline CSSPrimitiveValue::operator TextRenderingMode() const
return AutoTextRendering;
}
-template<> inline CSSPrimitiveValue::CSSPrimitiveValue(ColorSpace space)
- : CSSValue(PrimitiveClass)
-{
- m_primitiveUnitType = CSS_IDENT;
- switch (space) {
- case ColorSpaceDeviceRGB:
- m_value.ident = CSSValueDefault;
- break;
- case ColorSpaceSRGB:
- m_value.ident = CSSValueSrgb;
- break;
- case ColorSpaceLinearRGB:
- // CSS color correction does not support linearRGB yet.
- ASSERT_NOT_REACHED();
- m_value.ident = CSSValueDefault;
- break;
- }
-}
-
-template<> inline CSSPrimitiveValue::operator ColorSpace() const
-{
- switch (m_value.ident) {
- case CSSValueDefault:
- return ColorSpaceDeviceRGB;
- case CSSValueSrgb:
- return ColorSpaceSRGB;
- }
-
- ASSERT_NOT_REACHED();
- return ColorSpaceDeviceRGB;
-}
-
template<> inline CSSPrimitiveValue::CSSPrimitiveValue(Hyphens hyphens)
: CSSValue(PrimitiveClass)
{
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSProperties.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698