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

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

Issue 165443003: Pass implementation object to supplemental classes by reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/dom/CSSSelectorWatch.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 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All rights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 804 matching lines...) Expand 10 before | Expand all | Expand 10 after
815 break; 815 break;
816 return true; 816 return true;
817 } 817 }
818 case CSSSelector::PseudoFullScreen: 818 case CSSSelector::PseudoFullScreen:
819 // While a Document is in the fullscreen state, and the document's c urrent fullscreen 819 // While a Document is in the fullscreen state, and the document's c urrent fullscreen
820 // element is an element in the document, the 'full-screen' pseudocl ass applies to 820 // element is an element in the document, the 'full-screen' pseudocl ass applies to
821 // that element. Also, an <iframe>, <object> or <embed> element whos e child browsing 821 // that element. Also, an <iframe>, <object> or <embed> element whos e child browsing
822 // context's Document is in the fullscreen state has the 'full-scree n' pseudoclass applied. 822 // context's Document is in the fullscreen state has the 'full-scree n' pseudoclass applied.
823 if (element.isFrameElementBase() && element.containsFullScreenElemen t()) 823 if (element.isFrameElementBase() && element.containsFullScreenElemen t())
824 return true; 824 return true;
825 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fro mIfExists(&element.document())) { 825 if (FullscreenElementStack* fullscreen = FullscreenElementStack::fro mIfExists(element.document())) {
826 if (!fullscreen->webkitIsFullScreen()) 826 if (!fullscreen->webkitIsFullScreen())
827 return false; 827 return false;
828 return element == fullscreen->webkitCurrentFullScreenElement(); 828 return element == fullscreen->webkitCurrentFullScreenElement();
829 } 829 }
830 return false; 830 return false;
831 case CSSSelector::PseudoFullScreenAncestor: 831 case CSSSelector::PseudoFullScreenAncestor:
832 return element.containsFullScreenElement(); 832 return element.containsFullScreenElement();
833 case CSSSelector::PseudoFullScreenDocument: 833 case CSSSelector::PseudoFullScreenDocument:
834 // While a Document is in the fullscreen state, the 'full-screen-doc ument' pseudoclass applies 834 // While a Document is in the fullscreen state, the 'full-screen-doc ument' pseudoclass applies
835 // to all elements of that Document. 835 // to all elements of that Document.
836 if (!FullscreenElementStack::isFullScreen(&element.document())) 836 if (!FullscreenElementStack::isFullScreen(element.document()))
837 return false; 837 return false;
838 return true; 838 return true;
839 case CSSSelector::PseudoInRange: 839 case CSSSelector::PseudoInRange:
840 element.document().setContainsValidityStyleRules(); 840 element.document().setContainsValidityStyleRules();
841 return element.isInRange(); 841 return element.isInRange();
842 case CSSSelector::PseudoOutOfRange: 842 case CSSSelector::PseudoOutOfRange:
843 element.document().setContainsValidityStyleRules(); 843 element.document().setContainsValidityStyleRules();
844 return element.isOutOfRange(); 844 return element.isOutOfRange();
845 case CSSSelector::PseudoFutureCue: 845 case CSSSelector::PseudoFutureCue:
846 return (element.isVTTElement() && !toVTTElement(element).isPastNode( )); 846 return (element.isVTTElement() && !toVTTElement(element).isPastNode( ));
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
1081 return element.focused() && isFrameFocused(element); 1081 return element.focused() && isFrameFocused(element);
1082 } 1082 }
1083 1083
1084 template 1084 template
1085 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const; 1085 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const;
1086 1086
1087 template 1087 template
1088 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; 1088 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const;
1089 1089
1090 } 1090 }
OLDNEW
« no previous file with comments | « Source/core/css/FontFaceSet.cpp ('k') | Source/core/dom/CSSSelectorWatch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698