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 451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
462 | 462 |
463 CSSValueID id = value->id; | 463 CSSValueID id = value->id; |
464 | 464 |
465 int num = inShorthand() ? 1 : m_valueList->size(); | 465 int num = inShorthand() ? 1 : m_valueList->size(); |
466 | 466 |
467 if (id == CSSValueInherit) { | 467 if (id == CSSValueInherit) { |
468 if (num != 1) | 468 if (num != 1) |
469 return false; | 469 return false; |
470 addExpandedPropertyForValue(propId, cssValuePool().createInheritedValue(
), important); | 470 addExpandedPropertyForValue(propId, cssValuePool().createInheritedValue(
), important); |
471 return true; | 471 return true; |
472 } else if (id == CSSValueInitial) { | 472 } |
| 473 else if (id == CSSValueInitial) { |
473 if (num != 1) | 474 if (num != 1) |
474 return false; | 475 return false; |
475 addExpandedPropertyForValue(propId, cssValuePool().createExplicitInitial
Value(), important); | 476 addExpandedPropertyForValue(propId, cssValuePool().createExplicitInitial
Value(), important); |
476 return true; | 477 return true; |
477 } else if (id == CSSValueUnset) { | |
478 if (num != 1) | |
479 return false; | |
480 addExpandedPropertyForValue(propId, cssValuePool().createUnsetValue(), i
mportant); | |
481 return true; | |
482 } | 478 } |
483 | 479 |
484 if (CSSParserFastPaths::isKeywordPropertyID(propId)) { | 480 if (CSSParserFastPaths::isKeywordPropertyID(propId)) { |
485 if (!CSSParserFastPaths::isValidKeywordPropertyAndValue(propId, id)) | 481 if (!CSSParserFastPaths::isValidKeywordPropertyAndValue(propId, id)) |
486 return false; | 482 return false; |
487 if (m_valueList->next() && !inShorthand()) | 483 if (m_valueList->next() && !inShorthand()) |
488 return false; | 484 return false; |
489 addProperty(propId, cssValuePool().createIdentifierValue(id), important)
; | 485 addProperty(propId, cssValuePool().createIdentifierValue(id), important)
; |
490 return true; | 486 return true; |
491 } | 487 } |
(...skipping 7983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8475 return nullptr; | 8471 return nullptr; |
8476 a = args->next(); | 8472 a = args->next(); |
8477 | 8473 |
8478 argNumber++; | 8474 argNumber++; |
8479 } | 8475 } |
8480 | 8476 |
8481 return transformValue.release(); | 8477 return transformValue.release(); |
8482 } | 8478 } |
8483 | 8479 |
8484 } // namespace blink | 8480 } // namespace blink |
OLD | NEW |