Lines Matching refs:m_frame
326 return m_frame && allowPopUp(*m_frame);
403 ASSERT(init.frame() == m_frame);
411 if (!m_frame)
414 m_frame->script().updateDocument();
417 if (m_frame->page() && m_frame->view()) {
418 if (ScrollingCoordinator* scrollingCoordinator = m_frame->page()->scrollingCoordinator()) {
419 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame->view(), HorizontalScrollbar);
420 scrollingCoordinator->scrollableAreaScrollbarLayerDidChange(m_frame->view(), VerticalScrollbar);
421 scrollingCoordinator->scrollableAreaScrollLayerDidChange(m_frame->view());
425 m_frame->selection().updateSecureKeyboardEntryIfActive();
488 if (!m_frame)
547 m_frame->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this);
548 m_frame->console().messageStorage()->frameWindowDiscarded(this);
549 InspectorInstrumentation::frameWindowDiscarded(m_frame, this);
602 return m_frame && m_frame->domWindow() == this && m_frame->host();
609 if (!m_frame)
612 int orientation = screenOrientationAngle(m_frame->view());
624 m_screen = Screen::create(m_frame);
631 m_history = History::create(m_frame);
638 m_locationbar = BarProp::create(m_frame, BarProp::Locationbar);
645 m_menubar = BarProp::create(m_frame, BarProp::Menubar);
652 m_personalbar = BarProp::create(m_frame, BarProp::Personalbar);
659 m_scrollbars = BarProp::create(m_frame, BarProp::Scrollbars);
666 m_statusbar = BarProp::create(m_frame, BarProp::Statusbar);
673 m_toolbar = BarProp::create(m_frame, BarProp::Toolbar);
680 m_console = Console::create(m_frame);
688 return &m_frame->console();
696 m_applicationCache = ApplicationCache::create(m_frame);
703 m_navigator = Navigator::create(m_frame);
710 m_performance = Performance::create(m_frame);
717 m_location = Location::create(m_frame);
742 if (!m_sessionStorage->area()->canAccessStorage(m_frame)) {
754 if (!storageArea->canAccessStorage(m_frame)) {
759 m_sessionStorage = Storage::create(m_frame, storageArea.release());
784 if (!m_localStorage->area()->canAccessStorage(m_frame)) {
797 if (!storageArea->canAccessStorage(m_frame)) {
802 m_localStorage = Storage::create(m_frame, storageArea.release());
870 if (m_frame->client()->willCheckAndDispatchMessageEvent(timer->targetOrigin(), event.get(), source)) {
903 return m_frame->document()->getSelection();
908 if (!m_frame)
912 ASSERT(!m_frame->owner() || m_frame->owner()->isLocal());
913 return m_frame->deprecatedLocalOwner();
918 if (!m_frame)
921 FrameHost* host = m_frame->host();
934 if (m_frame->isMainFrame() && allowFocus)
937 if (!m_frame)
940 m_frame->eventHandler().focusDocumentView();
949 if (!m_frame || !m_frame->isMainFrame())
952 Page* page = m_frame->page();
962 if (!activeDocument->canNavigate(*m_frame))
966 Settings* settings = m_frame->settings();
974 if (!m_frame->loader().shouldClose())
984 if (!m_frame)
987 FrameHost* host = m_frame->host();
991 if (m_frame->loader().state() != FrameStateComplete) {
996 host->chrome().print(m_frame);
1001 if (!m_frame)
1003 m_frame->loader().stopAllLoaders();
1008 if (!m_frame)
1011 m_frame->document()->updateRenderTreeIfNeeded();
1013 FrameHost* host = m_frame->host();
1017 host->chrome().runJavaScriptAlert(m_frame, message);
1022 if (!m_frame)
1025 m_frame->document()->updateRenderTreeIfNeeded();
1027 FrameHost* host = m_frame->host();
1031 return host->chrome().runJavaScriptConfirm(m_frame, message);
1036 if (!m_frame)
1039 m_frame->document()->updateRenderTreeIfNeeded();
1041 FrameHost* host = m_frame->host();
1046 if (host->chrome().runJavaScriptPrompt(m_frame, message, defaultValue, returnValue))
1057 // |m_frame| can be destructed during |Editor::findString()| via
1059 RefPtrWillBeRawPtr<LocalFrame> protectFrame(m_frame.get());
1062 return m_frame->editor().findString(string, !backwards, caseSensitive, wrap, false);
1072 if (!m_frame)
1075 FrameHost* host = m_frame->host();
1086 if (!m_frame)
1089 FrameHost* host = m_frame->host();
1100 if (!m_frame)
1103 FrameView* view = m_frame->view();
1108 if (Frame* parent = m_frame->tree().parent()) {
1113 return adjustForAbsoluteZoom(view->visibleContentRect(IncludeScrollbars).height(), m_frame->pageZoomFactor());
1118 if (!m_frame)
1121 FrameView* view = m_frame->view();
1126 if (Frame* parent = m_frame->tree().parent()) {
1131 return adjustForAbsoluteZoom(view->visibleContentRect(IncludeScrollbars).width(), m_frame->pageZoomFactor());
1136 if (!m_frame)
1139 FrameHost* host = m_frame->host();
1150 if (!m_frame)
1153 FrameHost* host = m_frame->host();
1164 if (!m_frame)
1167 FrameView* view = m_frame->view();
1171 m_frame->document()->updateLayoutIgnorePendingStylesheets();
1173 return adjustScrollForAbsoluteZoom(view->scrollX(), m_frame->pageZoomFactor());
1178 if (!m_frame)
1181 FrameView* view = m_frame->view();
1185 m_frame->document()->updateLayoutIgnorePendingStylesheets();
1187 return adjustScrollForAbsoluteZoom(view->scrollY(), m_frame->pageZoomFactor());
1192 return !m_frame || !m_frame->host();
1200 return m_frame->tree().scopedChildCount();
1208 return m_frame->tree().name();
1216 m_frame->tree().setName(name);
1217 ASSERT(m_frame->loader().client());
1218 m_frame->loader().client()->didChangeName(name);
1225 if (!m_frame)
1228 FrameHost* host = m_frame->host();
1232 ASSERT(m_frame->document()); // Client calls shouldn't be made when the frame is in inconsistent state.
1233 host->chrome().setStatusbarText(m_frame, m_status);
1240 if (!m_frame)
1243 FrameHost* host = m_frame->host();
1247 ASSERT(m_frame->document()); // Client calls shouldn't be made when the frame is in inconsistent state.
1248 host->chrome().setStatusbarText(m_frame, m_defaultStatus);
1253 if (!m_frame)
1256 return m_frame->domWindow();
1261 if (!m_frame)
1264 Frame* opener = m_frame->loader().opener();
1273 if (!m_frame)
1276 Frame* parent = m_frame->tree().parent();
1280 return m_frame->domWindow();
1285 if (!m_frame)
1288 return m_frame->tree().top()->domWindow();
1299 m_media = StyleMedia::create(m_frame);
1327 return m_frame->document()->ensureStyleResolver().pseudoCSSRulesForElement(element, pseudoId, rulesToInclude);
1332 if (!m_frame)
1335 return m_frame->devicePixelRatio();
1359 FrameView* view = m_frame->view();
1363 IntSize scaledOffset(static_cast<int>(x * m_frame->pageZoomFactor()), static_cast<int>(y * m_frame->pageZoomFactor()));
1382 RefPtr<FrameView> view = m_frame->view();
1386 IntPoint layoutPos(static_cast<int>(x * m_frame->pageZoomFactor()), static_cast<int>(y * m_frame->pageZoomFactor()));
1400 if (!m_frame || !m_frame->isMainFrame())
1403 FrameHost* host = m_frame->host();
1410 host->chrome().setWindowRect(adjustWindowRect(*m_frame, windowRect));
1415 if (!m_frame || !m_frame->isMainFrame())
1418 FrameHost* host = m_frame->host();
1425 host->chrome().setWindowRect(adjustWindowRect(*m_frame, windowRect));
1430 if (!m_frame || !m_frame->isMainFrame())
1433 FrameHost* host = m_frame->host();
1440 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update));
1445 if (!m_frame || !m_frame->isMainFrame())
1448 FrameHost* host = m_frame->host();
1455 host->chrome().setWindowRect(adjustWindowRect(*m_frame, update));
1502 if (m_frame && m_frame->host())
1503 m_frame->host()->eventHandlerRegistry().didAddEventHandler(*this, eventType);
1537 if (m_frame && m_frame->host())
1538 m_frame->host()->eventHandlerRegistry().didRemoveEventHandler(*this, eventType);
1554 if (m_frame && m_frame->loader().documentLoader() && !m_frame->loader().documentLoader()->timing()->loadEventStart()) {
1557 RefPtr<DocumentLoader> documentLoader = m_frame->loader().documentLoader();
1568 FrameOwner* owner = m_frame ? m_frame->owner() : 0;
1606 if (m_frame && m_frame->host())
1607 m_frame->host()->eventHandlerRegistry().didRemoveAllEventHandlers(*this);
1636 ASSERT(m_frame);
1637 if (!activeDocument->canNavigate(*m_frame))
1662 m_frame->navigationScheduler().scheduleLocationChange(activeDocument,
1790 if (frameName.isEmpty() || !m_frame->tree().find(frameName))
1798 targetFrame = m_frame->tree().top();
1800 if (Frame* parent = m_frame->tree().parent())
1803 targetFrame = m_frame;
1829 LocalFrame* result = createWindow(urlString, frameName, windowFeatures, *callingWindow, *firstFrame, *m_frame);
1845 if (!canShowModalDialogNow(m_frame) || !enteredWindow->allowPopUp())
1850 WindowFeatures windowFeatures(dialogFeaturesString, screenAvailableRect(m_frame->view()));
1852 *callingWindow, *firstFrame, *m_frame, function, functionContext);
1861 if (!m_frame)
1864 Frame* child = m_frame->tree().scopedChild(index);