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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 case PseudoFirstPage: | 239 case PseudoFirstPage: |
240 case PseudoLeftPage: | 240 case PseudoLeftPage: |
241 case PseudoRightPage: | 241 case PseudoRightPage: |
242 case PseudoInRange: | 242 case PseudoInRange: |
243 case PseudoOutOfRange: | 243 case PseudoOutOfRange: |
244 case PseudoUserAgentCustomElement: | 244 case PseudoUserAgentCustomElement: |
245 case PseudoWebKitCustomElement: | 245 case PseudoWebKitCustomElement: |
246 case PseudoCue: | 246 case PseudoCue: |
247 case PseudoFutureCue: | 247 case PseudoFutureCue: |
248 case PseudoPastCue: | 248 case PseudoPastCue: |
249 case PseudoSeamlessDocument: | |
250 case PseudoDistributed: | 249 case PseudoDistributed: |
251 case PseudoUnresolved: | 250 case PseudoUnresolved: |
252 case PseudoContent: | 251 case PseudoContent: |
253 case PseudoHost: | 252 case PseudoHost: |
254 case PseudoAncestor: | 253 case PseudoAncestor: |
255 case PseudoFullScreen: | 254 case PseudoFullScreen: |
256 case PseudoFullScreenDocument: | 255 case PseudoFullScreenDocument: |
257 case PseudoFullScreenAncestor: | 256 case PseudoFullScreenAncestor: |
258 return NOPSEUDO; | 257 return NOPSEUDO; |
259 case PseudoNotParsed: | 258 case PseudoNotParsed: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 DEFINE_STATIC_LOCAL(AtomicString, firstPage, ("first", AtomicString::Constru
ctFromLiteral)); | 330 DEFINE_STATIC_LOCAL(AtomicString, firstPage, ("first", AtomicString::Constru
ctFromLiteral)); |
332 DEFINE_STATIC_LOCAL(AtomicString, leftPage, ("left", AtomicString::Construct
FromLiteral)); | 331 DEFINE_STATIC_LOCAL(AtomicString, leftPage, ("left", AtomicString::Construct
FromLiteral)); |
333 DEFINE_STATIC_LOCAL(AtomicString, rightPage, ("right", AtomicString::Constru
ctFromLiteral)); | 332 DEFINE_STATIC_LOCAL(AtomicString, rightPage, ("right", AtomicString::Constru
ctFromLiteral)); |
334 DEFINE_STATIC_LOCAL(AtomicString, fullScreen, ("-webkit-full-screen", Atomic
String::ConstructFromLiteral)); | 333 DEFINE_STATIC_LOCAL(AtomicString, fullScreen, ("-webkit-full-screen", Atomic
String::ConstructFromLiteral)); |
335 DEFINE_STATIC_LOCAL(AtomicString, fullScreenDocument, ("-webkit-full-screen-
document", AtomicString::ConstructFromLiteral)); | 334 DEFINE_STATIC_LOCAL(AtomicString, fullScreenDocument, ("-webkit-full-screen-
document", AtomicString::ConstructFromLiteral)); |
336 DEFINE_STATIC_LOCAL(AtomicString, fullScreenAncestor, ("-webkit-full-screen-
ancestor", AtomicString::ConstructFromLiteral)); | 335 DEFINE_STATIC_LOCAL(AtomicString, fullScreenAncestor, ("-webkit-full-screen-
ancestor", AtomicString::ConstructFromLiteral)); |
337 DEFINE_STATIC_LOCAL(AtomicString, cue, ("cue(", AtomicString::ConstructFromL
iteral)); | 336 DEFINE_STATIC_LOCAL(AtomicString, cue, ("cue(", AtomicString::ConstructFromL
iteral)); |
338 DEFINE_STATIC_LOCAL(AtomicString, cueWithoutParen, ("cue", AtomicString::Con
structFromLiteral)); | 337 DEFINE_STATIC_LOCAL(AtomicString, cueWithoutParen, ("cue", AtomicString::Con
structFromLiteral)); |
339 DEFINE_STATIC_LOCAL(AtomicString, futureCue, ("future", AtomicString::Constr
uctFromLiteral)); | 338 DEFINE_STATIC_LOCAL(AtomicString, futureCue, ("future", AtomicString::Constr
uctFromLiteral)); |
340 DEFINE_STATIC_LOCAL(AtomicString, pastCue, ("past", AtomicString::ConstructF
romLiteral)); | 339 DEFINE_STATIC_LOCAL(AtomicString, pastCue, ("past", AtomicString::ConstructF
romLiteral)); |
341 DEFINE_STATIC_LOCAL(AtomicString, seamlessDocument, ("-webkit-seamless-docum
ent", AtomicString::ConstructFromLiteral)); | |
342 DEFINE_STATIC_LOCAL(AtomicString, distributed, ("-webkit-distributed(", Atom
icString::ConstructFromLiteral)); | 340 DEFINE_STATIC_LOCAL(AtomicString, distributed, ("-webkit-distributed(", Atom
icString::ConstructFromLiteral)); |
343 DEFINE_STATIC_LOCAL(AtomicString, inRange, ("in-range", AtomicString::Constr
uctFromLiteral)); | 341 DEFINE_STATIC_LOCAL(AtomicString, inRange, ("in-range", AtomicString::Constr
uctFromLiteral)); |
344 DEFINE_STATIC_LOCAL(AtomicString, outOfRange, ("out-of-range", AtomicString:
:ConstructFromLiteral)); | 342 DEFINE_STATIC_LOCAL(AtomicString, outOfRange, ("out-of-range", AtomicString:
:ConstructFromLiteral)); |
345 DEFINE_STATIC_LOCAL(AtomicString, scope, ("scope", AtomicString::ConstructFr
omLiteral)); | 343 DEFINE_STATIC_LOCAL(AtomicString, scope, ("scope", AtomicString::ConstructFr
omLiteral)); |
346 DEFINE_STATIC_LOCAL(AtomicString, unresolved, ("unresolved", AtomicString::C
onstructFromLiteral)); | 344 DEFINE_STATIC_LOCAL(AtomicString, unresolved, ("unresolved", AtomicString::C
onstructFromLiteral)); |
347 DEFINE_STATIC_LOCAL(AtomicString, content, ("content", AtomicString::Constru
ctFromLiteral)); | 345 DEFINE_STATIC_LOCAL(AtomicString, content, ("content", AtomicString::Constru
ctFromLiteral)); |
348 DEFINE_STATIC_LOCAL(AtomicString, host, ("host", AtomicString::ConstructFrom
Literal)); | 346 DEFINE_STATIC_LOCAL(AtomicString, host, ("host", AtomicString::ConstructFrom
Literal)); |
349 DEFINE_STATIC_LOCAL(AtomicString, hostWithParams, ("host(", AtomicString::Co
nstructFromLiteral)); | 347 DEFINE_STATIC_LOCAL(AtomicString, hostWithParams, ("host(", AtomicString::Co
nstructFromLiteral)); |
350 DEFINE_STATIC_LOCAL(AtomicString, ancestor, ("ancestor", AtomicString::Const
ructFromLiteral)); | 348 DEFINE_STATIC_LOCAL(AtomicString, ancestor, ("ancestor", AtomicString::Const
ructFromLiteral)); |
351 DEFINE_STATIC_LOCAL(AtomicString, ancestorWithParams, ("ancestor(", AtomicSt
ring::ConstructFromLiteral)); | 349 DEFINE_STATIC_LOCAL(AtomicString, ancestorWithParams, ("ancestor(", AtomicSt
ring::ConstructFromLiteral)); |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 nameToPseudoType->set(firstPage.impl(), CSSSelector::PseudoFirstPage); | 415 nameToPseudoType->set(firstPage.impl(), CSSSelector::PseudoFirstPage); |
418 nameToPseudoType->set(leftPage.impl(), CSSSelector::PseudoLeftPage); | 416 nameToPseudoType->set(leftPage.impl(), CSSSelector::PseudoLeftPage); |
419 nameToPseudoType->set(rightPage.impl(), CSSSelector::PseudoRightPage); | 417 nameToPseudoType->set(rightPage.impl(), CSSSelector::PseudoRightPage); |
420 nameToPseudoType->set(fullScreen.impl(), CSSSelector::PseudoFullScreen); | 418 nameToPseudoType->set(fullScreen.impl(), CSSSelector::PseudoFullScreen); |
421 nameToPseudoType->set(fullScreenDocument.impl(), CSSSelector::PseudoFull
ScreenDocument); | 419 nameToPseudoType->set(fullScreenDocument.impl(), CSSSelector::PseudoFull
ScreenDocument); |
422 nameToPseudoType->set(fullScreenAncestor.impl(), CSSSelector::PseudoFull
ScreenAncestor); | 420 nameToPseudoType->set(fullScreenAncestor.impl(), CSSSelector::PseudoFull
ScreenAncestor); |
423 nameToPseudoType->set(cue.impl(), CSSSelector::PseudoCue); | 421 nameToPseudoType->set(cue.impl(), CSSSelector::PseudoCue); |
424 nameToPseudoType->set(cueWithoutParen.impl(), CSSSelector::PseudoWebKitC
ustomElement); | 422 nameToPseudoType->set(cueWithoutParen.impl(), CSSSelector::PseudoWebKitC
ustomElement); |
425 nameToPseudoType->set(futureCue.impl(), CSSSelector::PseudoFutureCue); | 423 nameToPseudoType->set(futureCue.impl(), CSSSelector::PseudoFutureCue); |
426 nameToPseudoType->set(pastCue.impl(), CSSSelector::PseudoPastCue); | 424 nameToPseudoType->set(pastCue.impl(), CSSSelector::PseudoPastCue); |
427 nameToPseudoType->set(seamlessDocument.impl(), CSSSelector::PseudoSeamle
ssDocument); | |
428 nameToPseudoType->set(distributed.impl(), CSSSelector::PseudoDistributed
); | 425 nameToPseudoType->set(distributed.impl(), CSSSelector::PseudoDistributed
); |
429 nameToPseudoType->set(inRange.impl(), CSSSelector::PseudoInRange); | 426 nameToPseudoType->set(inRange.impl(), CSSSelector::PseudoInRange); |
430 nameToPseudoType->set(outOfRange.impl(), CSSSelector::PseudoOutOfRange); | 427 nameToPseudoType->set(outOfRange.impl(), CSSSelector::PseudoOutOfRange); |
431 if (RuntimeEnabledFeatures::shadowDOMEnabled()) { | 428 if (RuntimeEnabledFeatures::shadowDOMEnabled()) { |
432 nameToPseudoType->set(host.impl(), CSSSelector::PseudoHost); | 429 nameToPseudoType->set(host.impl(), CSSSelector::PseudoHost); |
433 nameToPseudoType->set(hostWithParams.impl(), CSSSelector::PseudoHost
); | 430 nameToPseudoType->set(hostWithParams.impl(), CSSSelector::PseudoHost
); |
434 nameToPseudoType->set(ancestor.impl(), CSSSelector::PseudoAncestor); | 431 nameToPseudoType->set(ancestor.impl(), CSSSelector::PseudoAncestor); |
435 nameToPseudoType->set(ancestorWithParams.impl(), CSSSelector::Pseudo
Ancestor); | 432 nameToPseudoType->set(ancestorWithParams.impl(), CSSSelector::Pseudo
Ancestor); |
436 nameToPseudoType->set(content.impl(), CSSSelector::PseudoContent); | 433 nameToPseudoType->set(content.impl(), CSSSelector::PseudoContent); |
437 } | 434 } |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 case PseudoVertical: | 537 case PseudoVertical: |
541 case PseudoStart: | 538 case PseudoStart: |
542 case PseudoEnd: | 539 case PseudoEnd: |
543 case PseudoDoubleButton: | 540 case PseudoDoubleButton: |
544 case PseudoSingleButton: | 541 case PseudoSingleButton: |
545 case PseudoNoButton: | 542 case PseudoNoButton: |
546 case PseudoNotParsed: | 543 case PseudoNotParsed: |
547 case PseudoFullScreen: | 544 case PseudoFullScreen: |
548 case PseudoFullScreenDocument: | 545 case PseudoFullScreenDocument: |
549 case PseudoFullScreenAncestor: | 546 case PseudoFullScreenAncestor: |
550 case PseudoSeamlessDocument: | |
551 case PseudoInRange: | 547 case PseudoInRange: |
552 case PseudoOutOfRange: | 548 case PseudoOutOfRange: |
553 case PseudoFutureCue: | 549 case PseudoFutureCue: |
554 case PseudoPastCue: | 550 case PseudoPastCue: |
555 case PseudoHost: | 551 case PseudoHost: |
556 case PseudoAncestor: | 552 case PseudoAncestor: |
557 case PseudoUnresolved: | 553 case PseudoUnresolved: |
558 break; | 554 break; |
559 case PseudoFirstPage: | 555 case PseudoFirstPage: |
560 case PseudoLeftPage: | 556 case PseudoLeftPage: |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 return false; | 912 return false; |
917 return (count - m_b) % m_a == 0; | 913 return (count - m_b) % m_a == 0; |
918 } else { | 914 } else { |
919 if (count > m_b) | 915 if (count > m_b) |
920 return false; | 916 return false; |
921 return (m_b - count) % (-m_a) == 0; | 917 return (m_b - count) % (-m_a) == 0; |
922 } | 918 } |
923 } | 919 } |
924 | 920 |
925 } // namespace WebCore | 921 } // namespace WebCore |
OLD | NEW |