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

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

Issue 2750583003: Remove -internals-media-controls-text-track-list* as web exposed CSS selector. (Closed)
Patch Set: remove unrelated tests Created 3 years, 9 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 6 * Copyright (C) 2002, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
7 * reserved. 7 * reserved.
8 * Copyright (C) 2008 David Smith (catfish.man@gmail.com) 8 * Copyright (C) 2008 David Smith (catfish.man@gmail.com)
9 * Copyright (C) 2010 Google Inc. All rights reserved. 9 * Copyright (C) 2010 Google Inc. All rights reserved.
10 * 10 *
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 struct NameToPseudoStruct { 282 struct NameToPseudoStruct {
283 const char* string; 283 const char* string;
284 unsigned type : 8; 284 unsigned type : 8;
285 }; 285 };
286 286
287 // These tables should be kept sorted. 287 // These tables should be kept sorted.
288 const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = { 288 const static NameToPseudoStruct pseudoTypeWithoutArgumentsMap[] = {
289 {"-internal-list-box", CSSSelector::PseudoListBox}, 289 {"-internal-list-box", CSSSelector::PseudoListBox},
290 {"-internal-media-controls-overlay-cast-button", 290 {"-internal-media-controls-overlay-cast-button",
291 CSSSelector::PseudoWebKitCustomElement}, 291 CSSSelector::PseudoWebKitCustomElement},
292 {"-internal-media-controls-text-track-list",
293 CSSSelector::PseudoWebKitCustomElement},
294 {"-internal-media-controls-text-track-list-item",
295 CSSSelector::PseudoWebKitCustomElement},
296 {"-internal-media-controls-text-track-list-item-input",
297 CSSSelector::PseudoWebKitCustomElement},
298 {"-internal-media-controls-text-track-list-kind-captions",
299 CSSSelector::PseudoWebKitCustomElement},
300 {"-internal-media-controls-text-track-list-kind-subtitles",
301 CSSSelector::PseudoWebKitCustomElement},
302 {"-internal-shadow-host-has-appearance", 292 {"-internal-shadow-host-has-appearance",
303 CSSSelector::PseudoHostHasAppearance}, 293 CSSSelector::PseudoHostHasAppearance},
304 {"-internal-spatial-navigation-focus", 294 {"-internal-spatial-navigation-focus",
305 CSSSelector::PseudoSpatialNavigationFocus}, 295 CSSSelector::PseudoSpatialNavigationFocus},
306 {"-webkit-any-link", CSSSelector::PseudoAnyLink}, 296 {"-webkit-any-link", CSSSelector::PseudoAnyLink},
307 {"-webkit-autofill", CSSSelector::PseudoAutofill}, 297 {"-webkit-autofill", CSSSelector::PseudoAutofill},
308 {"-webkit-drag", CSSSelector::PseudoDrag}, 298 {"-webkit-drag", CSSSelector::PseudoDrag},
309 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia}, 299 {"-webkit-full-page-media", CSSSelector::PseudoFullPageMedia},
310 {"-webkit-full-screen", CSSSelector::PseudoFullScreen}, 300 {"-webkit-full-screen", CSSSelector::PseudoFullScreen},
311 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor}, 301 {"-webkit-full-screen-ancestor", CSSSelector::PseudoFullScreenAncestor},
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after
1012 if (count < nthBValue()) 1002 if (count < nthBValue())
1013 return false; 1003 return false;
1014 return (count - nthBValue()) % nthAValue() == 0; 1004 return (count - nthBValue()) % nthAValue() == 0;
1015 } 1005 }
1016 if (count > nthBValue()) 1006 if (count > nthBValue())
1017 return false; 1007 return false;
1018 return (nthBValue() - count) % (-nthAValue()) == 0; 1008 return (nthBValue() - count) % (-nthAValue()) == 0;
1019 } 1009 }
1020 1010
1021 } // namespace blink 1011 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698