| 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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 755 | 755 |
| 756 if (const CSSSelector* tagHistory = cs->tagHistory()) { | 756 if (const CSSSelector* tagHistory = cs->tagHistory()) { |
| 757 switch (cs->relation()) { | 757 switch (cs->relation()) { |
| 758 case Descendant: | 758 case Descendant: |
| 759 return tagHistory->selectorText(" " + str.toString() + rightSide); | 759 return tagHistory->selectorText(" " + str.toString() + rightSide); |
| 760 case Child: | 760 case Child: |
| 761 return tagHistory->selectorText(" > " + str.toString() + rightSide); | 761 return tagHistory->selectorText(" > " + str.toString() + rightSide); |
| 762 case ShadowDeep: | 762 case ShadowDeep: |
| 763 return tagHistory->selectorText(" /deep/ " + str.toString() + | 763 return tagHistory->selectorText(" /deep/ " + str.toString() + |
| 764 rightSide); | 764 rightSide); |
| 765 case ShadowPiercingDescendant: |
| 766 return tagHistory->selectorText(" >>> " + str.toString() + rightSide); |
| 765 case DirectAdjacent: | 767 case DirectAdjacent: |
| 766 return tagHistory->selectorText(" + " + str.toString() + rightSide); | 768 return tagHistory->selectorText(" + " + str.toString() + rightSide); |
| 767 case IndirectAdjacent: | 769 case IndirectAdjacent: |
| 768 return tagHistory->selectorText(" ~ " + str.toString() + rightSide); | 770 return tagHistory->selectorText(" ~ " + str.toString() + rightSide); |
| 769 case SubSelector: | 771 case SubSelector: |
| 770 ASSERT_NOT_REACHED(); | 772 ASSERT_NOT_REACHED(); |
| 771 case ShadowPseudo: | 773 case ShadowPseudo: |
| 772 case ShadowSlot: | 774 case ShadowSlot: |
| 773 return tagHistory->selectorText(str.toString() + rightSide); | 775 return tagHistory->selectorText(str.toString() + rightSide); |
| 774 } | 776 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1001 if (count < nthBValue()) | 1003 if (count < nthBValue()) |
| 1002 return false; | 1004 return false; |
| 1003 return (count - nthBValue()) % nthAValue() == 0; | 1005 return (count - nthBValue()) % nthAValue() == 0; |
| 1004 } | 1006 } |
| 1005 if (count > nthBValue()) | 1007 if (count > nthBValue()) |
| 1006 return false; | 1008 return false; |
| 1007 return (nthBValue() - count) % (-nthAValue()) == 0; | 1009 return (nthBValue() - count) % (-nthAValue()) == 0; |
| 1008 } | 1010 } |
| 1009 | 1011 |
| 1010 } // namespace blink | 1012 } // namespace blink |
| OLD | NEW |