| 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 8178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |