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 1085 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1096 declaration->addParsedProperties(m_parsedProperties); | 1096 declaration->addParsedProperties(m_parsedProperties); |
1097 clearProperties(); | 1097 clearProperties(); |
1098 } | 1098 } |
1099 | 1099 |
1100 if (m_observer) | 1100 if (m_observer) |
1101 m_observer->endRuleBody(string.length(), false); | 1101 m_observer->endRuleBody(string.length(), false); |
1102 | 1102 |
1103 return ok; | 1103 return ok; |
1104 } | 1104 } |
1105 | 1105 |
1106 PassRefPtrWillBeRawPtr<MediaQuerySet> BisonCSSParser::parseMediaQueryList(const
String& string) | |
1107 { | |
1108 ASSERT(!m_mediaList); | |
1109 | |
1110 // can't use { because tokenizer state switches from mediaquery to initial s
tate when it sees { token. | |
1111 // instead insert one " " (which is caught by maybe_space in CSSGrammar.y) | |
1112 setupParser("@-internal-medialist ", string, ""); | |
1113 cssyyparse(this); | |
1114 | |
1115 ASSERT(m_mediaList); | |
1116 return m_mediaList.release(); | |
1117 } | |
1118 | |
1119 bool BisonCSSParser::parseAttributeMatchType(CSSSelector::AttributeMatchType& ma
tchType, const String& string) | 1106 bool BisonCSSParser::parseAttributeMatchType(CSSSelector::AttributeMatchType& ma
tchType, const String& string) |
1120 { | 1107 { |
1121 if (!RuntimeEnabledFeatures::cssAttributeCaseSensitivityEnabled() && !isUASh
eetBehavior(m_context.mode())) | 1108 if (!RuntimeEnabledFeatures::cssAttributeCaseSensitivityEnabled() && !isUASh
eetBehavior(m_context.mode())) |
1122 return false; | 1109 return false; |
1123 if (string == "i") { | 1110 if (string == "i") { |
1124 matchType = CSSSelector::CaseInsensitive; | 1111 matchType = CSSSelector::CaseInsensitive; |
1125 return true; | 1112 return true; |
1126 } | 1113 } |
1127 return false; | 1114 return false; |
1128 } | 1115 } |
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2110 rule->setProperties(createStylePropertySet()); | 2097 rule->setProperties(createStylePropertySet()); |
2111 clearProperties(); | 2098 clearProperties(); |
2112 | 2099 |
2113 StyleRuleViewport* result = rule.get(); | 2100 StyleRuleViewport* result = rule.get(); |
2114 m_parsedRules.append(rule.release()); | 2101 m_parsedRules.append(rule.release()); |
2115 | 2102 |
2116 return result; | 2103 return result; |
2117 } | 2104 } |
2118 | 2105 |
2119 } | 2106 } |
OLD | NEW |