Index: Source/core/css/SelectorChecker.cpp |
diff --git a/Source/core/css/SelectorChecker.cpp b/Source/core/css/SelectorChecker.cpp |
index ef8c9c9f8ffae75b3f6bb71792471e8ff0b3ec3e..ebe49c104f4ea6141f81b1370146cd63a1d67bd4 100644 |
--- a/Source/core/css/SelectorChecker.cpp |
+++ b/Source/core/css/SelectorChecker.cpp |
@@ -855,12 +855,7 @@ bool SelectorChecker::checkOne(const SelectorCheckingContext& context, const Sib |
// context's Document is in the fullscreen state has the 'full-screen' pseudoclass applied. |
if (isHTMLFrameElementBase(element) && element.containsFullScreenElement()) |
return true; |
- if (Fullscreen* fullscreen = Fullscreen::fromIfExists(element.document())) { |
- if (!fullscreen->webkitIsFullScreen()) |
- return false; |
- return element == fullscreen->webkitCurrentFullScreenElement(); |
- } |
- return false; |
+ return Fullscreen::isActiveFullScreenElement(element); |
case CSSSelector::PseudoFullScreenAncestor: |
return element.containsFullScreenElement(); |
case CSSSelector::PseudoFullScreenDocument: |