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

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

Issue 677943002: Clarify that there is no :cue or :cue(...) pseudo-class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: banish <title> Created 6 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « LayoutTests/media/track/track-css-cue-pseudo-class.html ('k') | no next file » | 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 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 453
454 m_pseudoType = parsePseudoType(value(), !argument().isNull() || selectorList ()); 454 m_pseudoType = parsePseudoType(value(), !argument().isNull() || selectorList ());
455 455
456 bool element = false; // pseudo-element 456 bool element = false; // pseudo-element
457 bool compat = false; // single colon compatbility mode 457 bool compat = false; // single colon compatbility mode
458 bool isPagePseudoClass = false; // Page pseudo-class 458 bool isPagePseudoClass = false; // Page pseudo-class
459 459
460 switch (m_pseudoType) { 460 switch (m_pseudoType) {
461 case PseudoAfter: 461 case PseudoAfter:
462 case PseudoBefore: 462 case PseudoBefore:
463 case PseudoCue:
464 case PseudoFirstLetter: 463 case PseudoFirstLetter:
465 case PseudoFirstLine: 464 case PseudoFirstLine:
466 compat = true; 465 compat = true;
467 case PseudoBackdrop: 466 case PseudoBackdrop:
467 case PseudoCue:
468 case PseudoResizer: 468 case PseudoResizer:
469 case PseudoScrollbar: 469 case PseudoScrollbar:
470 case PseudoScrollbarCorner: 470 case PseudoScrollbarCorner:
471 case PseudoScrollbarButton: 471 case PseudoScrollbarButton:
472 case PseudoScrollbarThumb: 472 case PseudoScrollbarThumb:
473 case PseudoScrollbarTrack: 473 case PseudoScrollbarTrack:
474 case PseudoScrollbarTrackPiece: 474 case PseudoScrollbarTrackPiece:
475 case PseudoSelection: 475 case PseudoSelection:
476 case PseudoWebKitCustomElement: 476 case PseudoWebKitCustomElement:
477 case PseudoContent: 477 case PseudoContent:
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 if (count < nthBValue()) 908 if (count < nthBValue())
909 return false; 909 return false;
910 return (count - nthBValue()) % nthAValue() == 0; 910 return (count - nthBValue()) % nthAValue() == 0;
911 } 911 }
912 if (count > nthBValue()) 912 if (count > nthBValue())
913 return false; 913 return false;
914 return (nthBValue() - count) % (-nthAValue()) == 0; 914 return (nthBValue() - count) % (-nthAValue()) == 0;
915 } 915 }
916 916
917 } // namespace blink 917 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/media/track/track-css-cue-pseudo-class.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698