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

Unified Diff: third_party/WebKit/Source/core/dom/CharacterData.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/CharacterData.cpp
diff --git a/third_party/WebKit/Source/core/dom/CharacterData.cpp b/third_party/WebKit/Source/core/dom/CharacterData.cpp
index 47bd7ca3f66fe169625864b769e1fe198805ce72..b4d7022802cd3dd5b89ea12c642db6fa49c4d125 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) {
+ document().updateDistribution();
hayato 2017/02/07 07:46:24 This should be (this->)updateDistribution() (Node:
kojii 2017/02/07 08:44:33 Ah, thank you, done in PS3.
+
if (source != UpdateFromParser)
document().dataWillChange(*this);

Powered by Google App Engine
This is Rietveld 408576698