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 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 void setArgument(const AtomicString&); | 248 void setArgument(const AtomicString&); |
249 void setSelectorList(PassOwnPtr<CSSSelectorList>); | 249 void setSelectorList(PassOwnPtr<CSSSelectorList>); |
250 | 250 |
251 void setNth(int a, int b); | 251 void setNth(int a, int b); |
252 bool matchNth(int count) const; | 252 bool matchNth(int count) const; |
253 | 253 |
254 bool isAdjacentSelector() const { return m_relation == DirectAdjacent || m_r
elation == IndirectAdjacent; } | 254 bool isAdjacentSelector() const { return m_relation == DirectAdjacent || m_r
elation == IndirectAdjacent; } |
255 bool isShadowSelector() const { return m_relation == ShadowPseudo || m_relat
ion == ShadowDeep; } | 255 bool isShadowSelector() const { return m_relation == ShadowPseudo || m_relat
ion == ShadowDeep; } |
256 bool isAttributeSelector() const { return m_match >= FirstAttributeSelectorM
atch; } | 256 bool isAttributeSelector() const { return m_match >= FirstAttributeSelectorM
atch; } |
257 bool isHostPseudoClass() const { return m_pseudoType == PseudoHost || m_pseu
doType == PseudoHostContext; } | 257 bool isHostPseudoClass() const { return m_pseudoType == PseudoHost || m_pseu
doType == PseudoHostContext; } |
258 bool isInsertionPointCrossing() const { return m_pseudoType == PseudoHostCon
text || m_pseudoType == PseudoContent || m_pseudoType == PseudoSlotted; } | 258 bool isInsertionPointCrossing() const { return m_pseudoType == PseudoHostCon
text || m_pseudoType == PseudoContent; } |
259 | 259 |
260 Relation relation() const { return static_cast<Relation>(m_relation); } | 260 Relation relation() const { return static_cast<Relation>(m_relation); } |
261 void setRelation(Relation relation) | 261 void setRelation(Relation relation) |
262 { | 262 { |
263 m_relation = relation; | 263 m_relation = relation; |
264 ASSERT(static_cast<Relation>(m_relation) == relation); // using a bitfie
ld. | 264 ASSERT(static_cast<Relation>(m_relation) == relation); // using a bitfie
ld. |
265 } | 265 } |
266 | 266 |
267 Match match() const { return static_cast<Match>(m_match); } | 267 Match match() const { return static_cast<Match>(m_match); } |
268 void setMatch(Match match) | 268 void setMatch(Match match) |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 if (m_hasRareData) | 474 if (m_hasRareData) |
475 return m_data.m_rareData->m_serializingValue; | 475 return m_data.m_rareData->m_serializingValue; |
476 // AtomicString is really just a StringImpl* so the cast below is safe. | 476 // AtomicString is really just a StringImpl* so the cast below is safe. |
477 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 477 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
478 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 478 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
479 } | 479 } |
480 | 480 |
481 } // namespace blink | 481 } // namespace blink |
482 | 482 |
483 #endif // CSSSelector_h | 483 #endif // CSSSelector_h |
OLD | NEW |