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

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

Issue 980233002: [svg2] Make 'cx', 'cy' and 'r' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 9 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
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 8108 matching lines...) Expand 10 before | Expand all | Expand 10 after
8119 if (id == CSSValueNone) 8119 if (id == CSSValueNone)
8120 validPrimitive = true; 8120 validPrimitive = true;
8121 else 8121 else
8122 parsedValue = parseSVGStrokeDasharray(); 8122 parsedValue = parseSVGStrokeDasharray();
8123 break; 8123 break;
8124 8124
8125 case CSSPropertyMaskType: // luminance | alpha | inherit 8125 case CSSPropertyMaskType: // luminance | alpha | inherit
8126 if (id == CSSValueLuminance || id == CSSValueAlpha) 8126 if (id == CSSValueLuminance || id == CSSValueAlpha)
8127 validPrimitive = true; 8127 validPrimitive = true;
8128 break; 8128 break;
8129 case CSSPropertyCx:
8130 case CSSPropertyCy:
8129 case CSSPropertyX: 8131 case CSSPropertyX:
8130 case CSSPropertyY: 8132 case CSSPropertyY:
8133 case CSSPropertyR:
8131 case CSSPropertyRx: 8134 case CSSPropertyRx:
8132 case CSSPropertyRy: 8135 case CSSPropertyRy:
8133 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu teMode)); 8136 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu teMode));
8134 break; 8137 break;
8135 8138
8136 /* shorthand properties */ 8139 /* shorthand properties */
8137 case CSSPropertyMarker: { 8140 case CSSPropertyMarker: {
8138 ShorthandScope scope(this, propId); 8141 ShorthandScope scope(this, propId);
8139 CSSPropertyParser::ImplicitScope implicitScope(this); 8142 CSSPropertyParser::ImplicitScope implicitScope(this);
8140 if (!parseValue(CSSPropertyMarkerStart, important)) 8143 if (!parseValue(CSSPropertyMarkerStart, important))
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
8494 } 8497 }
8495 } 8498 }
8496 8499
8497 if (!list->length()) 8500 if (!list->length())
8498 return nullptr; 8501 return nullptr;
8499 8502
8500 return list.release(); 8503 return list.release();
8501 } 8504 }
8502 8505
8503 } // namespace blink 8506 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/parser/CSSParserFastPaths.cpp ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698