| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 void setArgument(const AtomicString&); | 283 void setArgument(const AtomicString&); |
| 284 void setSelectorList(PassOwnPtr<CSSSelectorList>); | 284 void setSelectorList(PassOwnPtr<CSSSelectorList>); |
| 285 void setMatchUserAgentOnly(); | 285 void setMatchUserAgentOnly(); |
| 286 | 286 |
| 287 bool parseNth() const; | 287 bool parseNth() const; |
| 288 bool matchNth(int count) const; | 288 bool matchNth(int count) const; |
| 289 | 289 |
| 290 bool matchesPseudoElement() const; | 290 bool matchesPseudoElement() const; |
| 291 bool isCustomPseudoElement() const; | 291 bool isCustomPseudoElement() const; |
| 292 bool isDirectAdjacentSelector() const { return m_relation == DirectAdjac
ent; } | 292 bool isDirectAdjacentSelector() const { return m_relation == DirectAdjac
ent; } |
| 293 bool isAdjacentSelector() const { return m_relation == DirectAdjacent ||
m_relation == IndirectAdjacent; } |
| 294 bool isShadowSelector() const { return m_relation == ShadowPseudo || m_r
elation == ShadowDeep; } |
| 293 bool isSiblingSelector() const; | 295 bool isSiblingSelector() const; |
| 294 bool isAttributeSelector() const; | 296 bool isAttributeSelector() const; |
| 295 bool isContentPseudoElement() const; | 297 bool isContentPseudoElement() const; |
| 296 bool isShadowPseudoElement() const; | 298 bool isShadowPseudoElement() const; |
| 297 bool isHostPseudoClass() const; | 299 bool isHostPseudoClass() const; |
| 298 | 300 |
| 299 // FIXME: selectors with no tagHistory() get a relation() of Descendant
(and sometimes even SubSelector). It should instead be | 301 // FIXME: selectors with no tagHistory() get a relation() of Descendant
(and sometimes even SubSelector). It should instead be |
| 300 // None. | 302 // None. |
| 301 Relation relation() const { return static_cast<Relation>(m_relation); } | 303 Relation relation() const { return static_cast<Relation>(m_relation); } |
| 302 void setRelation(Relation relation) | 304 void setRelation(Relation relation) |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 if (m_hasRareData) | 538 if (m_hasRareData) |
| 537 return m_data.m_rareData->m_value; | 539 return m_data.m_rareData->m_value; |
| 538 // AtomicString is really just a StringImpl* so the cast below is safe. | 540 // AtomicString is really just a StringImpl* so the cast below is safe. |
| 539 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 541 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
| 540 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 542 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
| 541 } | 543 } |
| 542 | 544 |
| 543 } // namespace blink | 545 } // namespace blink |
| 544 | 546 |
| 545 #endif // CSSSelector_h | 547 #endif // CSSSelector_h |
| OLD | NEW |