| 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 8118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8129 if (id == CSSValueNone) | 8129 if (id == CSSValueNone) |
| 8130 validPrimitive = true; | 8130 validPrimitive = true; |
| 8131 else | 8131 else |
| 8132 parsedValue = parseSVGStrokeDasharray(); | 8132 parsedValue = parseSVGStrokeDasharray(); |
| 8133 break; | 8133 break; |
| 8134 | 8134 |
| 8135 case CSSPropertyMaskType: // luminance | alpha | inherit | 8135 case CSSPropertyMaskType: // luminance | alpha | inherit |
| 8136 if (id == CSSValueLuminance || id == CSSValueAlpha) | 8136 if (id == CSSValueLuminance || id == CSSValueAlpha) |
| 8137 validPrimitive = true; | 8137 validPrimitive = true; |
| 8138 break; | 8138 break; |
| 8139 case CSSPropertyX: |
| 8140 case CSSPropertyY: |
| 8141 validPrimitive = (!id && validUnit(value, FLength | FPercent, SVGAttribu
teMode)); |
| 8142 break; |
| 8139 | 8143 |
| 8140 /* shorthand properties */ | 8144 /* shorthand properties */ |
| 8141 case CSSPropertyMarker: { | 8145 case CSSPropertyMarker: { |
| 8142 ShorthandScope scope(this, propId); | 8146 ShorthandScope scope(this, propId); |
| 8143 CSSPropertyParser::ImplicitScope implicitScope(this); | 8147 CSSPropertyParser::ImplicitScope implicitScope(this); |
| 8144 if (!parseValue(CSSPropertyMarkerStart, important)) | 8148 if (!parseValue(CSSPropertyMarkerStart, important)) |
| 8145 return false; | 8149 return false; |
| 8146 if (m_valueList->current()) { | 8150 if (m_valueList->current()) { |
| 8147 rollbackLastProperties(1); | 8151 rollbackLastProperties(1); |
| 8148 return false; | 8152 return false; |
| (...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8517 } | 8521 } |
| 8518 } | 8522 } |
| 8519 | 8523 |
| 8520 if (!list->length()) | 8524 if (!list->length()) |
| 8521 return nullptr; | 8525 return nullptr; |
| 8522 | 8526 |
| 8523 return list.release(); | 8527 return list.release(); |
| 8524 } | 8528 } |
| 8525 | 8529 |
| 8526 } // namespace blink | 8530 } // namespace blink |
| OLD | NEW |