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

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: WIP Created 4 years, 12 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 30 matching lines...) Expand all
41 CSSSelector::Relation relation() const { return m_selector->relation(); } 41 CSSSelector::Relation relation() const { return m_selector->relation(); }
42 void setValue(const AtomicString& value, bool matchLowerCase = false) { m_se lector->setValue(value, matchLowerCase); } 42 void setValue(const AtomicString& value, bool matchLowerCase = false) { m_se lector->setValue(value, matchLowerCase); }
43 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp e matchType) { m_selector->setAttribute(value, matchType); } 43 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp e matchType) { m_selector->setAttribute(value, matchType); }
44 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; } 44 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; }
45 void setNth(int a, int b) { m_selector->setNth(a, b); } 45 void setNth(int a, int b) { m_selector->setNth(a, b); }
46 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } 46 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); }
47 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu e); } 47 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu e); }
48 void setForPage() { m_selector->setForPage(); } 48 void setForPage() { m_selector->setForPage(); }
49 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); } 49 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); }
50 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); } 50 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); }
51 void setRelationIsAffectedByPseudoSlotted() { m_selector->setRelationIsAffec tedByPseudoSlotted(); }
52 bool relationIsAffectedByPseudoSlotted() const { return m_selector->relation IsAffectedByPseudoSlotted(); }
51 53
52 void updatePseudoType(const AtomicString& value, bool hasArguments = false) const { m_selector->updatePseudoType(value, hasArguments); } 54 void updatePseudoType(const AtomicString& value, bool hasArguments = false) const { m_selector->updatePseudoType(value, hasArguments); }
53 55
54 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector); 56 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector>>& selectorVector);
55 void setSelectorList(PassOwnPtr<CSSSelectorList>); 57 void setSelectorList(PassOwnPtr<CSSSelectorList>);
56 58
57 bool hasHostPseudoSelector() const; 59 bool hasHostPseudoSelector() const;
58 60
59 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; } 61 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; }
60 62
(...skipping 16 matching lines...) Expand all
77 }; 79 };
78 80
79 inline bool CSSParserSelector::hasShadowPseudo() const 81 inline bool CSSParserSelector::hasShadowPseudo() const
80 { 82 {
81 return m_selector->relation() == CSSSelector::ShadowPseudo; 83 return m_selector->relation() == CSSSelector::ShadowPseudo;
82 } 84 }
83 85
84 } // namespace blink 86 } // namespace blink
85 87
86 #endif 88 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698