| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 const UChar* pos = string.characters16(); | 870 const UChar* pos = string.characters16(); |
| 871 const UChar* end = pos + string.length(); | 871 const UChar* end = pos + string.length(); |
| 872 transformList = parseSimpleTransformList(pos, end); | 872 transformList = parseSimpleTransformList(pos, end); |
| 873 if (!transformList) | 873 if (!transformList) |
| 874 return false; | 874 return false; |
| 875 } | 875 } |
| 876 properties->addParsedProperty(CSSProperty(propertyID, transformList.release(
), important)); | 876 properties->addParsedProperty(CSSProperty(propertyID, transformList.release(
), important)); |
| 877 return true; | 877 return true; |
| 878 } | 878 } |
| 879 | 879 |
| 880 // FIXME: Push this logic up into CSSParser | |
| 881 PassRefPtrWillBeRawPtr<CSSValueList> BisonCSSParser::parseFontFaceValue(const At
omicString& string) | 880 PassRefPtrWillBeRawPtr<CSSValueList> BisonCSSParser::parseFontFaceValue(const At
omicString& string) |
| 882 { | 881 { |
| 883 if (string.isEmpty()) | 882 if (string.isEmpty()) |
| 884 return nullptr; | 883 return nullptr; |
| 885 RefPtrWillBeRawPtr<MutableStylePropertySet> dummyStyle = MutableStylePropert
ySet::create(); | 884 RefPtrWillBeRawPtr<MutableStylePropertySet> dummyStyle = MutableStylePropert
ySet::create(); |
| 886 if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, HTML
QuirksMode, 0)) | 885 if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, HTML
QuirksMode, 0)) |
| 887 return nullptr; | 886 return nullptr; |
| 888 | 887 |
| 889 RefPtrWillBeRawPtr<CSSValue> fontFamily = dummyStyle->getPropertyCSSValue(CS
SPropertyFontFamily); | 888 RefPtrWillBeRawPtr<CSSValue> fontFamily = dummyStyle->getPropertyCSSValue(CS
SPropertyFontFamily); |
| 890 if (!fontFamily->isValueList()) | 889 if (!fontFamily->isValueList()) |
| 891 return nullptr; | 890 return nullptr; |
| 892 | 891 |
| 893 return toCSSValueList(dummyStyle->getPropertyCSSValue(CSSPropertyFontFamily)
.get()); | 892 return toCSSValueList(dummyStyle->getPropertyCSSValue(CSSPropertyFontFamily)
.get()); |
| 894 } | 893 } |
| 895 | 894 |
| 896 // FIXME: Push this logic up into CSSParser | |
| 897 PassRefPtrWillBeRawPtr<CSSValue> BisonCSSParser::parseAnimationTimingFunctionVal
ue(const String& string) | 895 PassRefPtrWillBeRawPtr<CSSValue> BisonCSSParser::parseAnimationTimingFunctionVal
ue(const String& string) |
| 898 { | 896 { |
| 899 if (string.isEmpty()) | 897 if (string.isEmpty()) |
| 900 return nullptr; | 898 return nullptr; |
| 901 RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet:
:create(); | 899 RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet:
:create(); |
| 902 if (!parseValue(style.get(), CSSPropertyTransitionTimingFunction, string, fa
lse, HTMLStandardMode, 0)) | 900 if (!parseValue(style.get(), CSSPropertyTransitionTimingFunction, string, fa
lse, HTMLStandardMode, 0)) |
| 903 return nullptr; | 901 return nullptr; |
| 904 | 902 |
| 905 RefPtrWillBeRawPtr<CSSValue> value = style->getPropertyCSSValue(CSSPropertyT
ransitionTimingFunction); | 903 RefPtrWillBeRawPtr<CSSValue> value = style->getPropertyCSSValue(CSSPropertyT
ransitionTimingFunction); |
| 906 if (!value || value->isInitialValue() || value->isInheritedValue()) | 904 if (!value || value->isInitialValue() || value->isInheritedValue()) |
| (...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2099 rule->setProperties(createStylePropertySet()); | 2097 rule->setProperties(createStylePropertySet()); |
| 2100 clearProperties(); | 2098 clearProperties(); |
| 2101 | 2099 |
| 2102 StyleRuleViewport* result = rule.get(); | 2100 StyleRuleViewport* result = rule.get(); |
| 2103 m_parsedRules.append(rule.release()); | 2101 m_parsedRules.append(rule.release()); |
| 2104 | 2102 |
| 2105 return result; | 2103 return result; |
| 2106 } | 2104 } |
| 2107 | 2105 |
| 2108 } | 2106 } |
| OLD | NEW |