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 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 return false; | 986 return false; |
987 } | 987 } |
988 properties->addParsedProperty(CSSProperty(CSSPropertyWebkitTransform, transf
ormList.release(), important)); | 988 properties->addParsedProperty(CSSProperty(CSSPropertyWebkitTransform, transf
ormList.release(), important)); |
989 return true; | 989 return true; |
990 } | 990 } |
991 | 991 |
992 PassRefPtrWillBeRawPtr<CSSValueList> BisonCSSParser::parseFontFaceValue(const At
omicString& string) | 992 PassRefPtrWillBeRawPtr<CSSValueList> BisonCSSParser::parseFontFaceValue(const At
omicString& string) |
993 { | 993 { |
994 if (string.isEmpty()) | 994 if (string.isEmpty()) |
995 return nullptr; | 995 return nullptr; |
996 RefPtr<MutableStylePropertySet> dummyStyle = MutableStylePropertySet::create
(); | 996 RefPtrWillBeRawPtr<MutableStylePropertySet> dummyStyle = MutableStylePropert
ySet::create(); |
997 if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, HTML
QuirksMode, 0)) | 997 if (!parseValue(dummyStyle.get(), CSSPropertyFontFamily, string, false, HTML
QuirksMode, 0)) |
998 return nullptr; | 998 return nullptr; |
999 | 999 |
1000 RefPtrWillBeRawPtr<CSSValue> fontFamily = dummyStyle->getPropertyCSSValue(CS
SPropertyFontFamily); | 1000 RefPtrWillBeRawPtr<CSSValue> fontFamily = dummyStyle->getPropertyCSSValue(CS
SPropertyFontFamily); |
1001 if (!fontFamily->isValueList()) | 1001 if (!fontFamily->isValueList()) |
1002 return nullptr; | 1002 return nullptr; |
1003 | 1003 |
1004 return toCSSValueList(dummyStyle->getPropertyCSSValue(CSSPropertyFontFamily)
.get()); | 1004 return toCSSValueList(dummyStyle->getPropertyCSSValue(CSSPropertyFontFamily)
.get()); |
1005 } | 1005 } |
1006 | 1006 |
1007 PassRefPtrWillBeRawPtr<CSSValue> BisonCSSParser::parseAnimationTimingFunctionVal
ue(const String& string) | 1007 PassRefPtrWillBeRawPtr<CSSValue> BisonCSSParser::parseAnimationTimingFunctionVal
ue(const String& string) |
1008 { | 1008 { |
1009 if (string.isEmpty()) | 1009 if (string.isEmpty()) |
1010 return nullptr; | 1010 return nullptr; |
1011 RefPtr<MutableStylePropertySet> style = MutableStylePropertySet::create(); | 1011 RefPtrWillBeRawPtr<MutableStylePropertySet> style = MutableStylePropertySet:
:create(); |
1012 if (!parseValue(style.get(), CSSPropertyAnimationTimingFunction, string, fal
se, HTMLStandardMode, 0)) | 1012 if (!parseValue(style.get(), CSSPropertyAnimationTimingFunction, string, fal
se, HTMLStandardMode, 0)) |
1013 return nullptr; | 1013 return nullptr; |
1014 | 1014 |
1015 return style->getPropertyCSSValue(CSSPropertyAnimationTimingFunction); | 1015 return style->getPropertyCSSValue(CSSPropertyAnimationTimingFunction); |
1016 } | 1016 } |
1017 | 1017 |
1018 bool BisonCSSParser::parseValue(MutableStylePropertySet* declaration, CSSPropert
yID propertyID, const String& string, bool important, const Document& document) | 1018 bool BisonCSSParser::parseValue(MutableStylePropertySet* declaration, CSSPropert
yID propertyID, const String& string, bool important, const Document& document) |
1019 { | 1019 { |
1020 ASSERT(!string.isEmpty()); | 1020 ASSERT(!string.isEmpty()); |
1021 | 1021 |
(...skipping 1183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2205 rule->setProperties(createStylePropertySet()); | 2205 rule->setProperties(createStylePropertySet()); |
2206 clearProperties(); | 2206 clearProperties(); |
2207 | 2207 |
2208 StyleRuleViewport* result = rule.get(); | 2208 StyleRuleViewport* result = rule.get(); |
2209 m_parsedRules.append(rule.release()); | 2209 m_parsedRules.append(rule.release()); |
2210 | 2210 |
2211 return result; | 2211 return result; |
2212 } | 2212 } |
2213 | 2213 |
2214 } | 2214 } |
OLD | NEW |