Index: Source/core/dom/Fullscreen.cpp |
diff --git a/Source/core/dom/Fullscreen.cpp b/Source/core/dom/Fullscreen.cpp |
index 14dbbd8614dd40befb4c00aefa5aea233ee679a1..24dc382b73e443bd76ec8a97e13226f9f28612c6 100644 |
--- a/Source/core/dom/Fullscreen.cpp |
+++ b/Source/core/dom/Fullscreen.cpp |
@@ -437,7 +437,7 @@ void Fullscreen::didEnterFullScreenForElement(Element* element) |
m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(true); |
// FIXME: This should not call updateStyleIfNeeded. |
- document()->setNeedsStyleRecalc(SubtreeStyleChange); |
+ document()->setNeedsStyleRecalc(StyleRecalcDueToFullScreen, SubtreeStyleChange); |
document()->updateRenderTreeIfNeeded(); |
m_fullScreenElement->didBecomeFullscreenElement(); |
@@ -463,7 +463,7 @@ void Fullscreen::didExitFullScreenForElement(Element*) |
m_fullScreenRenderer->unwrapRenderer(); |
m_fullScreenElement = nullptr; |
- document()->setNeedsStyleRecalc(SubtreeStyleChange); |
+ document()->setNeedsStyleRecalc(StyleRecalcDueToFullScreen, SubtreeStyleChange); |
// When fullyExitFullscreen is called, we call exitFullscreen on the topDocument(). That means |
// that the events will be queued there. So if we have no events here, start the timer on the |