OLD | NEW |
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 8182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8193 if (id == CSSValueNone) | 8193 if (id == CSSValueNone) |
8194 validPrimitive = true; | 8194 validPrimitive = true; |
8195 else | 8195 else |
8196 parsedValue = parseSVGStrokeDasharray(); | 8196 parsedValue = parseSVGStrokeDasharray(); |
8197 break; | 8197 break; |
8198 | 8198 |
8199 case CSSPropertyMaskType: // luminance | alpha | inherit | 8199 case CSSPropertyMaskType: // luminance | alpha | inherit |
8200 if (id == CSSValueLuminance || id == CSSValueAlpha) | 8200 if (id == CSSValueLuminance || id == CSSValueAlpha) |
8201 validPrimitive = true; | 8201 validPrimitive = true; |
8202 break; | 8202 break; |
| 8203 case CSSPropertyX: |
| 8204 case CSSPropertyY: |
| 8205 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu
teMode)); |
| 8206 break; |
8203 | 8207 |
8204 /* shorthand properties */ | 8208 /* shorthand properties */ |
8205 case CSSPropertyMarker: { | 8209 case CSSPropertyMarker: { |
8206 ShorthandScope scope(this, propId); | 8210 ShorthandScope scope(this, propId); |
8207 CSSPropertyParser::ImplicitScope implicitScope(this); | 8211 CSSPropertyParser::ImplicitScope implicitScope(this); |
8208 if (!parseValue(CSSPropertyMarkerStart, important)) | 8212 if (!parseValue(CSSPropertyMarkerStart, important)) |
8209 return false; | 8213 return false; |
8210 if (m_valueList->current()) { | 8214 if (m_valueList->current()) { |
8211 rollbackLastProperties(1); | 8215 rollbackLastProperties(1); |
8212 return false; | 8216 return false; |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8581 } | 8585 } |
8582 } | 8586 } |
8583 | 8587 |
8584 if (!list->length()) | 8588 if (!list->length()) |
8585 return nullptr; | 8589 return nullptr; |
8586 | 8590 |
8587 return list.release(); | 8591 return list.release(); |
8588 } | 8592 } |
8589 | 8593 |
8590 } // namespace blink | 8594 } // namespace blink |
OLD | NEW |