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

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

Issue 2686793002: DOM: Do not skip 'replace data' operation on setting identical string to CharacterData. (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 | « third_party/WebKit/LayoutTests/fast/dom/HTMLElement/set-inner-outer-optimization.html ('k') | 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/CharacterData.cpp
diff --git a/third_party/WebKit/Source/core/dom/CharacterData.cpp b/third_party/WebKit/Source/core/dom/CharacterData.cpp
index 47bd7ca3f66fe169625864b769e1fe198805ce72..88c63a55623f10d35eb6127cc688b13cd9970b02 100644
--- a/third_party/WebKit/Source/core/dom/CharacterData.cpp
+++ b/third_party/WebKit/Source/core/dom/CharacterData.cpp
@@ -42,9 +42,6 @@ void CharacterData::atomize() {
void CharacterData::setData(const String& data) {
const String& nonNullData = !data.isNull() ? data : emptyString;
- if (m_data == nonNullData)
- return;
-
unsigned oldLength = length();
setDataAndUpdate(nonNullData, 0, oldLength, nonNullData.length(),
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/dom/HTMLElement/set-inner-outer-optimization.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698