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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
273 // offset into a string buffer and making the bit fields smaller but | 273 // offset into a string buffer and making the bit fields smaller but |
274 // that could not be maintained by hand. | 274 // that could not be maintained by hand. |
275 struct NameToPseudoStruct { | 275 struct NameToPseudoStruct { |
276 const char* string; | 276 const char* string; |
277 unsigned type:8; | 277 unsigned type:8; |
278 }; | 278 }; |
279 | 279 |
280 // This table should be kept sorted. | 280 // This table should be kept sorted. |
281 const static NameToPseudoStruct pseudoTypeMap[] = { | 281 const static NameToPseudoStruct pseudoTypeMap[] = { |
282 {"-internal-list-box", CSSSelector::PseudoListBox}, | 282 {"-internal-list-box", CSSSelector::PseudoListBox}, |
| 283 {"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement}
, |
| 284 {"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustom
Element}, |
283 {"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus
}, | 285 {"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus
}, |
284 {"-webkit-any(", CSSSelector::PseudoAny}, | 286 {"-webkit-any(", CSSSelector::PseudoAny}, |
285 {"-webkit-any-link", CSSSelector::PseudoAnyLink}, | 287 {"-webkit-any-link", CSSSelector::PseudoAnyLink}, |
286 {"-webkit-autofill", CSSSelector::PseudoAutofill}, | 288 {"-webkit-autofill", CSSSelector::PseudoAutofill}, |
287 {"-webkit-drag", CSSSelector::PseudoDrag}, | 289 {"-webkit-drag", CSSSelector::PseudoDrag}, |
288 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia}, | 290 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia}, |
289 {"-webkit-full-screen", CSSSelector::PseudoFullScreen}, | 291 {"-webkit-full-screen", CSSSelector::PseudoFullScreen}, |
290 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor}, | 292 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor}, |
291 {"-webkit-full-screen-document", CSSSelector::PseudoFullScreenDocument}, | 293 {"-webkit-full-screen-document", CSSSelector::PseudoFullScreenDocument}, |
292 {"-webkit-resizer", CSSSelector::PseudoResizer}, | 294 {"-webkit-resizer", CSSSelector::PseudoResizer}, |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
899 if (count < nthBValue()) | 901 if (count < nthBValue()) |
900 return false; | 902 return false; |
901 return (count - nthBValue()) % nthAValue() == 0; | 903 return (count - nthBValue()) % nthAValue() == 0; |
902 } | 904 } |
903 if (count > nthBValue()) | 905 if (count > nthBValue()) |
904 return false; | 906 return false; |
905 return (nthBValue() - count) % (-nthAValue()) == 0; | 907 return (nthBValue() - count) % (-nthAValue()) == 0; |
906 } | 908 } |
907 | 909 |
908 } // namespace blink | 910 } // namespace blink |
OLD | NEW |