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

Unified Diff: Source/core/dom/Fullscreen.cpp

Issue 547823002: Track reasons for |Node::SetNeedsStyleRecalc| (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months 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/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

Powered by Google App Engine
This is Rietveld 408576698