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

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

Issue 1079323002: Support text track selection in video controls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and lgtm nits Created 4 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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 struct NameToPseudoStruct { 278 struct NameToPseudoStruct {
279 const char* string; 279 const char* string;
280 unsigned type:8; 280 unsigned type:8;
281 }; 281 };
282 282
283 // These tables should be kept sorted. 283 // These tables should be kept sorted.
284 const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = { 284 const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = {
285 {"-internal-list-box", CSSSelector::PseudoListBox}, 285 {"-internal-list-box", CSSSelector::PseudoListBox},
286 {"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement} , 286 {"-internal-media-controls-cast-button", CSSSelector::PseudoWebKitCustomElement} ,
287 {"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustom Element}, 287 {"-internal-media-controls-overlay-cast-button", CSSSelector::PseudoWebKitCustom Element},
288 {"-internal-media-controls-text-track-list", CSSSelector::PseudoWebKitCustomElem ent},
289 {"-internal-media-controls-text-track-list-item", CSSSelector::PseudoWebKitCusto mElement},
290 {"-internal-media-controls-text-track-list-item-input", CSSSelector::PseudoWebKi tCustomElement},
291 {"-internal-media-controls-text-track-list-kind-captions", CSSSelector::PseudoWe bKitCustomElement},
292 {"-internal-media-controls-text-track-list-kind-subtitles", CSSSelector::PseudoW ebKitCustomElement},
288 {"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus }, 293 {"-internal-spatial-navigation-focus", CSSSelector::PseudoSpatialNavigationFocus },
289 {"-webkit-any-link", CSSSelector::PseudoAnyLink}, 294 {"-webkit-any-link", CSSSelector::PseudoAnyLink},
290 {"-webkit-autofill", CSSSelector::PseudoAutofill}, 295 {"-webkit-autofill", CSSSelector::PseudoAutofill},
291 {"-webkit-drag", CSSSelector::PseudoDrag}, 296 {"-webkit-drag", CSSSelector::PseudoDrag},
292 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia}, 297 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia},
293 {"-webkit-full-screen", CSSSelector::PseudoFullScreen}, 298 {"-webkit-full-screen", CSSSelector::PseudoFullScreen},
294 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor}, 299 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor},
295 {"-webkit-resizer", CSSSelector::PseudoResizer}, 300 {"-webkit-resizer", CSSSelector::PseudoResizer},
296 {"-webkit-scrollbar", CSSSelector::PseudoScrollbar}, 301 {"-webkit-scrollbar", CSSSelector::PseudoScrollbar},
297 {"-webkit-scrollbar-button", CSSSelector::PseudoScrollbarButton}, 302 {"-webkit-scrollbar-button", CSSSelector::PseudoScrollbarButton},
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
914 if (count < nthBValue()) 919 if (count < nthBValue())
915 return false; 920 return false;
916 return (count - nthBValue()) % nthAValue() == 0; 921 return (count - nthBValue()) % nthAValue() == 0;
917 } 922 }
918 if (count > nthBValue()) 923 if (count > nthBValue())
919 return false; 924 return false;
920 return (nthBValue() - count) % (-nthAValue()) == 0; 925 return (nthBValue() - count) % (-nthAValue()) == 0;
921 } 926 }
922 927
923 } // namespace blink 928 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698