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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 bool matchesPseudoElement() const; | 281 bool matchesPseudoElement() const; |
282 bool isUnknownPseudoElement() const; | 282 bool isUnknownPseudoElement() const; |
283 bool isCustomPseudoElement() const; | 283 bool isCustomPseudoElement() const; |
284 bool isDirectAdjacentSelector() const { return m_relation == DirectAdjac
ent; } | 284 bool isDirectAdjacentSelector() const { return m_relation == DirectAdjac
ent; } |
285 bool isSiblingSelector() const; | 285 bool isSiblingSelector() const; |
286 bool isAttributeSelector() const; | 286 bool isAttributeSelector() const; |
287 bool isContentPseudoElement() const; | 287 bool isContentPseudoElement() const; |
288 bool isShadowPseudoElement() const; | 288 bool isShadowPseudoElement() const; |
289 bool isHostPseudoClass() const; | 289 bool isHostPseudoClass() const; |
290 | 290 |
291 // FIXME: selectors with no tagHistory() get a relation() of Descendant.
It should instead be | 291 // FIXME: selectors with no tagHistory() get a relation() of Descendant
(and sometimes even SubSelector). It should instead be |
292 // None. | 292 // None. |
293 Relation relation() const { return static_cast<Relation>(m_relation); } | 293 Relation relation() const { return static_cast<Relation>(m_relation); } |
294 | 294 |
295 bool isLastInSelectorList() const { return m_isLastInSelectorList; } | 295 bool isLastInSelectorList() const { return m_isLastInSelectorList; } |
296 void setLastInSelectorList() { m_isLastInSelectorList = true; } | 296 void setLastInSelectorList() { m_isLastInSelectorList = true; } |
297 bool isLastInTagHistory() const { return m_isLastInTagHistory; } | 297 bool isLastInTagHistory() const { return m_isLastInTagHistory; } |
298 void setNotLastInTagHistory() { m_isLastInTagHistory = false; } | 298 void setNotLastInTagHistory() { m_isLastInTagHistory = false; } |
299 | 299 |
300 // http://dev.w3.org/csswg/selectors4/#compound | 300 // http://dev.w3.org/csswg/selectors4/#compound |
301 bool isCompound() const; | 301 bool isCompound() const; |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
512 if (m_hasRareData) | 512 if (m_hasRareData) |
513 return m_data.m_rareData->m_value; | 513 return m_data.m_rareData->m_value; |
514 // AtomicString is really just a StringImpl* so the cast below is safe. | 514 // AtomicString is really just a StringImpl* so the cast below is safe. |
515 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 515 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
516 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 516 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
517 } | 517 } |
518 | 518 |
519 } // namespace WebCore | 519 } // namespace WebCore |
520 | 520 |
521 #endif // CSSSelector_h | 521 #endif // CSSSelector_h |
OLD | NEW |