| 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 * 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch) | 4 * 2001 Andreas Schlapbach (schlpbch@iam.unibe.ch) |
| 5 * 2001-2003 Dirk Mueller (mueller@kde.org) | 5 * 2001-2003 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights | 6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 7 * reserved. | 7 * reserved. |
| 8 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) | 8 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) |
| 9 * Copyright (C) 2010 Google Inc. All rights reserved. | 9 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 10 * | 10 * |
| (...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 962 [](const CSSSelector& selector) -> bool { | 962 [](const CSSSelector& selector) -> bool { |
| 963 return selector.getPseudoType() == CSSSelector::PseudoSlotted; | 963 return selector.getPseudoType() == CSSSelector::PseudoSlotted; |
| 964 }, | 964 }, |
| 965 *this); | 965 *this); |
| 966 } | 966 } |
| 967 | 967 |
| 968 bool CSSSelector::hasDeepCombinatorOrShadowPseudo() const { | 968 bool CSSSelector::hasDeepCombinatorOrShadowPseudo() const { |
| 969 return forEachTagHistory( | 969 return forEachTagHistory( |
| 970 [](const CSSSelector& selector) -> bool { | 970 [](const CSSSelector& selector) -> bool { |
| 971 return selector.relation() == CSSSelector::ShadowDeep || | 971 return selector.relation() == CSSSelector::ShadowDeep || |
| 972 selector.relation() == CSSSelector::ShadowPiercingDescendant || |
| 972 selector.getPseudoType() == CSSSelector::PseudoShadow; | 973 selector.getPseudoType() == CSSSelector::PseudoShadow; |
| 973 }, | 974 }, |
| 974 *this); | 975 *this); |
| 975 } | 976 } |
| 976 | 977 |
| 977 bool CSSSelector::needsUpdatedDistribution() const { | 978 bool CSSSelector::needsUpdatedDistribution() const { |
| 978 return forEachTagHistory( | 979 return forEachTagHistory( |
| 979 [](const CSSSelector& selector) -> bool { | 980 [](const CSSSelector& selector) -> bool { |
| 980 return selector.relationIsAffectedByPseudoContent() || | 981 return selector.relationIsAffectedByPseudoContent() || |
| 981 selector.getPseudoType() == CSSSelector::PseudoSlotted || | 982 selector.getPseudoType() == CSSSelector::PseudoSlotted || |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1001 if (count < nthBValue()) | 1002 if (count < nthBValue()) |
| 1002 return false; | 1003 return false; |
| 1003 return (count - nthBValue()) % nthAValue() == 0; | 1004 return (count - nthBValue()) % nthAValue() == 0; |
| 1004 } | 1005 } |
| 1005 if (count > nthBValue()) | 1006 if (count > nthBValue()) |
| 1006 return false; | 1007 return false; |
| 1007 return (nthBValue() - count) % (-nthAValue()) == 0; | 1008 return (nthBValue() - count) % (-nthAValue()) == 0; |
| 1008 } | 1009 } |
| 1009 | 1010 |
| 1010 } // namespace blink | 1011 } // namespace blink |
| OLD | NEW |