Lines Matching full:focused
59 static inline void dispatchEventsOnWindowAndFocusedNode(Document* document, bool focused)
61 // If we have a focused node we should dispatch blur on it before we blur the window.
62 // If we have a focused node we should dispatch focus on it after we focus the window.
64 if (!focused && document->focusedNode())
66 document->dispatchWindowEvent(Event::create(focused ? eventNames().focusEvent : eventNames().blurEvent, false, false));
67 if (focused && document->focusedNode())
91 // Now that the frame is updated, fire events and update the selection focused states of both frames.
112 void FocusController::setFocused(bool focused)
114 if (isFocused() == focused)
117 m_isFocused = focused;
120 m_focusedFrame->selection()->setFocused(focused);
121 dispatchEventsOnWindowAndFocusedNode(m_focusedFrame->document(), focused);
244 // Focus is going away from this document, so clear the focused node.