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

Side by Side Diff: Source/core/css/parser/CSSPropertyParser.cpp

Issue 336693005: Add image-rendering: pixelated. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * Copyright (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 5 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> 6 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2012 Adobe Systems Incorporated. All rights reserved.
9 * Copyright (C) 2012 Intel Corporation. All rights reserved. 9 * Copyright (C) 2012 Intel Corporation. All rights reserved.
10 * 10 *
(...skipping 8132 matching lines...) Expand 10 before | Expand all | Expand 10 after
8143 validPrimitive = (!id && validUnit(value, FNumber | FPercent, SVGAttribu teMode)); 8143 validPrimitive = (!id && validUnit(value, FNumber | FPercent, SVGAttribu teMode));
8144 break; 8144 break;
8145 8145
8146 case CSSPropertyShapeRendering: 8146 case CSSPropertyShapeRendering:
8147 // auto | optimizeSpeed | crispEdges | geometricPrecision | inherit 8147 // auto | optimizeSpeed | crispEdges | geometricPrecision | inherit
8148 if (id == CSSValueAuto || id == CSSValueOptimizespeed 8148 if (id == CSSValueAuto || id == CSSValueOptimizespeed
8149 || id == CSSValueCrispedges || id == CSSValueGeometricprecision) 8149 || id == CSSValueCrispedges || id == CSSValueGeometricprecision)
8150 validPrimitive = true; 8150 validPrimitive = true;
8151 break; 8151 break;
8152 8152
8153 case CSSPropertyImageRendering: // auto | optimizeSpeed | 8153 case CSSPropertyImageRendering: // auto | optimizeSpeed | pixelated
8154 if (RuntimeEnabledFeatures::imageRenderingPixelatedEnabled() && id == CS SValuePixelated) {
8155 validPrimitive = true;
8156 break;
8157 }
8158 // Otherwise same as below.
pdr. 2014/06/13 03:21:14 Nit: No need for this comment.
jackhou 2014/06/13 03:33:19 Done.
8154 case CSSPropertyColorRendering: // optimizeQuality | inherit 8159 case CSSPropertyColorRendering: // optimizeQuality | inherit
8155 if (id == CSSValueAuto || id == CSSValueOptimizespeed 8160 if (id == CSSValueAuto || id == CSSValueOptimizespeed
8156 || id == CSSValueOptimizequality) 8161 || id == CSSValueOptimizequality)
8157 validPrimitive = true; 8162 validPrimitive = true;
8158 break; 8163 break;
8159 8164
8160 case CSSPropertyBufferedRendering: // auto | dynamic | static 8165 case CSSPropertyBufferedRendering: // auto | dynamic | static
8161 if (id == CSSValueAuto || id == CSSValueDynamic || id == CSSValueStatic) 8166 if (id == CSSValueAuto || id == CSSValueDynamic || id == CSSValueStatic)
8162 validPrimitive = true; 8167 validPrimitive = true;
8163 break; 8168 break;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
8417 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); 8422 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill));
8418 if (!seenStroke) 8423 if (!seenStroke)
8419 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) ); 8424 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) );
8420 if (!seenMarkers) 8425 if (!seenMarkers)
8421 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers )); 8426 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers ));
8422 8427
8423 return parsedValues.release(); 8428 return parsedValues.release();
8424 } 8429 }
8425 8430
8426 } // namespace WebCore 8431 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698