Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: Source/core/css/CSSSelector.cpp

Issue 1082533002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
273 struct NameToPseudoStruct { 273 struct NameToPseudoStruct {
274 const char* string; 274 const char* string;
275 unsigned type:8; 275 unsigned type:8;
276 }; 276 };
277 277
278 // These tables should be kept sorted. 278 // These tables should be kept sorted.
279 const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = { 279 const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = {
280 {"-internal-list-box", CSSSelector::PseudoListBox}, 280 {"-internal-list-box", CSSSelector::PseudoListBox},
281 {"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement} , 281 {"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement} ,
282 {"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustom Element}, 282 {"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustom Element},
283 {"-internal-media-controls-text-track-list", CSSSelector::PseudoWebKitCustomElem ent},
284 {"-internal-media-controls-text-track-list-header", CSSSelector::PseudoWebKitCus tomElement},
285 {"-internal-media-controls-text-track-list-item", CSSSelector::PseudoWebKitCusto mElement},
286 {"-internal-media-controls-text-track-list-item-input", CSSSelector::PseudoWebKi tCustomElement},
283 {"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus }, 287 {"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus },
284 {"-webkit-any-link", CSSSelector::PseudoAnyLink}, 288 {"-webkit-any-link", CSSSelector::PseudoAnyLink},
285 {"-webkit-autofill", CSSSelector::PseudoAutofill}, 289 {"-webkit-autofill", CSSSelector::PseudoAutofill},
286 {"-webkit-drag", CSSSelector::PseudoDrag}, 290 {"-webkit-drag", CSSSelector::PseudoDrag},
287 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia}, 291 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia},
288 {"-webkit-full-screen", CSSSelector::PseudoFullScreen}, 292 {"-webkit-full-screen", CSSSelector::PseudoFullScreen},
289 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor}, 293 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor},
290 {"-webkit-full-screen-document", CSSSelector::PseudoFullScreenDocument}, 294 {"-webkit-full-screen-document", CSSSelector::PseudoFullScreenDocument},
291 {"-webkit-resizer", CSSSelector::PseudoResizer}, 295 {"-webkit-resizer", CSSSelector::PseudoResizer},
292 {"-webkit-scrollbar", CSSSelector::PseudoScrollbar}, 296 {"-webkit-scrollbar", CSSSelector::PseudoScrollbar},
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 if (count < nthBValue()) 924 if (count < nthBValue())
921 return false; 925 return false;
922 return (count - nthBValue()) % nthAValue() == 0; 926 return (count - nthBValue()) % nthAValue() == 0;
923 } 927 }
924 if (count > nthBValue()) 928 if (count > nthBValue())
925 return false; 929 return false;
926 return (nthBValue() - count) % (-nthAValue()) == 0; 930 return (nthBValue() - count) % (-nthAValue()) == 0;
927 } 931 }
928 932
929 } // namespace blink 933 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698