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

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

Issue 476353002: Remove webkitIsFullScreen everywhere except in bindings (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 4 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 | « no previous file | Source/core/dom/DocumentFullscreen.h » ('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 837 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 break; 848 break;
849 return true; 849 return true;
850 } 850 }
851 case CSSSelector::PseudoFullScreen: 851 case CSSSelector::PseudoFullScreen:
852 // While a Document is in the fullscreen state, and the document's c urrent fullscreen 852 // While a Document is in the fullscreen state, and the document's c urrent fullscreen
853 // element is an element in the document, the 'full-screen' pseudocl ass applies to 853 // element is an element in the document, the 'full-screen' pseudocl ass applies to
854 // that element. Also, an <iframe>, <object> or <embed> element whos e child browsing 854 // that element. Also, an <iframe>, <object> or <embed> element whos e child browsing
855 // context's Document is in the fullscreen state has the 'full-scree n' pseudoclass applied. 855 // context's Document is in the fullscreen state has the 'full-scree n' pseudoclass applied.
856 if (isHTMLFrameElementBase(element) && element.containsFullScreenEle ment()) 856 if (isHTMLFrameElementBase(element) && element.containsFullScreenEle ment())
857 return true; 857 return true;
858 if (Fullscreen* fullscreen = Fullscreen::fromIfExists(element.docume nt())) { 858 return Fullscreen::isActiveFullScreenElement(element);
859 if (!fullscreen->webkitIsFullScreen())
860 return false;
861 return element == fullscreen->webkitCurrentFullScreenElement();
862 }
863 return false;
864 case CSSSelector::PseudoFullScreenAncestor: 859 case CSSSelector::PseudoFullScreenAncestor:
865 return element.containsFullScreenElement(); 860 return element.containsFullScreenElement();
866 case CSSSelector::PseudoFullScreenDocument: 861 case CSSSelector::PseudoFullScreenDocument:
867 // While a Document is in the fullscreen state, the 'full-screen-doc ument' pseudoclass applies 862 // While a Document is in the fullscreen state, the 'full-screen-doc ument' pseudoclass applies
868 // to all elements of that Document. 863 // to all elements of that Document.
869 if (!Fullscreen::isFullScreen(element.document())) 864 if (!Fullscreen::isFullScreen(element.document()))
870 return false; 865 return false;
871 return true; 866 return true;
872 case CSSSelector::PseudoInRange: 867 case CSSSelector::PseudoInRange:
873 element.document().setContainsValidityStyleRules(); 868 element.document().setContainsValidityStyleRules();
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 return isHTMLSelectElement(element) && !toHTMLSelectElement(element).usesMen uList(); 1132 return isHTMLSelectElement(element) && !toHTMLSelectElement(element).usesMen uList();
1138 } 1133 }
1139 1134
1140 template 1135 template
1141 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const; 1136 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst DOMSiblingTraversalStrategy&, MatchResult*) const;
1142 1137
1143 template 1138 template
1144 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const; 1139 SelectorChecker::Match SelectorChecker::match(const SelectorCheckingContext&, co nst ShadowDOMSiblingTraversalStrategy&, MatchResult*) const;
1145 1140
1146 } 1141 }
OLDNEW
« no previous file with comments | « no previous file | Source/core/dom/DocumentFullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698