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

Unified Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 336693005: Add image-rendering: pixelated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Update test. Created 6 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
Index: Source/core/css/parser/CSSPropertyParser.cpp
diff --git a/Source/core/css/parser/CSSPropertyParser.cpp b/Source/core/css/parser/CSSPropertyParser.cpp
index 4c3d25149345a119e48b66d79f01144bdcbaeba9..71ce3a1c50848baf810f3c3a97978688bcb82028 100644
--- a/Source/core/css/parser/CSSPropertyParser.cpp
+++ b/Source/core/css/parser/CSSPropertyParser.cpp
@@ -8150,7 +8150,11 @@ bool CSSPropertyParser::parseSVGValue(CSSPropertyID propId, bool important)
validPrimitive = true;
break;
- case CSSPropertyImageRendering: // auto | optimizeSpeed |
+ case CSSPropertyImageRendering: // auto | optimizeSpeed | pixelated
+ if (RuntimeEnabledFeatures::imageRenderingPixelatedEnabled() && id == CSSValuePixelated) {
+ validPrimitive = true;
+ break;
+ }
case CSSPropertyColorRendering: // optimizeQuality | inherit
if (id == CSSValueAuto || id == CSSValueOptimizespeed
|| id == CSSValueOptimizequality)

Powered by Google App Engine
This is Rietveld 408576698