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

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

Issue 955033002: [svg2] Make 'rx' and 'ry' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add tests Created 5 years, 10 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 8089 matching lines...) Expand 10 before | Expand all | Expand 10 after
8100 else 8100 else
8101 parsedValue = parseSVGStrokeDasharray(); 8101 parsedValue = parseSVGStrokeDasharray();
8102 break; 8102 break;
8103 8103
8104 case CSSPropertyMaskType: // luminance | alpha | inherit 8104 case CSSPropertyMaskType: // luminance | alpha | inherit
8105 if (id == CSSValueLuminance || id == CSSValueAlpha) 8105 if (id == CSSValueLuminance || id == CSSValueAlpha)
8106 validPrimitive = true; 8106 validPrimitive = true;
8107 break; 8107 break;
8108 case CSSPropertyX: 8108 case CSSPropertyX:
8109 case CSSPropertyY: 8109 case CSSPropertyY:
8110 case CSSPropertyRx:
8111 case CSSPropertyRy:
8110 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu teMode)); 8112 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu teMode));
8111 break; 8113 break;
8112 8114
8113 /* shorthand properties */ 8115 /* shorthand properties */
8114 case CSSPropertyMarker: { 8116 case CSSPropertyMarker: {
8115 ShorthandScope scope(this, propId); 8117 ShorthandScope scope(this, propId);
8116 CSSPropertyParser::ImplicitScope implicitScope(this); 8118 CSSPropertyParser::ImplicitScope implicitScope(this);
8117 if (!parseValue(CSSPropertyMarkerStart, important)) 8119 if (!parseValue(CSSPropertyMarkerStart, important))
8118 return false; 8120 return false;
8119 if (m_valueList->current()) { 8121 if (m_valueList->current()) {
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
8471 } 8473 }
8472 } 8474 }
8473 8475
8474 if (!list->length()) 8476 if (!list->length())
8475 return nullptr; 8477 return nullptr;
8476 8478
8477 return list.release(); 8479 return list.release();
8478 } 8480 }
8479 8481
8480 } // namespace blink 8482 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698