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

Unified Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2709793003: Expand FrameSeleciton::base() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T13:08:01 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/Source/core/page/DragController.cpp ('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/testing/Internals.cpp
diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
index c13b7b919ecaf60e10933212f232a8481f64116a..1a41eceb1d5827f0ef8edcd37e4312e7feb219e6 100644
--- a/third_party/WebKit/Source/core/testing/Internals.cpp
+++ b/third_party/WebKit/Source/core/testing/Internals.cpp
@@ -2623,14 +2623,16 @@ void Internals::forceReload(bool bypassCache) {
Node* Internals::visibleSelectionAnchorNode() {
if (!frame())
return nullptr;
- Position position = frame()->selection().base();
+ Position position =
+ frame()->selection().computeVisibleSelectionInDOMTreeDeprecated().base();
return position.isNull() ? nullptr : position.computeContainerNode();
}
unsigned Internals::visibleSelectionAnchorOffset() {
if (!frame())
return 0;
- Position position = frame()->selection().base();
+ Position position =
+ frame()->selection().computeVisibleSelectionInDOMTreeDeprecated().base();
return position.isNull() ? 0 : position.computeOffsetInContainerNode();
}
« no previous file with comments | « third_party/WebKit/Source/core/page/DragController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698