Skip to content

Commit

Permalink
Fixed unused warning added in 257456@main
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=249742

Reviewed by Tim Nguyen.

* Source/WebCore/dom/FullscreenManager.cpp:

Canonical link: https://commits.webkit.org/258223@main
  • Loading branch information
donny-dont committed Dec 22, 2022
1 parent 301e966 commit 1c560f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/WebCore/dom/FullscreenManager.cpp
Expand Up @@ -276,15 +276,15 @@ void FullscreenManager::cancelFullscreen()

m_document.eventLoop().queueTask(TaskSource::MediaElement, [this, &topDocument, identifier = LOGIDENTIFIER] {
if (!topDocument.page()) {
INFO_LOG(LOGIDENTIFIER, "Top document has no page.");
INFO_LOG(identifier, "Top document has no page.");
return;
}

// This triggers finishExitFullscreen with ExitMode::Resize, which fully exits the document.
if (auto* fullscreenElement = topDocument.fullscreenManager().fullscreenElement())
page()->chrome().client().exitFullScreenForElement(fullscreenElement);
else
INFO_LOG(LOGIDENTIFIER, "Top document has no fullscreen element");
INFO_LOG(identifier, "Top document has no fullscreen element");
});
}

Expand Down

0 comments on commit 1c560f2

Please sign in to comment.