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 reserv
ed. | 6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
7 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) | 7 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) |
8 * Copyright (C) 2010 Google Inc. All rights reserved. | 8 * Copyright (C) 2010 Google Inc. All rights reserved. |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 | 453 |
454 m_pseudoType = parsePseudoType(value(), !argument().isNull() || selectorList
()); | 454 m_pseudoType = parsePseudoType(value(), !argument().isNull() || selectorList
()); |
455 | 455 |
456 bool element = false; // pseudo-element | 456 bool element = false; // pseudo-element |
457 bool compat = false; // single colon compatbility mode | 457 bool compat = false; // single colon compatbility mode |
458 bool isPagePseudoClass = false; // Page pseudo-class | 458 bool isPagePseudoClass = false; // Page pseudo-class |
459 | 459 |
460 switch (m_pseudoType) { | 460 switch (m_pseudoType) { |
461 case PseudoAfter: | 461 case PseudoAfter: |
462 case PseudoBefore: | 462 case PseudoBefore: |
463 case PseudoCue: | |
464 case PseudoFirstLetter: | 463 case PseudoFirstLetter: |
465 case PseudoFirstLine: | 464 case PseudoFirstLine: |
466 compat = true; | 465 compat = true; |
467 case PseudoBackdrop: | 466 case PseudoBackdrop: |
| 467 case PseudoCue: |
468 case PseudoResizer: | 468 case PseudoResizer: |
469 case PseudoScrollbar: | 469 case PseudoScrollbar: |
470 case PseudoScrollbarCorner: | 470 case PseudoScrollbarCorner: |
471 case PseudoScrollbarButton: | 471 case PseudoScrollbarButton: |
472 case PseudoScrollbarThumb: | 472 case PseudoScrollbarThumb: |
473 case PseudoScrollbarTrack: | 473 case PseudoScrollbarTrack: |
474 case PseudoScrollbarTrackPiece: | 474 case PseudoScrollbarTrackPiece: |
475 case PseudoSelection: | 475 case PseudoSelection: |
476 case PseudoWebKitCustomElement: | 476 case PseudoWebKitCustomElement: |
477 case PseudoContent: | 477 case PseudoContent: |
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 if (count < nthBValue()) | 908 if (count < nthBValue()) |
909 return false; | 909 return false; |
910 return (count - nthBValue()) % nthAValue() == 0; | 910 return (count - nthBValue()) % nthAValue() == 0; |
911 } | 911 } |
912 if (count > nthBValue()) | 912 if (count > nthBValue()) |
913 return false; | 913 return false; |
914 return (nthBValue() - count) % (-nthAValue()) == 0; | 914 return (nthBValue() - count) % (-nthAValue()) == 0; |
915 } | 915 } |
916 | 916 |
917 } // namespace blink | 917 } // namespace blink |
OLD | NEW |