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

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

Issue 21151005: Implement ::content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Patch for landing Created 7 years, 4 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-in.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 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); } 205 PassOwnPtr<CSSSelector> releaseSelector() { return m_selector.release(); }
206 206
207 CSSSelector::Relation relation() const { return m_selector->relation(); } 207 CSSSelector::Relation relation() const { return m_selector->relation(); }
208 void setValue(const AtomicString& value) { m_selector->setValue(value); } 208 void setValue(const AtomicString& value) { m_selector->setValue(value); }
209 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val ue); } 209 void setAttribute(const QualifiedName& value) { m_selector->setAttribute(val ue); }
210 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; } 210 void setArgument(const AtomicString& value) { m_selector->setArgument(value) ; }
211 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; } 211 void setMatch(CSSSelector::Match value) { m_selector->m_match = value; }
212 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val ue; } 212 void setRelation(CSSSelector::Relation value) { m_selector->m_relation = val ue; }
213 void setForPage() { m_selector->setForPage(); } 213 void setForPage() { m_selector->setForPage(); }
214 void setRelationIsForShadowDistributed() { m_selector->setRelationIsForShado wDistributed(); } 214 void setRelationIsAffectedByPseudoContent() { m_selector->setRelationIsAffec tedByPseudoContent(); }
215 bool relationIsAffectedByPseudoContent() const { return m_selector->relation IsAffectedByPseudoContent(); }
215 void setMatchUserAgentOnly() { m_selector->setMatchUserAgentOnly(); } 216 void setMatchUserAgentOnly() { m_selector->setMatchUserAgentOnly(); }
216 217
217 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ; 218 void adoptSelectorVector(Vector<OwnPtr<CSSParserSelector> >& selectorVector) ;
218 219
219 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum entSelector; } 220 CSSParserSelector* functionArgumentSelector() const { return m_functionArgum entSelector; }
220 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr gumentSelector = selector; } 221 void setFunctionArgumentSelector(CSSParserSelector* selector) { m_functionAr gumentSelector = selector; }
221 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs eudoElement(); } 222 bool isDistributedPseudoElement() const { return m_selector->isDistributedPs eudoElement(); }
222 CSSParserSelector* findDistributedPseudoElementSelector() const; 223 CSSParserSelector* findDistributedPseudoElementSelector() const;
224 bool isContentPseudoElement() const { return m_selector->isContentPseudoElem ent(); }
223 225
224 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; } 226 CSSSelector::PseudoType pseudoType() const { return m_selector->pseudoType() ; }
225 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen t(); } 227 bool isCustomPseudoElement() const { return m_selector->isCustomPseudoElemen t(); }
226 bool needsCrossingTreeScopeBoundary() const { return isCustomPseudoElement() || pseudoType() == CSSSelector::PseudoCue; } 228 bool needsCrossingTreeScopeBoundary() const { return isCustomPseudoElement() || pseudoType() == CSSSelector::PseudoCue; }
227 229
228 bool isSimple() const; 230 bool isSimple() const;
229 bool hasShadowPseudo() const; 231 bool hasShadowPseudo() const;
230 232
231 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); } 233 CSSParserSelector* tagHistory() const { return m_tagHistory.get(); }
232 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory = selector; } 234 void setTagHistory(PassOwnPtr<CSSParserSelector> selector) { m_tagHistory = selector; }
(...skipping 24 matching lines...) Expand all
257 inline void CSSParserValue::setFromFunction(CSSParserFunction* function) 259 inline void CSSParserValue::setFromFunction(CSSParserFunction* function)
258 { 260 {
259 id = CSSValueInvalid; 261 id = CSSValueInvalid;
260 this->function = function; 262 this->function = function;
261 unit = Function; 263 unit = Function;
262 } 264 }
263 265
264 } 266 }
265 267
266 #endif 268 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSParser-in.cpp ('k') | Source/core/css/CSSSelector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698