summaryrefslogtreecommitdiff
path: root/Source/WebCore/html/HTMLLabelElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/html/HTMLLabelElement.cpp')
-rw-r--r--Source/WebCore/html/HTMLLabelElement.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/WebCore/html/HTMLLabelElement.cpp b/Source/WebCore/html/HTMLLabelElement.cpp
index c1021b358..242fb0cbd 100644
--- a/Source/WebCore/html/HTMLLabelElement.cpp
+++ b/Source/WebCore/html/HTMLLabelElement.cpp
@@ -147,6 +147,14 @@ void HTMLLabelElement::defaultEventHandler(Event* evt)
HTMLElement::defaultEventHandler(evt);
}
+bool HTMLLabelElement::willRespondToMouseClickEvents()
+{
+ if (control() && control()->willRespondToMouseClickEvents())
+ return true;
+
+ return HTMLElement::willRespondToMouseClickEvents();
+}
+
void HTMLLabelElement::focus(bool)
{
// to match other browsers, always restore previous selection