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

Side by Side Diff: third_party/WebKit/Source/core/css/parser/CSSParserSelector.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 /* 1 /*
2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed. 3 * Copyright (C) 2004, 2005, 2006, 2008, 2009, 2010 Apple Inc. All rights reserv ed.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 CSSSelector::Relation relation() const { return m_selector->relation(); } 42 CSSSelector::Relation relation() const { return m_selector->relation(); }
43 void setValue(const AtomicString& value, bool matchLowerCase = false) { m_se lector->setValue(value, matchLowerCase); } 43 void setValue(const AtomicString& value, bool matchLowerCase = false) { m_se lector->setValue(value, matchLowerCase); }
44 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp e matchType) { m_selector->setAttribute(value, matchType); } 44 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp e matchType) { m_selector->setAttribute(value, matchType); }
45 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; } 45 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; }
46 void setNth(int a, int b) { m_selector->setNth(a, b); } 46 void setNth(int a, int b) { m_selector->setNth(a, b); }
47 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } 47 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); }
48 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu e); } 48 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu e); }
49 void setForPage() { m_selector->setForPage(); } 49 void setForPage() { m_selector->setForPage(); }
50 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); } 50 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); }
51 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); } 51 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); }
52 void setRelationIsAffectedByPseudoSlotted() { m_selector->setRelationIsAffec tedByPseudoSlotted(); }
53 bool relationIsAffectedByPseudoSlotted() const { return m_selector->relation IsAffectedByPseudoSlotted(); }
52 54
53 void updatePseudoType(const AtomicString& value, bool hasArguments = false) const { m_selector->updatePseudoType(value, hasArguments); } 55 void updatePseudoType(const AtomicString& value, bool hasArguments = false) const { m_selector->updatePseudoType(value, hasArguments); }
54 56
55 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); 57 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector);
56 void setSelectorList(PassOwnPtr<CSSSelectorList>); 58 void setSelectorList(PassOwnPtr<CSSSelectorList>);
57 59
58 bool hasHostPseudoSelector() const; 60 bool hasHostPseudoSelector() const;
59 61
60 CSSSelector::Match match() const { return m_selector->match(); } 62 CSSSelector::Match match() const { return m_selector->match(); }
61 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; } 63 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; }
(...skipping 16 matching lines...) Expand all
78 }; 80 };
79 81
80 inline bool CSSParserSelector::hasImplicitShadowCrossingCombinatorForMatching() const 82 inline bool CSSParserSelector::hasImplicitShadowCrossingCombinatorForMatching() const
81 { 83 {
82 return m_selector->relation() == CSSSelector::ShadowPseudo; 84 return m_selector->relation() == CSSSelector::ShadowPseudo;
83 } 85 }
84 86
85 } // namespace blink 87 } // namespace blink
86 88
87 #endif 89 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/SelectorFilter.cpp ('k') | third_party/WebKit/Source/core/css/parser/CSSSelectorParser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698