| 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 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 916 // difference between *:host and just :host. | 916 // difference between *:host and just :host. |
| 917 if (tag == anyQName() && !specifiers->hasHostPseudoSelector()) | 917 if (tag == anyQName() && !specifiers->hasHostPseudoSelector()) |
| 918 return specifiers; | 918 return specifiers; |
| 919 if (specifiers->pseudoType() != CSSSelector::PseudoCue) | 919 if (specifiers->pseudoType() != CSSSelector::PseudoCue) |
| 920 specifiers->prependTagSelector(tag, tagIsForNamespaceRule); | 920 specifiers->prependTagSelector(tag, tagIsForNamespaceRule); |
| 921 return specifiers; | 921 return specifiers; |
| 922 } | 922 } |
| 923 | 923 |
| 924 CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithElementNameForCustomPseu
doElement(const QualifiedName& tag, const AtomicString& elementName, CSSParserSe
lector* specifiers, bool tagIsForNamespaceRule) | 924 CSSParserSelector* BisonCSSParser::rewriteSpecifiersWithElementNameForCustomPseu
doElement(const QualifiedName& tag, const AtomicString& elementName, CSSParserSe
lector* specifiers, bool tagIsForNamespaceRule) |
| 925 { | 925 { |
| 926 if (m_context.useCounter() && specifiers->pseudoType() == CSSSelector::Pseud
oUserAgentCustomElement) | |
| 927 m_context.useCounter()->count(UseCounter::CSSPseudoElementUserAgentCusto
mPseudo); | |
| 928 | |
| 929 CSSParserSelector* lastShadowPseudo = specifiers; | 926 CSSParserSelector* lastShadowPseudo = specifiers; |
| 930 CSSParserSelector* history = specifiers; | 927 CSSParserSelector* history = specifiers; |
| 931 while (history->tagHistory()) { | 928 while (history->tagHistory()) { |
| 932 history = history->tagHistory(); | 929 history = history->tagHistory(); |
| 933 if (history->crossesTreeScopes() || history->hasShadowPseudo()) | 930 if (history->crossesTreeScopes() || history->hasShadowPseudo()) |
| 934 lastShadowPseudo = history; | 931 lastShadowPseudo = history; |
| 935 } | 932 } |
| 936 | 933 |
| 937 if (lastShadowPseudo->tagHistory()) { | 934 if (lastShadowPseudo->tagHistory()) { |
| 938 if (tag != anyQName()) | 935 if (tag != anyQName()) |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1146 rule->setProperties(createStylePropertySet()); | 1143 rule->setProperties(createStylePropertySet()); |
| 1147 clearProperties(); | 1144 clearProperties(); |
| 1148 | 1145 |
| 1149 StyleRuleViewport* result = rule.get(); | 1146 StyleRuleViewport* result = rule.get(); |
| 1150 m_parsedRules.append(rule.release()); | 1147 m_parsedRules.append(rule.release()); |
| 1151 | 1148 |
| 1152 return result; | 1149 return result; |
| 1153 } | 1150 } |
| 1154 | 1151 |
| 1155 } | 1152 } |
| OLD | NEW |