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 | 4 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights |
5 * reserved. | 5 * reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 }; | 231 }; |
232 | 232 |
233 PseudoType getPseudoType() const { | 233 PseudoType getPseudoType() const { |
234 return static_cast<PseudoType>(m_pseudoType); | 234 return static_cast<PseudoType>(m_pseudoType); |
235 } | 235 } |
236 void updatePseudoType(const AtomicString&, bool hasArguments); | 236 void updatePseudoType(const AtomicString&, bool hasArguments); |
237 | 237 |
238 static PseudoType parsePseudoType(const AtomicString&, bool hasArguments); | 238 static PseudoType parsePseudoType(const AtomicString&, bool hasArguments); |
239 static PseudoId parsePseudoId(const String&); | 239 static PseudoId parsePseudoId(const String&); |
240 static PseudoId pseudoId(PseudoType); | 240 static PseudoId pseudoId(PseudoType); |
| 241 static AtomicString aliasForShadowPseudoId(const AtomicString&); |
241 | 242 |
242 // Selectors are kept in an array by CSSSelectorList. The next component of | 243 // Selectors are kept in an array by CSSSelectorList. The next component of |
243 // the selector is the next item in the array. | 244 // the selector is the next item in the array. |
244 const CSSSelector* tagHistory() const { | 245 const CSSSelector* tagHistory() const { |
245 return m_isLastInTagHistory ? 0 : const_cast<CSSSelector*>(this + 1); | 246 return m_isLastInTagHistory ? 0 : const_cast<CSSSelector*>(this + 1); |
246 } | 247 } |
247 | 248 |
248 const QualifiedName& tagQName() const; | 249 const QualifiedName& tagQName() const; |
249 const AtomicString& value() const; | 250 const AtomicString& value() const; |
250 const AtomicString& serializingValue() const; | 251 const AtomicString& serializingValue() const; |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
533 } | 534 } |
534 | 535 |
535 inline bool CSSSelector::isIdClassOrAttributeSelector() const { | 536 inline bool CSSSelector::isIdClassOrAttributeSelector() const { |
536 return isAttributeSelector() || match() == CSSSelector::Id || | 537 return isAttributeSelector() || match() == CSSSelector::Id || |
537 match() == CSSSelector::Class; | 538 match() == CSSSelector::Class; |
538 } | 539 } |
539 | 540 |
540 } // namespace blink | 541 } // namespace blink |
541 | 542 |
542 #endif // CSSSelector_h | 543 #endif // CSSSelector_h |
OLD | NEW |