| Index: third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp b/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
|
| index 1d20447074624a889df9d6e8b720cf52ab886162..7dfa8600299f8d5dba14ea47f5047a0ebe5e0bfd 100644
|
| --- a/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/line/LineBoxList.cpp
|
| @@ -234,6 +234,12 @@ void LineBoxList::dirtyLinesFromChangedChild(LineLayoutItem container, LineLayou
|
| return;
|
|
|
| LineLayoutInline inlineContainer = container.isLayoutInline() ? LineLayoutInline(container) : LineLayoutInline();
|
| +
|
| + // If we are attaching children dirtying lines is unnecessary as we will do a full layout
|
| + // of the inline's contents anyway.
|
| + if (inlineContainer && inlineContainer.node() && inlineContainer.node()->needsAttach())
|
| + return;
|
| +
|
| InlineBox* firstBox = inlineContainer ? inlineContainer.firstLineBoxIncludingCulling() : firstLineBox();
|
|
|
| // If we have no first line box, then just bail early.
|
|
|