Lines Matching defs:focusedElement
123 if (!focused && document->focusedElement())
124 document->focusedElement()->dispatchBlurEvent(0);
126 if (focused && document->focusedElement())
127 document->focusedElement()->dispatchFocusEvent(0, FocusDirectionPage);
296 Node* currentNode = document->focusedElement();
326 if (node == document->focusedElement())
598 Element* oldFocusedElement = oldDocument ? oldDocument->focusedElement() : 0;
618 if (newDocument && newDocument->focusedElement() == element)
747 Element* focusedElement = (focusedFrame() && focusedFrame()->document()) ? focusedFrame()->document()->focusedElement() : 0;
752 current.focusableNode = focusedElement;
753 current.visibleNode = focusedElement;
758 if (element == focusedElement)
806 Element* focusedElement = focusedOrMainFrame()->document()->focusedElement();
807 if (focusedElement && !hasOffscreenRect(focusedElement))
808 rect = nodeRectInAbsoluteCoordinates(focusedElement, true /* ignore border */);
824 Element* focusedElement = focusedOrMainFrame()->document()->focusedElement();
825 if (focusedElement && !hasOffscreenRect(focusedElement))
826 startingRect = nodeRectInAbsoluteCoordinates(focusedElement, true);
852 Element* focusedElement = focusedDocument->focusedElement();
860 if (focusedElement) {
861 if (!hasOffscreenRect(focusedElement)) {
862 container = scrollableEnclosingBoxOrParentFrameForNodeInDirection(direction, focusedElement);
863 focusedElement, true /* ignore border */);
864 } else if (isHTMLAreaElement(focusedElement)) {
865 HTMLAreaElement* area = toHTMLAreaElement(focusedElement);