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/CSSParserSelector.h" | 9 #include "core/css/parser/CSSParserSelector.h" |
10 #include "core/css/parser/CSSParserTokenRange.h" | 10 #include "core/css/parser/CSSParserTokenRange.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const AtomicString& determineNamespace(const AtomicString& prefix); | 62 const AtomicString& determineNamespace(const AtomicString& prefix); |
63 void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, | 63 void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, |
64 const AtomicString& elementName, | 64 const AtomicString& elementName, |
65 CSSParserSelector*); | 65 CSSParserSelector*); |
66 static std::unique_ptr<CSSParserSelector> addSimpleSelectorToCompound( | 66 static std::unique_ptr<CSSParserSelector> addSimpleSelectorToCompound( |
67 std::unique_ptr<CSSParserSelector> compoundSelector, | 67 std::unique_ptr<CSSParserSelector> compoundSelector, |
68 std::unique_ptr<CSSParserSelector> simpleSelector); | 68 std::unique_ptr<CSSParserSelector> simpleSelector); |
69 static std::unique_ptr<CSSParserSelector> | 69 static std::unique_ptr<CSSParserSelector> |
70 splitCompoundAtImplicitShadowCrossingCombinator( | 70 splitCompoundAtImplicitShadowCrossingCombinator( |
71 std::unique_ptr<CSSParserSelector> compoundSelector); | 71 std::unique_ptr<CSSParserSelector> compoundSelector); |
| 72 void recordUsageAndDeprecations(const CSSSelectorList&); |
72 | 73 |
73 Member<const CSSParserContext> m_context; | 74 Member<const CSSParserContext> m_context; |
74 Member<StyleSheetContents> m_styleSheet; // FIXME: Should be const | 75 Member<StyleSheetContents> m_styleSheet; // FIXME: Should be const |
75 | 76 |
76 bool m_failedParsing = false; | 77 bool m_failedParsing = false; |
77 bool m_disallowPseudoElements = false; | 78 bool m_disallowPseudoElements = false; |
78 | 79 |
79 class DisallowPseudoElementsScope { | 80 class DisallowPseudoElementsScope { |
80 STACK_ALLOCATED(); | 81 STACK_ALLOCATED(); |
81 WTF_MAKE_NONCOPYABLE(DisallowPseudoElementsScope); | 82 WTF_MAKE_NONCOPYABLE(DisallowPseudoElementsScope); |
(...skipping 11 matching lines...) Expand all Loading... |
93 | 94 |
94 private: | 95 private: |
95 CSSSelectorParser* m_parser; | 96 CSSSelectorParser* m_parser; |
96 bool m_wasDisallowed; | 97 bool m_wasDisallowed; |
97 }; | 98 }; |
98 }; | 99 }; |
99 | 100 |
100 } // namespace blink | 101 } // namespace blink |
101 | 102 |
102 #endif // CSSSelectorParser_h | 103 #endif // CSSSelectorParser_h |
OLD | NEW |