Index: Source/core/html/HTMLLabelElement.cpp |
diff --git a/Source/core/html/HTMLLabelElement.cpp b/Source/core/html/HTMLLabelElement.cpp |
index 9f3d061a1e7c74a9e6fffe74b5c5216590f2e2fa..91a159137222ba5e0f0db1348a81596fe6479cb8 100644 |
--- a/Source/core/html/HTMLLabelElement.cpp |
+++ b/Source/core/html/HTMLLabelElement.cpp |
@@ -131,13 +131,13 @@ void HTMLLabelElement::defaultEventHandler(Event* evt) |
processingClick = true; |
- // Click the corresponding control. |
- element->dispatchSimulatedClick(evt); |
- |
document()->updateLayoutIgnorePendingStylesheets(); |
if (element->isMouseFocusable()) |
element->focus(); |
+ // Click the corresponding control. |
+ element->dispatchSimulatedClick(evt); |
+ |
processingClick = false; |
evt->setDefaultHandled(); |