| 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 unsigned computeLinkMatchType() const; | 289 unsigned computeLinkMatchType() const; |
| 290 | 290 |
| 291 bool isForPage() const { return m_isForPage; } | 291 bool isForPage() const { return m_isForPage; } |
| 292 void setForPage() { m_isForPage = true; } | 292 void setForPage() { m_isForPage = true; } |
| 293 | 293 |
| 294 bool relationIsAffectedByPseudoContent() const { return m_relationIsAffected
ByPseudoContent; } | 294 bool relationIsAffectedByPseudoContent() const { return m_relationIsAffected
ByPseudoContent; } |
| 295 void setRelationIsAffectedByPseudoContent() { m_relationIsAffectedByPseudoCo
ntent = true; } | 295 void setRelationIsAffectedByPseudoContent() { m_relationIsAffectedByPseudoCo
ntent = true; } |
| 296 | 296 |
| 297 bool matchesPseudoElement() const; | 297 bool matchesPseudoElement() const; |
| 298 | 298 |
| 299 bool hasContentPseudo() const; |
| 300 bool hasSlottedPseudo() const; |
| 301 bool hasDeepCombinatorOrShadowPseudo() const; |
| 302 bool needsUpdatedDistribution() const; |
| 303 |
| 299 private: | 304 private: |
| 300 unsigned m_relation : 3; // enum RelationType | 305 unsigned m_relation : 3; // enum RelationType |
| 301 unsigned m_match : 4; // enum MatchType | 306 unsigned m_match : 4; // enum MatchType |
| 302 unsigned m_pseudoType : 8; // enum PseudoType | 307 unsigned m_pseudoType : 8; // enum PseudoType |
| 303 unsigned m_isLastInSelectorList : 1; | 308 unsigned m_isLastInSelectorList : 1; |
| 304 unsigned m_isLastInTagHistory : 1; | 309 unsigned m_isLastInTagHistory : 1; |
| 305 unsigned m_hasRareData : 1; | 310 unsigned m_hasRareData : 1; |
| 306 unsigned m_isForPage : 1; | 311 unsigned m_isForPage : 1; |
| 307 unsigned m_tagIsImplicit : 1; | 312 unsigned m_tagIsImplicit : 1; |
| 308 unsigned m_relationIsAffectedByPseudoContent : 1; | 313 unsigned m_relationIsAffectedByPseudoContent : 1; |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 { | 493 { |
| 489 return m_pseudoType == PseudoHover | 494 return m_pseudoType == PseudoHover |
| 490 || m_pseudoType == PseudoActive | 495 || m_pseudoType == PseudoActive |
| 491 || m_pseudoType == PseudoFocus | 496 || m_pseudoType == PseudoFocus |
| 492 || m_pseudoType == PseudoDrag; | 497 || m_pseudoType == PseudoDrag; |
| 493 } | 498 } |
| 494 | 499 |
| 495 } // namespace blink | 500 } // namespace blink |
| 496 | 501 |
| 497 #endif // CSSSelector_h | 502 #endif // CSSSelector_h |
| OLD | NEW |