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)); |
rune
2014/12/15 09:39:51
This looks like a really big cannon. Which style c
esprehn
2014/12/15 09:45:32
This is probably for -webkit-full-screen-ancestor,
Julien - ping for review
2014/12/15 17:02:53
FWIW this is copied from what Fullscreen is doing
rune
2014/12/16 14:22:14
But in Fullscreen (and Element) setNeedsStyleRecal
|
} |
void FullscreenController::trace(Visitor* visitor) |