Chromium Code Reviews| 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 <memory> | |
| 8 #include "core/CoreExport.h" | 9 #include "core/CoreExport.h" |
| 9 #include "core/css/parser/CSSParserSelector.h" | 10 #include "core/css/parser/CSSParserSelector.h" |
| 10 #include "core/css/parser/CSSParserTokenRange.h" | 11 #include "core/css/parser/CSSParserTokenRange.h" |
| 11 #include <memory> | |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class CSSParserContext; | 15 class CSSParserContext; |
| 16 class CSSSelectorList; | 16 class CSSSelectorList; |
| 17 class StyleSheetContents; | 17 class StyleSheetContents; |
| 18 | 18 |
| 19 // FIXME: We should consider building CSSSelectors directly instead of using | 19 // FIXME: We should consider building CSSSelectors directly instead of using |
| 20 // the intermediate CSSParserSelector. | 20 // the intermediate CSSParserSelector. |
| 21 class CORE_EXPORT CSSSelectorParser { | 21 class CORE_EXPORT CSSSelectorParser { |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 59 CSSSelector::AttributeMatchType ConsumeAttributeFlags(CSSParserTokenRange&); | 59 CSSSelector::AttributeMatchType ConsumeAttributeFlags(CSSParserTokenRange&); |
| 60 | 60 |
| 61 const AtomicString& DefaultNamespace() const; | 61 const AtomicString& DefaultNamespace() const; |
| 62 const AtomicString& DetermineNamespace(const AtomicString& prefix); | 62 const AtomicString& DetermineNamespace(const AtomicString& prefix); |
| 63 void PrependTypeSelectorIfNeeded(const AtomicString& namespace_prefix, | 63 void PrependTypeSelectorIfNeeded(const AtomicString& namespace_prefix, |
| 64 const AtomicString& element_name, | 64 const AtomicString& element_name, |
| 65 CSSParserSelector*); | 65 CSSParserSelector*); |
| 66 static std::unique_ptr<CSSParserSelector> AddSimpleSelectorToCompound( | 66 static std::unique_ptr<CSSParserSelector> AddSimpleSelectorToCompound( |
| 67 std::unique_ptr<CSSParserSelector> compound_selector, | 67 std::unique_ptr<CSSParserSelector> compound_selector, |
| 68 std::unique_ptr<CSSParserSelector> simple_selector); | 68 std::unique_ptr<CSSParserSelector> simple_selector); |
| 69 static std::unique_ptr<CSSParserSelector> | 69 std::unique_ptr<CSSParserSelector> |
|
kochi
2017/05/09 14:29:38
This change is not necessary for this CL?
(You rem
hayato
2017/05/10 06:57:04
Done. It looks I forgot to revert this header.
| |
| 70 SplitCompoundAtImplicitShadowCrossingCombinator( | 70 SplitCompoundAtImplicitShadowCrossingCombinator( |
| 71 std::unique_ptr<CSSParserSelector> compound_selector); | 71 std::unique_ptr<CSSParserSelector> compound_selector); |
| 72 void RecordUsageAndDeprecations(const CSSSelectorList&); | 72 void RecordUsageAndDeprecations(const CSSSelectorList&); |
| 73 | 73 |
| 74 Member<const CSSParserContext> context_; | 74 Member<const CSSParserContext> context_; |
| 75 Member<StyleSheetContents> style_sheet_; // FIXME: Should be const | 75 Member<StyleSheetContents> style_sheet_; // FIXME: Should be const |
| 76 | 76 |
| 77 bool failed_parsing_ = false; | 77 bool failed_parsing_ = false; |
| 78 bool disallow_pseudo_elements_ = false; | 78 bool disallow_pseudo_elements_ = false; |
| 79 | 79 |
| (...skipping 13 matching lines...) Expand all Loading... | |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 CSSSelectorParser* parser_; | 95 CSSSelectorParser* parser_; |
| 96 bool was_disallowed_; | 96 bool was_disallowed_; |
| 97 }; | 97 }; |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // CSSSelectorParser_h | 102 #endif // CSSSelectorParser_h |
| OLD | NEW |