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 5c2818783f18865fb20372027c0394e6bf50e36a..ee32a7c017e5db26a25c3e13a0a4a8f15b5c8b13 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutInline.cpp |
@@ -307,7 +307,7 @@ void LayoutInline::addChildIgnoringContinuation(LayoutObject* newChild, LayoutOb |
// inline into continuations. This involves creating an anonymous block box to hold |
// |newChild|. We then make that block box a continuation of this inline. We take all of |
// the children after |beforeChild| and put them in a clone of this object. |
- RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(styleRef(), BLOCK); |
+ RefPtr<ComputedStyle> newStyle = ComputedStyle::createAnonymousStyleWithDisplay(containingBlock()->styleRef(), BLOCK); |
// 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 collect the x/y offsets from inline parents later. |