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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 case PseudoHover: | 216 case PseudoHover: |
217 case PseudoDrag: | 217 case PseudoDrag: |
218 case PseudoFocus: | 218 case PseudoFocus: |
219 case PseudoActive: | 219 case PseudoActive: |
220 case PseudoChecked: | 220 case PseudoChecked: |
221 case PseudoEnabled: | 221 case PseudoEnabled: |
222 case PseudoFullPageMedia: | 222 case PseudoFullPageMedia: |
223 case PseudoDefault: | 223 case PseudoDefault: |
224 case PseudoDisabled: | 224 case PseudoDisabled: |
225 case PseudoOptional: | 225 case PseudoOptional: |
| 226 case PseudoPlaceholder: |
226 case PseudoPlaceholderShown: | 227 case PseudoPlaceholderShown: |
227 case PseudoRequired: | 228 case PseudoRequired: |
228 case PseudoReadOnly: | 229 case PseudoReadOnly: |
229 case PseudoReadWrite: | 230 case PseudoReadWrite: |
230 case PseudoValid: | 231 case PseudoValid: |
231 case PseudoInvalid: | 232 case PseudoInvalid: |
232 case PseudoIndeterminate: | 233 case PseudoIndeterminate: |
233 case PseudoTarget: | 234 case PseudoTarget: |
234 case PseudoLang: | 235 case PseudoLang: |
235 case PseudoNot: | 236 case PseudoNot: |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 {"last-child", CSSSelector::PseudoLastChild}, | 351 {"last-child", CSSSelector::PseudoLastChild}, |
351 {"last-of-type", CSSSelector::PseudoLastOfType}, | 352 {"last-of-type", CSSSelector::PseudoLastOfType}, |
352 {"left", CSSSelector::PseudoLeftPage}, | 353 {"left", CSSSelector::PseudoLeftPage}, |
353 {"link", CSSSelector::PseudoLink}, | 354 {"link", CSSSelector::PseudoLink}, |
354 {"no-button", CSSSelector::PseudoNoButton}, | 355 {"no-button", CSSSelector::PseudoNoButton}, |
355 {"only-child", CSSSelector::PseudoOnlyChild}, | 356 {"only-child", CSSSelector::PseudoOnlyChild}, |
356 {"only-of-type", CSSSelector::PseudoOnlyOfType}, | 357 {"only-of-type", CSSSelector::PseudoOnlyOfType}, |
357 {"optional", CSSSelector::PseudoOptional}, | 358 {"optional", CSSSelector::PseudoOptional}, |
358 {"out-of-range", CSSSelector::PseudoOutOfRange}, | 359 {"out-of-range", CSSSelector::PseudoOutOfRange}, |
359 {"past", CSSSelector::PseudoPastCue}, | 360 {"past", CSSSelector::PseudoPastCue}, |
| 361 {"placeholder", CSSSelector::PseudoPlaceholder}, |
360 {"placeholder-shown", CSSSelector::PseudoPlaceholderShown}, | 362 {"placeholder-shown", CSSSelector::PseudoPlaceholderShown}, |
361 {"read-only", CSSSelector::PseudoReadOnly}, | 363 {"read-only", CSSSelector::PseudoReadOnly}, |
362 {"read-write", CSSSelector::PseudoReadWrite}, | 364 {"read-write", CSSSelector::PseudoReadWrite}, |
363 {"required", CSSSelector::PseudoRequired}, | 365 {"required", CSSSelector::PseudoRequired}, |
364 {"right", CSSSelector::PseudoRightPage}, | 366 {"right", CSSSelector::PseudoRightPage}, |
365 {"root", CSSSelector::PseudoRoot}, | 367 {"root", CSSSelector::PseudoRoot}, |
366 {"scope", CSSSelector::PseudoScope}, | 368 {"scope", CSSSelector::PseudoScope}, |
367 {"selection", CSSSelector::PseudoSelection}, | 369 {"selection", CSSSelector::PseudoSelection}, |
368 {"shadow", CSSSelector::PseudoShadow}, | 370 {"shadow", CSSSelector::PseudoShadow}, |
369 {"single-button", CSSSelector::PseudoSingleButton}, | 371 {"single-button", CSSSelector::PseudoSingleButton}, |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 case PseudoFirstLetter: | 506 case PseudoFirstLetter: |
505 case PseudoFirstLine: | 507 case PseudoFirstLine: |
506 // The spec says some pseudos allow both single and double colons like | 508 // The spec says some pseudos allow both single and double colons like |
507 // :before for backwards compatability. Single colon becomes PseudoClass, | 509 // :before for backwards compatability. Single colon becomes PseudoClass, |
508 // but should be PseudoElement like double colon. | 510 // but should be PseudoElement like double colon. |
509 if (m_match == PseudoClass) | 511 if (m_match == PseudoClass) |
510 m_match = PseudoElement; | 512 m_match = PseudoElement; |
511 // fallthrough | 513 // fallthrough |
512 case PseudoBackdrop: | 514 case PseudoBackdrop: |
513 case PseudoCue: | 515 case PseudoCue: |
| 516 case PseudoPlaceholder: |
514 case PseudoResizer: | 517 case PseudoResizer: |
515 case PseudoScrollbar: | 518 case PseudoScrollbar: |
516 case PseudoScrollbarCorner: | 519 case PseudoScrollbarCorner: |
517 case PseudoScrollbarButton: | 520 case PseudoScrollbarButton: |
518 case PseudoScrollbarThumb: | 521 case PseudoScrollbarThumb: |
519 case PseudoScrollbarTrack: | 522 case PseudoScrollbarTrack: |
520 case PseudoScrollbarTrackPiece: | 523 case PseudoScrollbarTrackPiece: |
521 case PseudoSelection: | 524 case PseudoSelection: |
522 case PseudoWebKitCustomElement: | 525 case PseudoWebKitCustomElement: |
523 case PseudoBlinkInternalElement: | 526 case PseudoBlinkInternalElement: |
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 if (count < nthBValue()) | 1007 if (count < nthBValue()) |
1005 return false; | 1008 return false; |
1006 return (count - nthBValue()) % nthAValue() == 0; | 1009 return (count - nthBValue()) % nthAValue() == 0; |
1007 } | 1010 } |
1008 if (count > nthBValue()) | 1011 if (count > nthBValue()) |
1009 return false; | 1012 return false; |
1010 return (nthBValue() - count) % (-nthAValue()) == 0; | 1013 return (nthBValue() - count) % (-nthAValue()) == 0; |
1011 } | 1014 } |
1012 | 1015 |
1013 } // namespace blink | 1016 } // namespace blink |
OLD | NEW |