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

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

Issue 138443013: Remove iframe@seamless (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Include remove tests Created 6 years, 11 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
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 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
820 } 820 }
821 return false; 821 return false;
822 case CSSSelector::PseudoFullScreenAncestor: 822 case CSSSelector::PseudoFullScreenAncestor:
823 return element.containsFullScreenElement(); 823 return element.containsFullScreenElement();
824 case CSSSelector::PseudoFullScreenDocument: 824 case CSSSelector::PseudoFullScreenDocument:
825 // While a Document is in the fullscreen state, the 'full-screen-doc ument' pseudoclass applies 825 // While a Document is in the fullscreen state, the 'full-screen-doc ument' pseudoclass applies
826 // to all elements of that Document. 826 // to all elements of that Document.
827 if (!FullscreenElementStack::isFullScreen(&element.document())) 827 if (!FullscreenElementStack::isFullScreen(&element.document()))
828 return false; 828 return false;
829 return true; 829 return true;
830 case CSSSelector::PseudoSeamlessDocument:
831 // While a document is rendered in a seamless iframe, the 'seamless- document' pseudoclass applies
832 // to all elements of that Document.
833 return element.document().shouldDisplaySeamlesslyWithParent();
834 case CSSSelector::PseudoInRange: 830 case CSSSelector::PseudoInRange:
835 element.document().setContainsValidityStyleRules(); 831 element.document().setContainsValidityStyleRules();
836 return element.isInRange(); 832 return element.isInRange();
837 case CSSSelector::PseudoOutOfRange: 833 case CSSSelector::PseudoOutOfRange:
838 element.document().setContainsValidityStyleRules(); 834 element.document().setContainsValidityStyleRules();
839 return element.isOutOfRange(); 835 return element.isOutOfRange();
840 case CSSSelector::PseudoFutureCue: 836 case CSSSelector::PseudoFutureCue:
841 return (element.isVTTElement() && !toVTTElement(element).isPastNode( )); 837 return (element.isVTTElement() && !toVTTElement(element).isPastNode( ));
842 case CSSSelector::PseudoPastCue: 838 case CSSSelector::PseudoPastCue:
843 return (element.isVTTElement() && toVTTElement(element).isPastNode() ); 839 return (element.isVTTElement() && toVTTElement(element).isPastNode() );
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 return element.focused() && isFrameFocused(element); 1072 return element.focused() && isFrameFocused(element);
1077 } 1073 }
1078 1074
1079 template 1075 template
1080 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const; 1076 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const;
1081 1077
1082 template 1078 template
1083 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; 1079 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const;
1084 1080
1085 } 1081 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698