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

Side by Side Diff: Source/core/css/CSSParserValues.h

Issue 15657003: Make a '::distributed' pseudo element the first-ever client who can accept a relative selector. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Introduce m_relationIsForShadowDistributed Created 7 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 class CSSParserSelector { 187 class CSSParserSelector {
188 WTF_MAKE_FAST_ALLOCATED; 188 WTF_MAKE_FAST_ALLOCATED;
189 public: 189 public:
190 CSSParserSelector(); 190 CSSParserSelector();
191 explicit CSSParserSelector(const QualifiedName&); 191 explicit CSSParserSelector(const QualifiedName&);
192 ~CSSParserSelector(); 192 ~CSSParserSelector();
193 193
194 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); } 194 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); }
195 195
196 CSSSelector::Relation relation() const { return m_selector->relation(); }
196 void setValue(const AtomicString& value) { m_selector->setValue(value); } 197 void setValue(const AtomicString& value) { m_selector->setValue(value); }
197 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val ue); } 198 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val ue); }
198 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; } 199 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; }
199 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; } 200 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; }
200 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val ue; } 201 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val ue; }
201 void setForPage() { m_selector->setForPage(); } 202 void setForPage() { m_selector->setForPage(); }
203 void setRelationIsForShadowDistributed() { m_selector->setRelationIsForShado wDistributed(); }
202 204
203 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ; 205 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ;
204 206
205 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum entSelector; } 207 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum entSelector; }
206 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr gumentSelector = selector; } 208 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr gumentSelector = selector; }
207 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs eudoElement(); } 209 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs eudoElement(); }
208 CSSParserSelector* findDistributedPseudoElementSelector() const; 210 CSSParserSelector* findDistributedPseudoElementSelector() const;
209 211
210 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; } 212 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; }
211 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen t(); } 213 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen t(); }
(...skipping 15 matching lines...) Expand all
227 }; 229 };
228 230
229 inline bool CSSParserSelector::hasShadowPseudo() const 231 inline bool CSSParserSelector::hasShadowPseudo() const
230 { 232 {
231 return m_selector->relation() == CSSSelector::ShadowPseudo; 233 return m_selector->relation() == CSSSelector::ShadowPseudo;
232 } 234 }
233 235
234 } 236 }
235 237
236 #endif 238 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser.cpp ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698