| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 return nullptr; | 677 return nullptr; |
| 678 } | 678 } |
| 679 | 679 |
| 680 CSSParserString cssString; | 680 CSSParserString cssString; |
| 681 cssString.init(string); | 681 cssString.init(string); |
| 682 CSSValueID valueID = cssValueKeywordID(cssString); | 682 CSSValueID valueID = cssValueKeywordID(cssString); |
| 683 | 683 |
| 684 if (!valueID) | 684 if (!valueID) |
| 685 return nullptr; | 685 return nullptr; |
| 686 | 686 |
| 687 RefPtrWillBeRawPtr<CSSValue> value = nullptr; | |
| 688 if (valueID == CSSValueInherit) | 687 if (valueID == CSSValueInherit) |
| 689 return cssValuePool().createInheritedValue(); | 688 return cssValuePool().createInheritedValue(); |
| 690 if (valueID == CSSValueInitial) | 689 if (valueID == CSSValueInitial) |
| 691 return cssValuePool().createExplicitInitialValue(); | 690 return cssValuePool().createExplicitInitialValue(); |
| 692 if (CSSParserFastPaths::isValidKeywordPropertyAndValue(propertyId, valueID)) | 691 if (CSSParserFastPaths::isValidKeywordPropertyAndValue(propertyId, valueID)) |
| 693 return cssValuePool().createIdentifierValue(valueID); | 692 return cssValuePool().createIdentifierValue(valueID); |
| 694 return nullptr; | 693 return nullptr; |
| 695 } | 694 } |
| 696 | 695 |
| 697 template <typename CharType> | 696 template <typename CharType> |
| (...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1817 rule->setProperties(createStylePropertySet()); | 1816 rule->setProperties(createStylePropertySet()); |
| 1818 clearProperties(); | 1817 clearProperties(); |
| 1819 | 1818 |
| 1820 StyleRuleViewport* result = rule.get(); | 1819 StyleRuleViewport* result = rule.get(); |
| 1821 m_parsedRules.append(rule.release()); | 1820 m_parsedRules.append(rule.release()); |
| 1822 | 1821 |
| 1823 return result; | 1822 return result; |
| 1824 } | 1823 } |
| 1825 | 1824 |
| 1826 } | 1825 } |
| OLD | NEW |