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

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

Issue 2406163004: Simplify the usage of PositionWithAffinity (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
Index: third_party/WebKit/Source/core/editing/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index e37a347e87db9bbc0c736e345b96ef097cd96830..ec7f7da35795bc7a17af6222ee77d0cf97a05295 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -97,7 +97,7 @@ VisibleSelection createVisibleSelectionDeprecated(
const PositionWithAffinity& pos,
bool isDirectional) {
if (pos.isNotNull())
- pos.position().document()->updateStyleAndLayoutIgnorePendingStylesheets();
+ pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
return VisibleSelection::create(pos.position(), pos.position(),
pos.affinity(), isDirectional);
}
@@ -165,7 +165,7 @@ VisibleSelectionInFlatTree createVisibleSelectionDeprecated(
const PositionInFlatTreeWithAffinity& pos,
bool isDirectional) {
if (pos.isNotNull())
- pos.position().document()->updateStyleAndLayoutIgnorePendingStylesheets();
+ pos.document()->updateStyleAndLayoutIgnorePendingStylesheets();
return VisibleSelectionInFlatTree::create(pos.position(), pos.position(),
pos.affinity(), isDirectional);
}
« no previous file with comments | « third_party/WebKit/Source/core/editing/VisiblePosition.cpp ('k') | third_party/WebKit/Source/core/editing/VisibleUnits.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698