Index: Source/web/FullscreenController.cpp |
diff --git a/Source/web/FullscreenController.cpp b/Source/web/FullscreenController.cpp |
index 5449d443a29dbf2b1f1a240b31f55e23cf4045c6..157328c4ae90c3f09f618ea5703414819b5483cf 100644 |
--- a/Source/web/FullscreenController.cpp |
+++ b/Source/web/FullscreenController.cpp |
@@ -168,9 +168,10 @@ void FullscreenController::updateSize() |
if (!isFullscreen()) |
return; |
- RenderFullScreen* renderer = Fullscreen::from(*m_fullScreenFrame->document()).fullScreenRenderer(); |
- if (renderer) |
- renderer->updateStyle(); |
+ Document* document = m_fullScreenFrame->document(); |
+ Element* fullscreenElement = Fullscreen::currentFullScreenElementFrom(*document); |
+ if (fullscreenElement) |
+ document->setNeedsStyleRecalc(SubtreeStyleChange, StyleChangeReasonForTracing::create(StyleChangeReason::FullScreen)); |
esprehn
2015/02/20 06:23:45
Doing a full document recalc every time we go in a
rune
2015/02/23 10:23:31
I prepared [1], but decided to await this CL since
|
} |
void FullscreenController::trace(Visitor* visitor) |