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

Side by Side Diff: sky/engine/core/css/CSSSelector.h

Issue 883443003: Remove PseudoId. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * 1999 Waldo Bastian (bastian@kde.org) 3 * 1999 Waldo Bastian (bastian@kde.org)
4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 }; 130 };
131 131
132 PseudoType pseudoType() const 132 PseudoType pseudoType() const
133 { 133 {
134 if (m_pseudoType == PseudoNotParsed) 134 if (m_pseudoType == PseudoNotParsed)
135 extractPseudoType(); 135 extractPseudoType();
136 return static_cast<PseudoType>(m_pseudoType); 136 return static_cast<PseudoType>(m_pseudoType);
137 } 137 }
138 138
139 static PseudoType parsePseudoType(const AtomicString&); 139 static PseudoType parsePseudoType(const AtomicString&);
140 static PseudoId pseudoId(PseudoType);
141 140
142 // Selectors are kept in an array by CSSSelectorList. The next component of the selector is 141 // Selectors are kept in an array by CSSSelectorList. The next component of the selector is
143 // the next item in the array. 142 // the next item in the array.
144 const CSSSelector* tagHistory() const { return m_isLastInTagHistory ? 0 : const_cast<CSSSelector*>(this + 1); } 143 const CSSSelector* tagHistory() const { return m_isLastInTagHistory ? 0 : const_cast<CSSSelector*>(this + 1); }
145 144
146 const QualifiedName& tagQName() const; 145 const QualifiedName& tagQName() const;
147 const AtomicString& value() const; 146 const AtomicString& value() const;
148 147
149 // WARNING: Use of QualifiedName by attribute() is a lie. 148 // WARNING: Use of QualifiedName by attribute() is a lie.
150 // attribute() will return a QualifiedName with prefix and namespaceURI 149 // attribute() will return a QualifiedName with prefix and namespaceURI
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 if (m_hasRareData) 339 if (m_hasRareData)
341 return m_data.m_rareData->m_value; 340 return m_data.m_rareData->m_value;
342 // AtomicString is really just a StringImpl* so the cast below is safe. 341 // AtomicString is really just a StringImpl* so the cast below is safe.
343 // FIXME: Perhaps call sites could be changed to accept StringImpl? 342 // FIXME: Perhaps call sites could be changed to accept StringImpl?
344 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 343 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
345 } 344 }
346 345
347 } // namespace blink 346 } // namespace blink
348 347
349 #endif // SKY_ENGINE_CORE_CSS_CSSSELECTOR_H_ 348 #endif // SKY_ENGINE_CORE_CSS_CSSSELECTOR_H_
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSComputedStyleDeclaration.cpp ('k') | sky/engine/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698