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