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

Unified Diff: third_party/WebKit/Source/core/html/HTMLLabelElement.cpp

Issue 2708703003: Expand FrameSeleciton::isRange() to increase chances of hoisting update layout (Closed)
Patch Set: 2017-02-21T23:48:22 rebase 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/core/html/HTMLLabelElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
index 546d8a5c743d9a119096aff2623967e4fe71cd76..80deafa2647835d95bfeb39c8b67673b1fbf2603 100644
--- a/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLLabelElement.cpp
@@ -168,7 +168,9 @@ void HTMLLabelElement::defaultEventHandler(Event* evt) {
// Check if there is a selection and click is not on the
// selection.
if (layoutObject() && layoutObject()->isSelectable() &&
- frame->selection().isRange() &&
+ frame->selection()
+ .computeVisibleSelectionInDOMTreeDeprecated()
+ .isRange() &&
!frame->eventHandler()
.selectionController()
.mouseDownWasSingleClickInSelection())
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalFrame.cpp ('k') | third_party/WebKit/Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698