| 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 PseudoNoButton, | 198 PseudoNoButton, |
| 199 PseudoSelection, | 199 PseudoSelection, |
| 200 PseudoLeftPage, | 200 PseudoLeftPage, |
| 201 PseudoRightPage, | 201 PseudoRightPage, |
| 202 PseudoFirstPage, | 202 PseudoFirstPage, |
| 203 PseudoFullScreen, | 203 PseudoFullScreen, |
| 204 PseudoFullScreenDocument, | 204 PseudoFullScreenDocument, |
| 205 PseudoFullScreenAncestor, | 205 PseudoFullScreenAncestor, |
| 206 PseudoInRange, | 206 PseudoInRange, |
| 207 PseudoOutOfRange, | 207 PseudoOutOfRange, |
| 208 PseudoUserAgentCustomElement, | |
| 209 PseudoWebKitCustomElement, | 208 PseudoWebKitCustomElement, |
| 210 PseudoCue, | 209 PseudoCue, |
| 211 PseudoFutureCue, | 210 PseudoFutureCue, |
| 212 PseudoPastCue, | 211 PseudoPastCue, |
| 213 PseudoUnresolved, | 212 PseudoUnresolved, |
| 214 PseudoContent, | 213 PseudoContent, |
| 215 PseudoHost, | 214 PseudoHost, |
| 216 PseudoHostContext, | 215 PseudoHostContext, |
| 217 PseudoShadow, | 216 PseudoShadow, |
| 218 PseudoSpatialNavigationFocus, | 217 PseudoSpatialNavigationFocus, |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 | 397 |
| 399 inline bool CSSSelector::matchesPseudoElement() const | 398 inline bool CSSSelector::matchesPseudoElement() const |
| 400 { | 399 { |
| 401 if (m_pseudoType == PseudoUnknown) | 400 if (m_pseudoType == PseudoUnknown) |
| 402 extractPseudoType(); | 401 extractPseudoType(); |
| 403 return m_match == PseudoElement; | 402 return m_match == PseudoElement; |
| 404 } | 403 } |
| 405 | 404 |
| 406 inline bool CSSSelector::isCustomPseudoElement() const | 405 inline bool CSSSelector::isCustomPseudoElement() const |
| 407 { | 406 { |
| 408 return m_match == PseudoElement && (m_pseudoType == PseudoUserAgentCustomEle
ment || m_pseudoType == PseudoWebKitCustomElement); | 407 return m_match == PseudoElement && m_pseudoType == PseudoWebKitCustomElement
; |
| 409 } | 408 } |
| 410 | 409 |
| 411 inline bool CSSSelector::isHostPseudoClass() const | 410 inline bool CSSSelector::isHostPseudoClass() const |
| 412 { | 411 { |
| 413 return m_match == PseudoClass && (m_pseudoType == PseudoHost || m_pseudoType
== PseudoHostContext); | 412 return m_match == PseudoClass && (m_pseudoType == PseudoHost || m_pseudoType
== PseudoHostContext); |
| 414 } | 413 } |
| 415 | 414 |
| 416 inline bool CSSSelector::isSiblingSelector() const | 415 inline bool CSSSelector::isSiblingSelector() const |
| 417 { | 416 { |
| 418 PseudoType type = pseudoType(); | 417 PseudoType type = pseudoType(); |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 548 if (m_hasRareData) | 547 if (m_hasRareData) |
| 549 return m_data.m_rareData->m_value; | 548 return m_data.m_rareData->m_value; |
| 550 // AtomicString is really just a StringImpl* so the cast below is safe. | 549 // AtomicString is really just a StringImpl* so the cast below is safe. |
| 551 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 550 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
| 552 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 551 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
| 553 } | 552 } |
| 554 | 553 |
| 555 } // namespace blink | 554 } // namespace blink |
| 556 | 555 |
| 557 #endif // CSSSelector_h | 556 #endif // CSSSelector_h |
| OLD | NEW |