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

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

Issue 2734093003: Remove -internals-media-controls-cast-button as web exposed CSS selector. (Closed)
Patch Set: fix 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 // offset into a string buffer and making the bit fields smaller but 280 // offset into a string buffer and making the bit fields smaller but
281 // that could not be maintained by hand. 281 // that could not be maintained by hand.
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-cast-button",
291 CSSSelector::PseudoWebKitCustomElement},
292 {"-internal-media-controls-overlay-cast-button", 290 {"-internal-media-controls-overlay-cast-button",
293 CSSSelector::PseudoWebKitCustomElement}, 291 CSSSelector::PseudoWebKitCustomElement},
294 {"-internal-media-controls-text-track-list", 292 {"-internal-media-controls-text-track-list",
295 CSSSelector::PseudoWebKitCustomElement}, 293 CSSSelector::PseudoWebKitCustomElement},
296 {"-internal-media-controls-text-track-list-item", 294 {"-internal-media-controls-text-track-list-item",
297 CSSSelector::PseudoWebKitCustomElement}, 295 CSSSelector::PseudoWebKitCustomElement},
298 {"-internal-media-controls-text-track-list-item-input", 296 {"-internal-media-controls-text-track-list-item-input",
299 CSSSelector::PseudoWebKitCustomElement}, 297 CSSSelector::PseudoWebKitCustomElement},
300 {"-internal-media-controls-text-track-list-kind-captions", 298 {"-internal-media-controls-text-track-list-kind-captions",
301 CSSSelector::PseudoWebKitCustomElement}, 299 CSSSelector::PseudoWebKitCustomElement},
(...skipping 712 matching lines...) Expand 10 before | Expand all | Expand 10 after
1014 if (count < nthBValue()) 1012 if (count < nthBValue())
1015 return false; 1013 return false;
1016 return (count - nthBValue()) % nthAValue() == 0; 1014 return (count - nthBValue()) % nthAValue() == 0;
1017 } 1015 }
1018 if (count > nthBValue()) 1016 if (count > nthBValue())
1019 return false; 1017 return false;
1020 return (nthBValue() - count) % (-nthAValue()) == 0; 1018 return (nthBValue() - count) % (-nthAValue()) == 0;
1021 } 1019 }
1022 1020
1023 } // namespace blink 1021 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698