Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(300)

Unified Diff: third_party/WebKit/Source/core/dom/Text.cpp

Issue 2680463003: Remove branch on childNeedsDistributionRecalc (Closed)
Patch Set: Add updateDistribution to CharacterData::setDataAndUpdate, and its test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 04845a1644e032a15a674bbc13771da76953f6ad..60c166060d8e7fcd013872fc244893f6f883d7d7 100644
--- a/third_party/WebKit/Source/core/dom/Text.cpp
+++ b/third_party/WebKit/Source/core/dom/Text.cpp
@@ -280,11 +280,6 @@ bool Text::textLayoutObjectIsNeeded(const ComputedStyle& style,
if (style.preserveNewline())
return true;
- // childNeedsDistributionRecalc() here is rare, only happens JS calling
- // surroundContents() etc. from DOMNodeInsertedIntoDocument etc.
- 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.

Powered by Google App Engine
This is Rietveld 408576698