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

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

Issue 2667913002: Revert of Sync requestFullscreen() and exitFullscreen() algorithms with the spec (patchset #3 id:40… (Closed)
Patch Set: Created 3 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
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. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 } 1004 }
1005 case CSSSelector::PseudoFullScreen: 1005 case CSSSelector::PseudoFullScreen:
1006 // While a Document is in the fullscreen state, and the document's current 1006 // While a Document is in the fullscreen state, and the document's current
1007 // fullscreen element is an element in the document, the 'full-screen' 1007 // fullscreen element is an element in the document, the 'full-screen'
1008 // pseudoclass applies to that element. Also, an <iframe>, <object> or 1008 // pseudoclass applies to that element. Also, an <iframe>, <object> or
1009 // <embed> element whose child browsing context's Document is in the 1009 // <embed> element whose child browsing context's Document is in the
1010 // fullscreen state has the 'full-screen' pseudoclass applied. 1010 // fullscreen state has the 'full-screen' pseudoclass applied.
1011 if (isHTMLFrameElementBase(element) && 1011 if (isHTMLFrameElementBase(element) &&
1012 element.containsFullScreenElement()) 1012 element.containsFullScreenElement())
1013 return true; 1013 return true;
1014 return Fullscreen::isFullscreenElement(element); 1014 return Fullscreen::isCurrentFullScreenElement(element);
1015 case CSSSelector::PseudoFullScreenAncestor: 1015 case CSSSelector::PseudoFullScreenAncestor:
1016 return element.containsFullScreenElement(); 1016 return element.containsFullScreenElement();
1017 case CSSSelector::PseudoInRange: 1017 case CSSSelector::PseudoInRange:
1018 if (m_mode == ResolvingStyle) 1018 if (m_mode == ResolvingStyle)
1019 element.document().setContainsValidityStyleRules(); 1019 element.document().setContainsValidityStyleRules();
1020 return element.isInRange(); 1020 return element.isInRange();
1021 case CSSSelector::PseudoOutOfRange: 1021 case CSSSelector::PseudoOutOfRange:
1022 if (m_mode == ResolvingStyle) 1022 if (m_mode == ResolvingStyle)
1023 element.document().setContainsValidityStyleRules(); 1023 element.document().setContainsValidityStyleRules();
1024 return element.isOutOfRange(); 1024 return element.isOutOfRange();
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 } 1314 }
1315 1315
1316 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) { 1316 bool SelectorChecker::matchesFocusPseudoClass(const Element& element) {
1317 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element), 1317 if (InspectorInstrumentation::forcePseudoState(const_cast<Element*>(&element),
1318 CSSSelector::PseudoFocus)) 1318 CSSSelector::PseudoFocus))
1319 return true; 1319 return true;
1320 return element.isFocused() && isFrameFocused(element); 1320 return element.isFocused() && isFrameFocused(element);
1321 } 1321 }
1322 1322
1323 } // namespace blink 1323 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSDefaultStyleSheets.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentFullscreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698