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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 enum LinkMatchMask { MatchLink = 1, MatchVisited = 2, MatchAll = MatchLink |
MatchVisited }; | 283 enum LinkMatchMask { MatchLink = 1, MatchVisited = 2, MatchAll = MatchLink |
MatchVisited }; |
284 unsigned computeLinkMatchType() const; | 284 unsigned computeLinkMatchType() const; |
285 | 285 |
286 bool isForPage() const { return m_isForPage; } | 286 bool isForPage() const { return m_isForPage; } |
287 void setForPage() { m_isForPage = true; } | 287 void setForPage() { m_isForPage = true; } |
288 | 288 |
289 bool relationIsAffectedByPseudoContent() const { return m_relationIsAffected
ByPseudoContent; } | 289 bool relationIsAffectedByPseudoContent() const { return m_relationIsAffected
ByPseudoContent; } |
290 void setRelationIsAffectedByPseudoContent() { m_relationIsAffectedByPseudoCo
ntent = true; } | 290 void setRelationIsAffectedByPseudoContent() { m_relationIsAffectedByPseudoCo
ntent = true; } |
291 | 291 |
| 292 bool matchesPseudoElement() const; |
| 293 |
292 private: | 294 private: |
293 unsigned m_relation : 3; // enum Relation | 295 unsigned m_relation : 3; // enum Relation |
294 unsigned m_match : 4; // enum Match | 296 unsigned m_match : 4; // enum Match |
295 unsigned m_pseudoType : 8; // enum PseudoType | 297 unsigned m_pseudoType : 8; // enum PseudoType |
296 unsigned m_isLastInSelectorList : 1; | 298 unsigned m_isLastInSelectorList : 1; |
297 unsigned m_isLastInTagHistory : 1; | 299 unsigned m_isLastInTagHistory : 1; |
298 unsigned m_hasRareData : 1; | 300 unsigned m_hasRareData : 1; |
299 unsigned m_isForPage : 1; | 301 unsigned m_isForPage : 1; |
300 unsigned m_tagIsImplicit : 1; | 302 unsigned m_tagIsImplicit : 1; |
301 unsigned m_relationIsAffectedByPseudoContent : 1; | 303 unsigned m_relationIsAffectedByPseudoContent : 1; |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
491 if (m_hasRareData) | 493 if (m_hasRareData) |
492 return m_data.m_rareData->m_serializingValue; | 494 return m_data.m_rareData->m_serializingValue; |
493 // AtomicString is really just a StringImpl* so the cast below is safe. | 495 // AtomicString is really just a StringImpl* so the cast below is safe. |
494 // FIXME: Perhaps call sites could be changed to accept StringImpl? | 496 // FIXME: Perhaps call sites could be changed to accept StringImpl? |
495 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); | 497 return *reinterpret_cast<const AtomicString*>(&m_data.m_value); |
496 } | 498 } |
497 | 499 |
498 } // namespace blink | 500 } // namespace blink |
499 | 501 |
500 #endif // CSSSelector_h | 502 #endif // CSSSelector_h |
OLD | NEW |