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

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

Issue 792763003: CSS Parser: Implement selector parsing (pseudo-classes/elements) [3/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@selector2
Patch Set: rebase & handle trailing whitespace Created 5 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
« no previous file with comments | « no previous file | Source/core/css/parser/CSSParserValues.cpp » ('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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 void setValue(const AtomicString& value) { m_selector->setValue(value); } 228 void setValue(const AtomicString& value) { m_selector->setValue(value); }
229 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp e matchType) { m_selector->setAttribute(value, matchType); } 229 void setAttribute(const QualifiedName& value, CSSSelector::AttributeMatchTyp e matchType) { m_selector->setAttribute(value, matchType); }
230 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; } 230 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; }
231 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); } 231 void setMatch(CSSSelector::Match value) { m_selector->setMatch(value); }
232 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu e); } 232 void setRelation(CSSSelector::Relation value) { m_selector->setRelation(valu e); }
233 void setForPage() { m_selector->setForPage(); } 233 void setForPage() { m_selector->setForPage(); }
234 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); } 234 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); }
235 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); } 235 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); }
236 236
237 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ; 237 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ;
238 void setSelectorList(PassOwnPtr<CSSSelectorList>);
238 239
239 bool hasHostPseudoSelector() const; 240 bool hasHostPseudoSelector() const;
240 bool isContentPseudoElement() const { return m_selector->isContentPseudoElem ent(); } 241 bool isContentPseudoElement() const { return m_selector->isContentPseudoElem ent(); }
241 242
242 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; } 243 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; }
243 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen t(); } 244 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen t(); }
244 bool crossesTreeScopes() const { return isCustomPseudoElement() || pseudoTyp e() == CSSSelector::PseudoCue || pseudoType() == CSSSelector::PseudoShadow; } 245 bool crossesTreeScopes() const { return isCustomPseudoElement() || pseudoTyp e() == CSSSelector::PseudoCue || pseudoType() == CSSSelector::PseudoShadow; }
245 246
246 bool isSimple() const; 247 bool isSimple() const;
247 bool hasShadowPseudo() const; 248 bool hasShadowPseudo() const;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 { 295 {
295 id = CSSValueInvalid; 296 id = CSSValueInvalid;
296 this->valueList = valueList.leakPtr(); 297 this->valueList = valueList.leakPtr();
297 unit = ValueList; 298 unit = ValueList;
298 isInt = false; 299 isInt = false;
299 } 300 }
300 301
301 } 302 }
302 303
303 #endif 304 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/parser/CSSParserValues.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698