Index: Source/core/html/HTMLLabelElement.cpp |
diff --git a/Source/core/html/HTMLLabelElement.cpp b/Source/core/html/HTMLLabelElement.cpp |
index 04255f4ca9724d69b05aea06fc57f269ae7d39d9..a316aa94c2435b55167921096df5b8e846903f49 100644 |
--- a/Source/core/html/HTMLLabelElement.cpp |
+++ b/Source/core/html/HTMLLabelElement.cpp |
@@ -160,7 +160,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 (frame->selection().isRange() && !frame->eventHandler().mouseDownWasSingleClickInSelection()) |
+ if (!Position::nodeIsUserSelectNone(this) && frame->selection().isRange() && !frame->eventHandler().mouseDownWasSingleClickInSelection()) |
isLabelTextSelected = true; |
// If selection is there and is single click i.e. text is |
// selected by dragging over label text, then return. |