Index: third_party/WebKit/Source/core/dom/Fullscreen.cpp |
diff --git a/third_party/WebKit/Source/core/dom/Fullscreen.cpp b/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
index cb84770f198adbe74c48b17a624ba320dfb7e417..5ccffd8145dd2ad39133b2a29690afc93b3f7e83 100644 |
--- a/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
+++ b/third_party/WebKit/Source/core/dom/Fullscreen.cpp |
@@ -456,7 +456,6 @@ void Fullscreen::didEnterFullScreenForElement(Element* element) |
LayoutFullScreen::wrapLayoutObject(layoutObject, layoutObject ? layoutObject->parent() : 0, document()); |
m_fullScreenElement->setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(true); |
- |
document()->styleEngine().ensureFullscreenUAStyle(); |
m_fullScreenElement->pseudoStateChanged(CSSSelector::PseudoFullScreen); |
@@ -486,6 +485,7 @@ void Fullscreen::didExitFullScreenForElement(Element*) |
if (m_fullScreenLayoutObject) |
LayoutFullScreenItem(m_fullScreenLayoutObject).unwrapLayoutObject(); |
+ document()->styleEngine().ensureFullscreenUAStyle(); |
m_fullScreenElement->pseudoStateChanged(CSSSelector::PseudoFullScreen); |
m_fullScreenElement = nullptr; |