| Index: sky/engine/core/dom/Element.cpp
|
| diff --git a/sky/engine/core/dom/Element.cpp b/sky/engine/core/dom/Element.cpp
|
| index cf55f981df2707e9c09118586ef74a15563e751a..09b702cbd8a169ea9ca7354e0e835f22e1484126 100644
|
| --- a/sky/engine/core/dom/Element.cpp
|
| +++ b/sky/engine/core/dom/Element.cpp
|
| @@ -1288,21 +1288,8 @@ bool Element::isMouseFocusable() const
|
| return isFocusable();
|
| }
|
|
|
| -void Element::willCallDefaultEventHandler(const Event& event)
|
| -{
|
| - // FIXME(sky): wasFocusedByMouse always returns false. Remove this function.
|
| - if (!wasFocusedByMouse())
|
| - return;
|
| - if (!event.isKeyboardEvent() || event.type() != EventTypeNames::keydown)
|
| - return;
|
| - setWasFocusedByMouse(false);
|
| -}
|
| -
|
| void Element::dispatchFocusEvent(Element* oldFocusedElement, FocusType type)
|
| {
|
| - if (type != FocusTypePage)
|
| - setWasFocusedByMouse(type == FocusTypeMouse);
|
| -
|
| RefPtr<FocusEvent> event = FocusEvent::create(EventTypeNames::focus, false, false, document().domWindow(), 0, oldFocusedElement);
|
| EventDispatcher::dispatchEvent(this, FocusEventDispatchMediator::create(event.release()));
|
| }
|
|
|