| Index: Source/core/html/HTMLLabelElement.cpp
|
| diff --git a/Source/core/html/HTMLLabelElement.cpp b/Source/core/html/HTMLLabelElement.cpp
|
| index 4451cc59d8191964a702562e3178122d3db6ff28..72b328be2c5e1dc8f3b84d6f397164caea89d26b 100644
|
| --- a/Source/core/html/HTMLLabelElement.cpp
|
| +++ b/Source/core/html/HTMLLabelElement.cpp
|
| @@ -28,6 +28,7 @@
|
| #include "core/HTMLNames.h"
|
| #include "core/dom/Document.h"
|
| #include "core/dom/ElementTraversal.h"
|
| +#include "core/editing/EditingUtilities.h"
|
| #include "core/editing/FrameSelection.h"
|
| #include "core/editing/SelectionController.h"
|
| #include "core/events/MouseEvent.h"
|
| @@ -161,7 +162,7 @@ void HTMLLabelElement::defaultEventHandler(Event* evt)
|
| if (LocalFrame* frame = document().frame()) {
|
| // Check if there is a selection and click is not on the
|
| // selection.
|
| - if (!Position::nodeIsUserSelectNone(this) && frame->selection().isRange() && !frame->eventHandler().selectionController().mouseDownWasSingleClickInSelection())
|
| + if (!nodeIsUserSelectNone(this) && frame->selection().isRange() && !frame->eventHandler().selectionController().mouseDownWasSingleClickInSelection())
|
| isLabelTextSelected = true;
|
| // If selection is there and is single click i.e. text is
|
| // selected by dragging over label text, then return.
|
|
|