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

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

Issue 2426513002: Prune createVisiblePositionDeprecated (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | third_party/WebKit/Source/core/editing/FrameCaret.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Range.cpp
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp
index 6021e30bf9b6297558fb3eae9767502956ad1880..e6501738d5c01fffa95cfd92b477d8d543082ba8 100644
--- a/third_party/WebKit/Source/core/dom/Range.cpp
+++ b/third_party/WebKit/Source/core/dom/Range.cpp
@@ -1608,8 +1608,10 @@ void Range::didSplitTextNode(Text& oldNode) {
}
void Range::expand(const String& unit, ExceptionState& exceptionState) {
- VisiblePosition start = createVisiblePositionDeprecated(startPosition());
- VisiblePosition end = createVisiblePositionDeprecated(endPosition());
+ m_ownerDocument->updateStyleAndLayoutIgnorePendingStylesheets();
+
+ VisiblePosition start = createVisiblePosition(startPosition());
+ VisiblePosition end = createVisiblePosition(endPosition());
if (unit == "word") {
start = startOfWord(start);
end = endOfWord(end);
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/editing/FrameCaret.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698