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

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

Issue 659833002: Removed unused scrollbar pseudo classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased Created 6 years, 2 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/CSSSelector.h ('k') | Source/core/css/RuleFeature.cpp » ('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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 case PseudoReadOnly: 219 case PseudoReadOnly:
220 case PseudoReadWrite: 220 case PseudoReadWrite:
221 case PseudoValid: 221 case PseudoValid:
222 case PseudoInvalid: 222 case PseudoInvalid:
223 case PseudoIndeterminate: 223 case PseudoIndeterminate:
224 case PseudoTarget: 224 case PseudoTarget:
225 case PseudoLang: 225 case PseudoLang:
226 case PseudoNot: 226 case PseudoNot:
227 case PseudoRoot: 227 case PseudoRoot:
228 case PseudoScope: 228 case PseudoScope:
229 case PseudoScrollbarBack:
230 case PseudoScrollbarForward:
231 case PseudoWindowInactive: 229 case PseudoWindowInactive:
232 case PseudoCornerPresent: 230 case PseudoCornerPresent:
233 case PseudoDecrement: 231 case PseudoDecrement:
234 case PseudoIncrement: 232 case PseudoIncrement:
235 case PseudoHorizontal: 233 case PseudoHorizontal:
236 case PseudoVertical: 234 case PseudoVertical:
237 case PseudoStart: 235 case PseudoStart:
238 case PseudoEnd: 236 case PseudoEnd:
239 case PseudoDoubleButton: 237 case PseudoDoubleButton:
240 case PseudoSingleButton: 238 case PseudoSingleButton:
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
515 case PseudoReadOnly: 513 case PseudoReadOnly:
516 case PseudoReadWrite: 514 case PseudoReadWrite:
517 case PseudoScope: 515 case PseudoScope:
518 case PseudoValid: 516 case PseudoValid:
519 case PseudoInvalid: 517 case PseudoInvalid:
520 case PseudoIndeterminate: 518 case PseudoIndeterminate:
521 case PseudoTarget: 519 case PseudoTarget:
522 case PseudoLang: 520 case PseudoLang:
523 case PseudoNot: 521 case PseudoNot:
524 case PseudoRoot: 522 case PseudoRoot:
525 case PseudoScrollbarBack:
526 case PseudoScrollbarForward:
527 case PseudoWindowInactive: 523 case PseudoWindowInactive:
528 case PseudoCornerPresent: 524 case PseudoCornerPresent:
529 case PseudoDecrement: 525 case PseudoDecrement:
530 case PseudoIncrement: 526 case PseudoIncrement:
531 case PseudoHorizontal: 527 case PseudoHorizontal:
532 case PseudoVertical: 528 case PseudoVertical:
533 case PseudoStart: 529 case PseudoStart:
534 case PseudoEnd: 530 case PseudoEnd:
535 case PseudoDoubleButton: 531 case PseudoDoubleButton:
536 case PseudoSingleButton: 532 case PseudoSingleButton:
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 if (count < nthBValue()) 912 if (count < nthBValue())
917 return false; 913 return false;
918 return (count - nthBValue()) % nthAValue() == 0; 914 return (count - nthBValue()) % nthAValue() == 0;
919 } 915 }
920 if (count > nthBValue()) 916 if (count > nthBValue())
921 return false; 917 return false;
922 return (nthBValue() - count) % (-nthAValue()) == 0; 918 return (nthBValue() - count) % (-nthAValue()) == 0;
923 } 919 }
924 920
925 } // namespace blink 921 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSSelector.h ('k') | Source/core/css/RuleFeature.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698