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

Unified Diff: Source/core/dom/Range.cpp

Issue 315493004: reset VisibleSelection at the Undo command. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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: Source/core/dom/Range.cpp
diff --git a/Source/core/dom/Range.cpp b/Source/core/dom/Range.cpp
index 75b7fd88993465bc3f2977676ec2844ad8ec8c91..15a140adf20a4d1662d9ebe2da626433dafc99e1 100644
--- a/Source/core/dom/Range.cpp
+++ b/Source/core/dom/Range.cpp
@@ -548,7 +548,7 @@ static inline Node* childOfCommonRootBeforeOffset(Node* container, unsigned offs
return container;
}
-static inline unsigned lengthOfContentsInNode(Node* node)
+unsigned Range::lengthOfContentsInNode(const Node* node)
Yuta Kitamura 2014/06/05 08:37:55 I don't think this function should be exposed as a
yoichio 2014/06/06 04:49:21 Done.
{
// This switch statement must be consistent with that of Range::processContentsBetweenOffsets.
switch (node->nodeType()) {

Powered by Google App Engine
This is Rietveld 408576698