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

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: 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));
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)

Powered by Google App Engine
This is Rietveld 408576698