Index: Source/core/page/FocusController.cpp |
diff --git a/Source/core/page/FocusController.cpp b/Source/core/page/FocusController.cpp |
index 149ff8a87bca01cdc267d43e738c6569f5615562..c985fa79bcbf666538305579783a31270051d3c6 100644 |
--- a/Source/core/page/FocusController.cpp |
+++ b/Source/core/page/FocusController.cpp |
@@ -162,9 +162,9 @@ static inline void dispatchEventsOnWindowAndFocusedNode(Document* document, bool |
focusedElement->setFocus(true); |
focusedElement->dispatchFocusEvent(0, FocusTypePage); |
if (focusedElement == document->focusedElement()) { |
- document->focusedElement()->dispatchFocusInEvent(EventTypeNames::focusin, 0); |
+ document->focusedElement()->dispatchFocusInEvent(EventTypeNames::focusin, 0, FocusTypePage); |
if (focusedElement == document->focusedElement()) |
- document->focusedElement()->dispatchFocusInEvent(EventTypeNames::DOMFocusIn, 0); |
+ document->focusedElement()->dispatchFocusInEvent(EventTypeNames::DOMFocusIn, 0, FocusTypePage); |
} |
} |
} |
@@ -290,9 +290,9 @@ void FocusController::focusDocumentView(PassRefPtr<Frame> frame) |
if (focusedElement) { |
focusedElement->dispatchFocusEvent(0, FocusTypePage); |
if (focusedElement == document->focusedElement()) { |
- document->focusedElement()->dispatchFocusInEvent(EventTypeNames::focusin, 0); |
+ document->focusedElement()->dispatchFocusInEvent(EventTypeNames::focusin, 0, FocusTypePage); |
if (focusedElement == document->focusedElement()) |
- document->focusedElement()->dispatchFocusInEvent(EventTypeNames::DOMFocusIn, 0); |
+ document->focusedElement()->dispatchFocusInEvent(EventTypeNames::DOMFocusIn, 0, FocusTypePage); |
} |
} |
} |