Index: third_party/WebKit/Source/core/layout/LayoutInline.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutInline.cpp b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
index c6512ddceee26803ce40be7440748cf6c767b9cc..e7ce268c14f2481140a2f71d4e69f23e7048fbb8 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
@@ -348,6 +348,9 @@ void LayoutInline::addChildIgnoringContinuation(LayoutObject* newChild, |
RefPtr<ComputedStyle> newStyle = |
ComputedStyle::createAnonymousStyleWithDisplay( |
containingBlock()->styleRef(), EDisplay::kBlock); |
+ // Inherit everything from containingBlock's style |
+ // but visibility http://crbug.com/706324 |
+ newStyle->setVisibility(styleRef().visibility()); |
// If inside an inline affected by in-flow positioning the block needs to be |
// affected by it too. Giving the block a layer like this allows it to |