Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSSelectorParser.h

Issue 1523843004: Add support for new CSS ::slotted() pseudo element (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase / fix comments for tests (FYI) Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 PassOwnPtr<CSSParserSelector> consumeAttribute(CSSParserTokenRange&); 45 PassOwnPtr<CSSParserSelector> consumeAttribute(CSSParserTokenRange&);
46 46
47 CSSSelector::Relation consumeCombinator(CSSParserTokenRange&); 47 CSSSelector::Relation consumeCombinator(CSSParserTokenRange&);
48 CSSSelector::Match consumeAttributeMatch(CSSParserTokenRange&); 48 CSSSelector::Match consumeAttributeMatch(CSSParserTokenRange&);
49 CSSSelector::AttributeMatchType consumeAttributeFlags(CSSParserTokenRange&); 49 CSSSelector::AttributeMatchType consumeAttributeFlags(CSSParserTokenRange&);
50 50
51 const AtomicString& defaultNamespace() const; 51 const AtomicString& defaultNamespace() const;
52 const AtomicString& determineNamespace(const AtomicString& prefix); 52 const AtomicString& determineNamespace(const AtomicString& prefix);
53 void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, const AtomicString& elementName, CSSParserSelector*); 53 void prependTypeSelectorIfNeeded(const AtomicString& namespacePrefix, const AtomicString& elementName, CSSParserSelector*);
54 void rewriteSpecifiersWithElementNameForCustomPseudoElement(const QualifiedN ame& tag, CSSParserSelector*, bool tagIsImplicit); 54 void rewriteSpecifiersWithElementNameForCustomPseudoElement(const QualifiedN ame& tag, CSSParserSelector*, bool tagIsImplicit);
55 void rewriteSpecifiersWithElementNameForContentPseudoElement(const Qualified Name& tag, CSSParserSelector*, bool tagIsImplicit); 55 void rewriteSpecifiersWithElementNameForContentOrSlottedPseudoElement(const QualifiedName& tag, CSSParserSelector*, bool tagIsImplicit);
56 static PassOwnPtr<CSSParserSelector> addSimpleSelectorToCompound(PassOwnPtr< CSSParserSelector> compoundSelector, PassOwnPtr<CSSParserSelector> simpleSelecto r); 56 static PassOwnPtr<CSSParserSelector> addSimpleSelectorToCompound(PassOwnPtr< CSSParserSelector> compoundSelector, PassOwnPtr<CSSParserSelector> simpleSelecto r);
57 57
58 const CSSParserContext& m_context; 58 const CSSParserContext& m_context;
59 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; // FIXME: Should be con st 59 RawPtrWillBeMember<StyleSheetContents> m_styleSheet; // FIXME: Should be con st
60 60
61 bool m_failedParsing = false; 61 bool m_failedParsing = false;
62 bool m_disallowPseudoElements = false; 62 bool m_disallowPseudoElements = false;
63 63
64 class DisallowPseudoElementsScope { 64 class DisallowPseudoElementsScope {
65 STACK_ALLOCATED(); 65 STACK_ALLOCATED();
(...skipping 12 matching lines...) Expand all
78 78
79 private: 79 private:
80 CSSSelectorParser* m_parser; 80 CSSSelectorParser* m_parser;
81 bool m_wasDisallowed; 81 bool m_wasDisallowed;
82 }; 82 };
83 }; 83 };
84 84
85 } // namespace 85 } // namespace
86 86
87 #endif // CSSSelectorParser_h 87 #endif // CSSSelectorParser_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698