Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1853)

Unified Diff: Source/web/FullscreenController.cpp

Issue 788073004: Replace RenderFullscreen with top layer - Take II (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated after review comments. Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)

Powered by Google App Engine
This is Rietveld 408576698