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 776feb3390df5d229687e800970e533510e22a93..09e391a059a668ae763dc4a898fe20c2b6676a55 100644 |
--- a/third_party/WebKit/Source/core/dom/Text.cpp |
+++ b/third_party/WebKit/Source/core/dom/Text.cpp |
@@ -31,7 +31,6 @@ |
#include "core/dom/LayoutTreeBuilderTraversal.h" |
#include "core/dom/NodeComputedStyle.h" |
#include "core/dom/NodeTraversal.h" |
-#include "core/dom/shadow/ElementShadow.h" |
#include "core/dom/shadow/ShadowRoot.h" |
#include "core/events/ScopedEventQueue.h" |
#include "core/layout/LayoutText.h" |
@@ -447,11 +446,6 @@ static bool ShouldUpdateLayoutByReattaching(const Text& text_node, |
*text_layout_object->Parent())) { |
return true; |
} |
- // Check whether this node may be about to be redistributed. |
- if (text_node.ParentElementShadow() && |
- text_node.ParentElementShadow()->NeedsDistributionRecalc()) { |
- return true; |
- } |
if (text_layout_object->IsTextFragment()) { |
// Changes of |textNode| may change first letter part, so we should |
// reattach. |