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

Unified Diff: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp

Issue 2702403004: Expand FrameSeleciton::start() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-22T12:32:36 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
Index: third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
index 925929f74d2aaac9fa30a0684cf1d7195b11fbe1..740bf93ec79a6804c131a342fb2a0ec9b45738ce 100644
--- a/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
+++ b/third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp
@@ -602,8 +602,10 @@ bool WebFrameWidgetImpl::selectionTextDirection(WebTextDirection& start,
.toNormalizedEphemeralRange()
.isNull())
return false;
- start =
- toWebTextDirection(primaryDirectionOf(*selection.start().anchorNode()));
+ start = toWebTextDirection(
+ primaryDirectionOf(*selection.computeVisibleSelectionInDOMTreeDeprecated()
+ .start()
+ .anchorNode()));
end = toWebTextDirection(
primaryDirectionOf(*selection.computeVisibleSelectionInDOMTreeDeprecated()
.end()
« no previous file with comments | « third_party/WebKit/Source/core/input/EventHandlerTest.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698