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 2f232f049d775ca332450479b5ec77960cbc16f0..4280dffd70ba3ad33c9d62e06ca58f80f23848ce 100644 |
--- a/third_party/WebKit/Source/core/dom/Text.cpp |
+++ b/third_party/WebKit/Source/core/dom/Text.cpp |
@@ -286,8 +286,9 @@ bool Text::textLayoutObjectIsNeeded(const ComputedStyle& style, |
if (document().childNeedsDistributionRecalc()) |
return true; |
- // Avoiding creation of a layoutObject for the text node is a non-essential memory optimization. |
- // So to avoid blowing up on very wide DOMs, we limit the number of siblings to visit. |
+ // Avoiding creation of a layoutObject for the text node is a non-essential |
+ // memory optimization. So to avoid blowing up on very wide DOMs, we limit |
+ // the number of siblings to visit. |
unsigned maxSiblingsToVisit = 50; |
const LayoutObject* prev = |
@@ -305,11 +306,6 @@ bool Text::textLayoutObjectIsNeeded(const ComputedStyle& style, |
(!prev || !prev->isInline())) |
return false; |
- // Avoiding creation of a layoutObject for the text node is a non-essential |
- // memory optimization. So to avoid blowing up on very wide DOMs, we limit |
- // the number of siblings to visit. |
- unsigned maxSiblingsToVisit = 50; |
Nico
2016/10/06 15:21:04
It looks like https://codereview.chromium.org/2379
|
- |
LayoutObject* first = parent.slowFirstChild(); |
for (; first && first->isFloatingOrOutOfFlowPositioned() && |
maxSiblingsToVisit; |