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

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

Issue 896773002: [svg2] Make 'x' and 'y' presentation attributes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: cleanup 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 8178 matching lines...) Expand 10 before | Expand all | Expand 10 after
8189 if (id == CSSValueNone) 8189 if (id == CSSValueNone)
8190 validPrimitive = true; 8190 validPrimitive = true;
8191 else 8191 else
8192 parsedValue = parseSVGStrokeDasharray(); 8192 parsedValue = parseSVGStrokeDasharray();
8193 break; 8193 break;
8194 8194
8195 case CSSPropertyMaskType: // luminance | alpha | inherit 8195 case CSSPropertyMaskType: // luminance | alpha | inherit
8196 if (id == CSSValueLuminance || id == CSSValueAlpha) 8196 if (id == CSSValueLuminance || id == CSSValueAlpha)
8197 validPrimitive = true; 8197 validPrimitive = true;
8198 break; 8198 break;
8199 case CSSPropertyX:
8200 case CSSPropertyY:
8201 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu teMode));
8202 break;
8199 8203
8200 /* shorthand properties */ 8204 /* shorthand properties */
8201 case CSSPropertyMarker: { 8205 case CSSPropertyMarker: {
8202 ShorthandScope scope(this, propId); 8206 ShorthandScope scope(this, propId);
8203 CSSPropertyParser::ImplicitScope implicitScope(this); 8207 CSSPropertyParser::ImplicitScope implicitScope(this);
8204 if (!parseValue(CSSPropertyMarkerStart, important)) 8208 if (!parseValue(CSSPropertyMarkerStart, important))
8205 return false; 8209 return false;
8206 if (m_valueList->current()) { 8210 if (m_valueList->current()) {
8207 rollbackLastProperties(1); 8211 rollbackLastProperties(1);
8208 return false; 8212 return false;
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
8577 } 8581 }
8578 } 8582 }
8579 8583
8580 if (!list->length()) 8584 if (!list->length())
8581 return nullptr; 8585 return nullptr;
8582 8586
8583 return list.release(); 8587 return list.release();
8584 } 8588 }
8585 8589
8586 } // namespace blink 8590 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698