| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |