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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 {"cue", CSSSelector::PseudoWebKitCustomElement}, | 347 {"cue", CSSSelector::PseudoWebKitCustomElement}, |
348 {"future", CSSSelector::PseudoFutureCue}, | 348 {"future", CSSSelector::PseudoFutureCue}, |
349 {"past", CSSSelector::PseudoPastCue}, | 349 {"past", CSSSelector::PseudoPastCue}, |
350 {"-webkit-distributed(", CSSSelector::PseudoDistributed}, | 350 {"-webkit-distributed(", CSSSelector::PseudoDistributed}, |
351 {"in-range", CSSSelector::PseudoInRange}, | 351 {"in-range", CSSSelector::PseudoInRange}, |
352 {"out-of-range", CSSSelector::PseudoOutOfRange}, | 352 {"out-of-range", CSSSelector::PseudoOutOfRange}, |
353 {"scope", CSSSelector::PseudoScope}, | 353 {"scope", CSSSelector::PseudoScope}, |
354 {"unresolved", CSSSelector::PseudoUnresolved}, | 354 {"unresolved", CSSSelector::PseudoUnresolved}, |
355 {"host", CSSSelector::PseudoHost}, | 355 {"host", CSSSelector::PseudoHost}, |
356 {"host(", CSSSelector::PseudoHost}, | 356 {"host(", CSSSelector::PseudoHost}, |
357 {"host-context", CSSSelector::PseudoHostContext}, | |
358 {"host-context(", CSSSelector::PseudoHostContext}, | 357 {"host-context(", CSSSelector::PseudoHostContext}, |
359 {"content", CSSSelector::PseudoContent}, | 358 {"content", CSSSelector::PseudoContent}, |
360 }; | 359 }; |
361 | 360 |
362 static HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoTypeMap() | 361 static HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoTypeMap() |
363 { | 362 { |
364 static HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoType = 0; | 363 static HashMap<StringImpl*, CSSSelector::PseudoType>* nameToPseudoType = 0; |
365 if (!nameToPseudoType) { | 364 if (!nameToPseudoType) { |
366 nameToPseudoType = new HashMap<StringImpl*, CSSSelector::PseudoType>; | 365 nameToPseudoType = new HashMap<StringImpl*, CSSSelector::PseudoType>; |
367 | 366 |
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
883 return false; | 882 return false; |
884 return (count - m_b) % m_a == 0; | 883 return (count - m_b) % m_a == 0; |
885 } else { | 884 } else { |
886 if (count > m_b) | 885 if (count > m_b) |
887 return false; | 886 return false; |
888 return (m_b - count) % (-m_a) == 0; | 887 return (m_b - count) % (-m_a) == 0; |
889 } | 888 } |
890 } | 889 } |
891 | 890 |
892 } // namespace WebCore | 891 } // namespace WebCore |
OLD | NEW |