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

Unified Diff: third_party/WebKit/Source/core/editing/EditingUtilities.cpp

Issue 2196553003: Refactoring: Introduce nextSiblingIsTextNode and shouldEmitNBSPbeforeEnd variables (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated Created 4 years, 5 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/editing/EditingUtilities.cpp
diff --git a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
index 76a97f1052bb1beaf0c01248f004e17608d72f5c..9b64803fd4ec4799c2a6dd3c2b1708c82ba17b54 100644
--- a/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
+++ b/third_party/WebKit/Source/core/editing/EditingUtilities.cpp
@@ -972,7 +972,6 @@ String stringWithRebalancedWhitespace(const String& string, bool startIsStartOfP
continue;
}
- // We need to ensure there is no next sibling text node. See http://crbug.com/310149
if (previousCharacterWasSpace || (!i && startIsStartOfParagraph) || (i + 1 == length && shouldEmitNBSPbeforeEnd)) {
rebalancedString.append(noBreakSpaceCharacter);
previousCharacterWasSpace = false;

Powered by Google App Engine
This is Rietveld 408576698