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

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

Issue 339963002: Remove SVG paint order runtime flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix 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 unified diff | Download patch
« no previous file with comments | « Source/core/css/RuntimeCSSEnabled.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8238 matching lines...) Expand 10 before | Expand all | Expand 10 after
8249 } else { // TODO : svgcolor (iccColor) 8249 } else { // TODO : svgcolor (iccColor)
8250 parsedValue = parseColor(); 8250 parsedValue = parseColor();
8251 } 8251 }
8252 8252
8253 if (parsedValue) 8253 if (parsedValue)
8254 m_valueList->next(); 8254 m_valueList->next();
8255 8255
8256 break; 8256 break;
8257 8257
8258 case CSSPropertyPaintOrder: 8258 case CSSPropertyPaintOrder:
8259 if (!RuntimeEnabledFeatures::svgPaintOrderEnabled())
8260 return false;
8261
8262 if (m_valueList->size() == 1 && id == CSSValueNormal) 8259 if (m_valueList->size() == 1 && id == CSSValueNormal)
8263 validPrimitive = true; 8260 validPrimitive = true;
8264 else if ((parsedValue = parsePaintOrder())) 8261 else if ((parsedValue = parsePaintOrder()))
8265 m_valueList->next(); 8262 m_valueList->next();
8266 break; 8263 break;
8267 8264
8268 case CSSPropertyVectorEffect: // none | non-scaling-stroke | inherit 8265 case CSSPropertyVectorEffect: // none | non-scaling-stroke | inherit
8269 if (id == CSSValueNone || id == CSSValueNonScalingStroke) 8266 if (id == CSSValueNone || id == CSSValueNonScalingStroke)
8270 validPrimitive = true; 8267 validPrimitive = true;
8271 break; 8268 break;
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
8429 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill)); 8426 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueFill));
8430 if (!seenStroke) 8427 if (!seenStroke)
8431 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) ); 8428 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueStroke) );
8432 if (!seenMarkers) 8429 if (!seenMarkers)
8433 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers )); 8430 parsedValues->append(CSSPrimitiveValue::createIdentifier(CSSValueMarkers ));
8434 8431
8435 return parsedValues.release(); 8432 return parsedValues.release();
8436 } 8433 }
8437 8434
8438 } // namespace WebCore 8435 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/RuntimeCSSEnabled.cpp ('k') | Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698