diff options
-rw-r--r-- | chromium/third_party/blink/renderer/core/layout/layout_inline.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/chromium/third_party/blink/renderer/core/layout/layout_inline.cc b/chromium/third_party/blink/renderer/core/layout/layout_inline.cc index e287ac7b2a5..d9ed03445c8 100644 --- a/chromium/third_party/blink/renderer/core/layout/layout_inline.cc +++ b/chromium/third_party/blink/renderer/core/layout/layout_inline.cc @@ -453,13 +453,11 @@ void LayoutInline::SplitInlines(LayoutBlockFlow* from_block, // nest to a much greater depth (see bugzilla bug 13430) but for now we have a // limit. This *will* result in incorrect rendering, but the alternative is to // hang forever. - const unsigned kCMaxSplitDepth = 200; Vector<LayoutInline*> inlines_to_clone; LayoutInline* top_most_inline = this; for (LayoutObject* o = this; o != from_block; o = o->Parent()) { top_most_inline = ToLayoutInline(o); - if (inlines_to_clone.size() < kCMaxSplitDepth) - inlines_to_clone.push_back(top_most_inline); + inlines_to_clone.push_back(top_most_inline); // Keep walking up the chain to ensure |topMostInline| is a child of // |fromBlock|, to avoid assertion failure when |fromBlock|'s children are // moved to |toBlock| below. |