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(); |