Lines Matching defs:focused
113 static inline void dispatchEventsOnWindowAndFocusedElement(Document* document, bool focused)
115 // If we have a focused node we should dispatch blur on it before we blur the window.
116 // If we have a focused node we should dispatch focus on it after we focus the window.
125 if (!focused && document->focusedElement())
127 document->dispatchWindowEvent(Event::create(focused ? eventNames().focusEvent : eventNames().blurEvent, false, false));
128 if (focused && document->focusedElement())
190 // Now that the frame is updated, fire events and update the selection focused states of both frames.
213 void FocusController::setFocused(bool focused)
215 if (isFocused() == focused)
218 m_isFocused = focused;
227 m_focusedFrame->selection()->setFocused(focused);
228 dispatchEventsOnWindowAndFocusedElement(m_focusedFrame->document(), focused);
341 // Focus is going away from this document, so clear the focused node.