summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/WebCore/html/HTMLLabelElement.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/WebCore/html/HTMLLabelElement.cpp')
-rw-r--r--third_party/WebKit/WebCore/html/HTMLLabelElement.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/third_party/WebKit/WebCore/html/HTMLLabelElement.cpp b/third_party/WebKit/WebCore/html/HTMLLabelElement.cpp
index aa1f4f1..34a2205 100644
--- a/third_party/WebKit/WebCore/html/HTMLLabelElement.cpp
+++ b/third_party/WebKit/WebCore/html/HTMLLabelElement.cpp
@@ -26,12 +26,12 @@
#include "config.h"
#include "HTMLLabelElement.h"
-#include "HTMLFormElement.h"
-#include "HTMLNames.h"
-#include "EventNames.h"
-#include "Event.h"
#include "Document.h"
+#include "Event.h"
+#include "EventNames.h"
+#include "HTMLFormElement.h"
+#include "HTMLNames.h"
namespace WebCore {
@@ -130,16 +130,16 @@ void HTMLLabelElement::defaultEventHandler(Event* evt)
HTMLElement::defaultEventHandler(evt);
}
-void HTMLLabelElement::focus()
+void HTMLLabelElement::focus(bool)
{
+ // to match other browsers, always restore previous selection
if (Element* element = formElement())
element->focus();
}
void HTMLLabelElement::accessKeyAction(bool sendToAnyElement)
{
- Element *element = formElement();
- if (element)
+ if (Element* element = formElement())
element->accessKeyAction(sendToAnyElement);
}