Home | History | Annotate | Download | only in page

Lines Matching full:frame

40 #include "Frame.h"
79 void FocusController::setFocusedFrame(PassRefPtr<Frame> frame)
81 if (m_focusedFrame == frame || m_isChangingFocusedFrame)
86 RefPtr<Frame> oldFrame = m_focusedFrame;
87 RefPtr<Frame> newFrame = frame;
91 // Now that the frame is updated, fire events and update the selection focused states of both frames.
105 Frame* FocusController::focusedOrMainFrame()
107 if (Frame* frame = focusedFrame())
108 return frame;
127 // The node we found might be a HTMLFrameOwnerElement, so descend down the frame tree until we find either:
156 Frame* frame = focusedOrMainFrame();
157 ASSERT(frame);
158 Document* document = frame->document();
165 currentNode = frame->selection()->start().node();
173 // If there's no focusable node to advance to, move up the frame tree until we find one.
174 while (!node && frame) {
175 Frame* parentFrame = frame->tree()->parent();
181 HTMLFrameOwnerElement* owner = frame->ownerElement();
189 frame = parentFrame;
226 // We focus frames rather than frame owners.
248 setFocusedFrame(newDocument->frame());
252 if (frame->shouldChangeSelection(newSelection))
253 frame->selection()->setSelection(newSelection);
266 Frame* frame = node->document()->frame();
267 if (!frame || !root)
270 return frame->editor()->shouldEndEditing(rangeOfContents(root).get());
273 static void clearSelectionIfNeeded(Frame* oldFocusedFrame, Frame* newFocusedFrame, Node* newFocusedNode)
305 bool FocusController::setFocusedNode(Node* node, PassRefPtr<Frame> newFocusedFrame)
307 RefPtr<Frame> oldFocusedFrame = focusedFrame();