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

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

Issue 291163004: Implement media cast buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Reenable previously crashing tests - now fixed Created 6 years, 3 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
« no previous file with comments | « Source/core/css/CSSPrimitiveValueMappings.h ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // 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
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
OLDNEW
« no previous file with comments | « Source/core/css/CSSPrimitiveValueMappings.h ('k') | Source/core/css/CSSValueKeywords.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698