Index: third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp b/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp |
index f17fb6a68560f7d0f397222ea2aa9f93939f0995..bbeb3993496a3096cd0052786e689ad9e9693679 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutFullScreen.cpp |
@@ -92,7 +92,7 @@ void LayoutFullScreen::willBeDestroyed() |
LayoutFlexibleBox::willBeDestroyed(); |
} |
-void LayoutFullScreen::updateStyle() |
+void LayoutFullScreen::updateStyle(LayoutObject* parent) |
{ |
RefPtr<ComputedStyle> fullscreenStyle = ComputedStyle::create(); |
@@ -117,7 +117,12 @@ void LayoutFullScreen::updateStyle() |
fullscreenStyle->setBackgroundColor(StyleColor(Color::black)); |
- setStyleWithWritingModeOfParent(fullscreenStyle); |
+ setStyleWithWritingModeOf(fullscreenStyle, parent); |
+} |
+ |
+void LayoutFullScreen::updateStyle() |
+{ |
+ updateStyle(parent()); |
} |
LayoutObject* LayoutFullScreen::wrapLayoutObject(LayoutObject* object, LayoutObject* parent, Document* document) |
@@ -127,7 +132,7 @@ LayoutObject* LayoutFullScreen::wrapLayoutObject(LayoutObject* object, LayoutObj |
DeprecatedDisableModifyLayoutTreeStructureAsserts disabler; |
LayoutFullScreen* fullscreenLayoutObject = LayoutFullScreen::createAnonymous(document); |
- fullscreenLayoutObject->updateStyle(); |
+ fullscreenLayoutObject->updateStyle(parent); |
if (parent && !parent->isChildAllowed(fullscreenLayoutObject, fullscreenLayoutObject->styleRef())) { |
fullscreenLayoutObject->destroy(); |
return nullptr; |