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

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

Issue 603443002: Don't add '(' to FUNCTION token names (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@internalsetshadowunused
Patch Set: Created 6 years, 3 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 | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSSelector.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) 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 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 CaseInsensitive, 245 CaseInsensitive,
246 }; 246 };
247 247
248 PseudoType pseudoType() const 248 PseudoType pseudoType() const
249 { 249 {
250 if (m_pseudoType == PseudoNotParsed) 250 if (m_pseudoType == PseudoNotParsed)
251 extractPseudoType(); 251 extractPseudoType();
252 return static_cast<PseudoType>(m_pseudoType); 252 return static_cast<PseudoType>(m_pseudoType);
253 } 253 }
254 254
255 static PseudoType parsePseudoType(const AtomicString&); 255 static PseudoType parsePseudoType(const AtomicString&, bool hasArguments );
256 static PseudoId pseudoId(PseudoType); 256 static PseudoId pseudoId(PseudoType);
257 257
258 // Selectors are kept in an array by CSSSelectorList. The next component of the selector is 258 // Selectors are kept in an array by CSSSelectorList. The next component of the selector is
259 // the next item in the array. 259 // the next item in the array.
260 const CSSSelector* tagHistory() const { return m_isLastInTagHistory ? 0 : const_cast<CSSSelector*>(this + 1); } 260 const CSSSelector* tagHistory() const { return m_isLastInTagHistory ? 0 : const_cast<CSSSelector*>(this + 1); }
261 261
262 const QualifiedName& tagQName() const; 262 const QualifiedName& tagQName() const;
263 const AtomicString& value() const; 263 const AtomicString& value() const;
264 264
265 // WARNING: Use of QualifiedName by attribute() is a lie. 265 // WARNING: Use of QualifiedName by attribute() is a lie.
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 if (m_hasRareData) 536 if (m_hasRareData)
537 return m_data.m_rareData->m_value; 537 return m_data.m_rareData->m_value;
538 // AtomicString is really just a StringImpl* so the cast below is safe. 538 // AtomicString is really just a StringImpl* so the cast below is safe.
539 // FIXME: Perhaps call sites could be changed to accept StringImpl? 539 // FIXME: Perhaps call sites could be changed to accept StringImpl?
540 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); 540 return *reinterpret_cast<const AtomicString*>(&m_data.m_value);
541 } 541 }
542 542
543 } // namespace blink 543 } // namespace blink
544 544
545 #endif // CSSSelector_h 545 #endif // CSSSelector_h
OLDNEW
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSSelector.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698