Lines Matching full:frame
66 #import <WebCore/Frame.h>
212 Frame* core(WebFrame *frame)
214 return frame ? frame->_private->coreFrame : 0;
217 WebFrame *kit(Frame* frame)
219 return frame ? static_cast<WebFrameLoaderClient*>(frame->loader()->client())->webFrame() : nil;
234 Frame* coreFrame = core(webFrame);
240 + (PassRefPtr<Frame>)_createFrameWithPage:(Page*)page frameName:(const String&)name frameView:(WebFrameView *)frameView ownerElement:(HTMLFrameOwnerElement*)ownerElement
244 WebFrame *frame = [[self alloc] _initWithWebFrameView:frameView webView:webView];
245 RefPtr<Frame> coreFrame = Frame::create(page, ownerElement, new WebFrameLoaderClient(frame));
246 [frame release];
247 frame->_private->coreFrame = coreFrame.get();
251 ASSERT(ownerElement->document()->frame());
252 ownerElement->document()->frame()->tree()->appendChild(coreFrame.get());
267 + (PassRefPtr<WebCore::Frame>)_createSubframeWithOwnerElement:(HTMLFrameOwnerElement*)ownerElement frameName:(const String&)name frameView:(WebFrameView *)frameView
269 return [self _createFrameWithPage:ownerElement->document()->frame()->page() frameName:name frameView:frameView ownerElement:ownerElement];
334 Frame* coreFrame = _private->coreFrame;
335 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame)) {
339 WebFrame *webFrame = kit(frame);
350 if (FrameView* view = frame->view()) {
371 Frame* coreFrame = _private->coreFrame;
372 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame)) {
373 if (Document* document = frame->document())
381 Frame* coreFrame = _private->coreFrame;
382 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame)) {
383 if (Document* document = frame->document())
395 if (Frame* coreFrame = _private->coreFrame)
404 Frame* coreFrame = _private->coreFrame;
421 Frame* coreFrame = _private->coreFrame;
422 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame))
423 if ([kit(frame) _hasSelection]) {
434 Frame* coreFrame = _private->coreFrame;
435 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame)) {
436 WebFrame *webFrame = kit(frame);
471 // as a result of JS executing during load, i.e. one frame
472 // changing another's location before the frame's document
605 if (!_private->coreFrame) // In case the script removed our frame from the page.
945 Frame* frame = _private->coreFrame;
946 String mimeType = frame->loader()->responseMIMEType();
947 PluginData* pluginData = frame->page() ? frame->page()->pluginData() : 0;
982 Frame* coreFrame = _private->coreFrame;
1068 Frame* coreFrame = core(self);
1069 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame)) {
1070 NSView <WebDocumentView> *documentView = [[kit(frame) frameView] documentView];
1078 Frame* coreFrame = core(self);
1079 for (Frame* frame = coreFrame; frame; frame = frame->tree()->traverseNext(coreFrame)) {
1080 NSView <WebDocumentView> *documentView = [[kit(frame) frameView] documentView];
1089 Frame* frame = core(self);
1090 if (!frame)
1093 AnimationController* controller = frame->animation();
1106 Frame* frame = core(self);
1107 if (!frame)
1110 AnimationController* controller = frame->animation();
1125 Frame* frame = core(self);
1126 if (!frame)
1129 Document* document = frame->document();
1146 Frame* frame = core(self);
1147 if (!frame)
1150 AnimationController* controller = frame->animation();
1225 // Start off with some guess at a frame and a global object, we'll try to do better...!
1233 // Get the frame frome the global object we've settled on.
1234 Frame* frame = anyWorldGlobalObject->impl()->frame();
1235 ASSERT(frame->document());
1236 JSValue result = frame->script()->executeScriptInWorld(core(world), string, true).jsValue();
1238 if (!frame) // In case the script removed our frame from the page.
1253 Frame* coreFrame = _private->coreFrame;
1292 Frame* coreFrame = _private->coreFrame;
1320 Frame* coreFrame = _private->coreFrame;
1325 // into a web frame, the old document can still be around. This makes sure that
1332 // According to the documentation, we should return nil if the frame doesn't have a document.
1333 // While full-frame images and plugins do have an underlying HTML document, we return nil here to be
1343 Frame* coreFrame = _private->coreFrame;
1351 Frame* coreFrame = _private->coreFrame;
1357 Frame* coreFrame = _private->coreFrame;
1363 Frame* coreFrame = _private->coreFrame;
1458 Frame* coreFrame = _private->coreFrame;
1466 Frame* coreFrame = _private->coreFrame;
1474 Frame* coreFrame = _private->coreFrame;
1478 for (Frame* child = coreFrame->tree()->firstChild(); child; child = child->tree()->nextSibling())
1485 Frame* coreFrame = _private->coreFrame;
1493 Frame* coreFrame = _private->coreFrame;