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

Unified Diff: third_party/WebKit/Source/core/css/SelectorChecker.cpp

Issue 2202493002: NOT FOR REVIEW: Fullscreen WIP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/SelectorChecker.cpp
diff --git a/third_party/WebKit/Source/core/css/SelectorChecker.cpp b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
index ab8e81d691d5b0fe9606adf0c4afaa5ee210b7f4..7d2537ee971df15bce55640c68cbf93b85d2aca3 100644
--- a/third_party/WebKit/Source/core/css/SelectorChecker.cpp
+++ b/third_party/WebKit/Source/core/css/SelectorChecker.cpp
@@ -34,7 +34,6 @@
#include "core/dom/Document.h"
#include "core/dom/Element.h"
#include "core/dom/ElementTraversal.h"
-#include "core/dom/Fullscreen.h"
#include "core/dom/NodeComputedStyle.h"
#include "core/dom/NthIndexCache.h"
#include "core/dom/StyleEngine.h"
@@ -965,17 +964,7 @@ bool SelectorChecker::checkPseudoClass(const SelectorCheckingContext& context,
return true;
}
case CSSSelector::PseudoFullScreen:
- // While a Document is in the fullscreen state, and the document's current
- // fullscreen element is an element in the document, the 'full-screen'
- // pseudoclass applies to that element. Also, an <iframe>, <object> or
- // <embed> element whose child browsing context's Document is in the
- // fullscreen state has the 'full-screen' pseudoclass applied.
- if (isHTMLFrameElementBase(element) &&
- element.containsFullScreenElement())
- return true;
- return Fullscreen::isCurrentFullScreenElement(element);
- case CSSSelector::PseudoFullScreenAncestor:
- return element.containsFullScreenElement();
+ return element.isFullscreen();
case CSSSelector::PseudoInRange:
if (m_mode == ResolvingStyle)
element.document().setContainsValidityStyleRules();
« no previous file with comments | « third_party/WebKit/Source/core/css/RuleFeature.cpp ('k') | third_party/WebKit/Source/core/css/fullscreen.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698