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

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: 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
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(); }
202 203
203 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ; 204 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ;
204 205
205 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum entSelector; } 206 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum entSelector; }
(...skipping 21 matching lines...) Expand all
227 }; 228 };
228 229
229 inline bool CSSParserSelector::hasShadowPseudo() const 230 inline bool CSSParserSelector::hasShadowPseudo() const
230 { 231 {
231 return m_selector->relation() == CSSSelector::ShadowPseudo; 232 return m_selector->relation() == CSSSelector::ShadowPseudo;
232 } 233 }
233 234
234 } 235 }
235 236
236 #endif 237 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698