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

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

Issue 2680463003: Remove branch on childNeedsDistributionRecalc (Closed)
Patch Set: hayato review: document().updateDistribution() to updateDistribution() 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/CharacterData.cpp
diff --git a/third_party/WebKit/Source/core/dom/CharacterData.cpp b/third_party/WebKit/Source/core/dom/CharacterData.cpp
index 47bd7ca3f66fe169625864b769e1fe198805ce72..0072b04b983ef632ea64ab37590fd46f38704742 100644
--- a/third_party/WebKit/Source/core/dom/CharacterData.cpp
+++ b/third_party/WebKit/Source/core/dom/CharacterData.cpp
@@ -176,6 +176,8 @@ void CharacterData::setDataAndUpdate(const String& newData,
unsigned oldLength,
unsigned newLength,
UpdateSource source) {
+ updateDistribution();
hayato 2017/02/07 09:00:01 I am not sure this place is a good place to insert
+
if (source != UpdateFromParser)
document().dataWillChange(*this);

Powered by Google App Engine
This is Rietveld 408576698