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