| Index: third_party/WebKit/Source/core/dom/Text.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Text.cpp b/third_party/WebKit/Source/core/dom/Text.cpp
|
| index 05c92685e2afdf82ae68fcd03ad6ad3d583f8201..7ab8e0701db4a629bac56af380740335743a2f07 100644
|
| --- a/third_party/WebKit/Source/core/dom/Text.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Text.cpp
|
| @@ -393,23 +393,14 @@
|
| layoutItem.setText(dataImpl());
|
| clearNeedsStyleRecalc();
|
| } else if (needsStyleRecalc() || needsWhitespaceLayoutObject()) {
|
| - StyleReattachData styleReattachData;
|
| - styleReattachData.nextTextSibling = nextTextSibling;
|
| - document().addStyleReattachData(*this, styleReattachData);
|
| - setNeedsReattachLayoutTree();
|
| - }
|
| -}
|
| -
|
| -void Text::rebuildTextLayoutTree() {
|
| - DCHECK(!childNeedsStyleRecalc());
|
| - DCHECK(needsReattachLayoutTree());
|
| - DCHECK(parentNode());
|
| -
|
| + rebuildTextLayoutTree(nextTextSibling);
|
| + }
|
| +}
|
| +
|
| +void Text::rebuildTextLayoutTree(Text* nextTextSibling) {
|
| reattachLayoutTree();
|
| - if (layoutObject()) {
|
| - reattachWhitespaceSiblingsIfNeeded(
|
| - document().getStyleReattachData(*this).nextTextSibling);
|
| - }
|
| + if (layoutObject())
|
| + reattachWhitespaceSiblingsIfNeeded(nextTextSibling);
|
| clearNeedsReattachLayoutTree();
|
| }
|
|
|
|
|