OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CSSSelectorParser_h | 5 #ifndef CSSSelectorParser_h |
6 #define CSSSelectorParser_h | 6 #define CSSSelectorParser_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/css/parser/CSSParserTokenRange.h" | 9 #include "core/css/parser/CSSParserTokenRange.h" |
10 #include "core/css/parser/CSSParserValues.h" | 10 #include "core/css/parser/CSSParserValues.h" |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 CSSSelector::Relation consumeCombinator(CSSParserTokenRange&); | 49 CSSSelector::Relation consumeCombinator(CSSParserTokenRange&); |
50 CSSSelector::Match consumeAttributeMatch(CSSParserTokenRange&); | 50 CSSSelector::Match consumeAttributeMatch(CSSParserTokenRange&); |
51 CSSSelector::AttributeMatchType consumeAttributeFlags(CSSParserTokenRange&); | 51 CSSSelector::AttributeMatchType consumeAttributeFlags(CSSParserTokenRange&); |
52 | 52 |
53 QualifiedName determineNameInNamespace(const AtomicString& prefix, const Ato
micString& localName); | 53 QualifiedName determineNameInNamespace(const AtomicString& prefix, const Ato
micString& localName); |
54 void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, const
AtomicString& elementName, CSSParserSelector*); | 54 void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, const
AtomicString& elementName, CSSParserSelector*); |
55 void rewriteSpecifiersWithElementNameForCustomPseudoElement(const QualifiedN
ame& tag, CSSParserSelector*, bool tagIsImplicit); | 55 void rewriteSpecifiersWithElementNameForCustomPseudoElement(const QualifiedN
ame& tag, CSSParserSelector*, bool tagIsImplicit); |
56 void rewriteSpecifiersWithElementNameForContentPseudoElement(const Qualified
Name& tag, CSSParserSelector*, bool tagIsImplicit); | 56 void rewriteSpecifiersWithElementNameForContentPseudoElement(const Qualified
Name& tag, CSSParserSelector*, bool tagIsImplicit); |
57 static PassOwnPtr<CSSParserSelector> addSimpleSelectorToCompound(PassOwnPtr<
CSSParserSelector> compoundSelector, PassOwnPtr<CSSParserSelector> simpleSelecto
r); | 57 static PassOwnPtr<CSSParserSelector> addSimpleSelectorToCompound(PassOwnPtr<
CSSParserSelector> compoundSelector, PassOwnPtr<CSSParserSelector> simpleSelecto
r); |
58 | 58 |
| 59 bool selectorIsAllowedInParsingMode(CSSSelector::PseudoType) const; |
| 60 |
59 const CSSParserContext& m_context; | 61 const CSSParserContext& m_context; |
60 AtomicString m_defaultNamespace; | 62 AtomicString m_defaultNamespace; |
61 StyleSheetContents* m_styleSheet; // FIXME: Should be const | 63 StyleSheetContents* m_styleSheet; // FIXME: Should be const |
62 | 64 |
63 bool m_failedParsing; | 65 bool m_failedParsing; |
64 }; | 66 }; |
65 | 67 |
66 } // namespace | 68 } // namespace |
67 | 69 |
68 #endif // CSSSelectorParser_h | 70 #endif // CSSSelectorParser_h |
OLD | NEW |