Index: Source/core/html/HTMLLabelElement.cpp |
diff --git a/Source/core/html/HTMLLabelElement.cpp b/Source/core/html/HTMLLabelElement.cpp |
index b625e78f6d1c03e85537220ce833a8da5c2d4f3e..801692be8c3b995d2d7fd53d5aaa1a547a5c45d7 100644 |
--- a/Source/core/html/HTMLLabelElement.cpp |
+++ b/Source/core/html/HTMLLabelElement.cpp |
@@ -27,9 +27,7 @@ |
#include "HTMLNames.h" |
#include "core/dom/ElementTraversal.h" |
-#include "core/editing/FrameSelection.h" |
#include "core/events/Event.h" |
-#include "core/frame/LocalFrame.h" |
#include "core/html/FormAssociatedElement.h" |
namespace WebCore { |
@@ -138,11 +136,6 @@ void HTMLLabelElement::defaultEventHandler(Event* evt) |
static bool processingClick = false; |
if (evt->type() == EventTypeNames::click && !processingClick) { |
- // If text of label element is selected, do not pass |
- // the event to control element. |
- if (document().frame()->selection().selection().isRange()) |
- return; |
- |
RefPtrWillBeRawPtr<HTMLElement> element = control(); |
// If we can't find a control or if the control received the click |