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

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

Issue 2680463003: Remove branch on childNeedsDistributionRecalc (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
rune 2017/02/06 22:58:52 It looks like this could still happen, looking at
-
// 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.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698