• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/inspector/

Lines Matching +refs:frame +refs:height

200 bool InspectorPageAgent::mainResourceContent(Frame* frame, bool withBase64Encode, String* result)
202 RefPtr<ResourceBuffer> buffer = frame->loader().documentLoader()->mainResourceData();
205 String textEncodingName = frame->document()->inputEncoding();
227 void InspectorPageAgent::resourceContent(ErrorString* errorString, Frame* frame, const URL& url, String* result, bool* base64Encoded)
229 DocumentLoader* loader = assertDocumentLoader(errorString, frame);
237 success = mainResourceContent(frame, *base64Encoded, result);
241 success = cachedResourceContent(cachedResource(frame, url), result, base64Encoded);
276 CachedResource* InspectorPageAgent::cachedResource(Frame* frame, const URL& url)
278 CachedResource* cachedResource = frame->document()->cachedResourceLoader()->cachedResource(url);
282 request.setCachePartition(frame->document()->topOrigin()->cachePartition());
284 cachedResource = memoryCache()->resourceForRequest(request, frame->page()->sessionID());
380 if (Frame* frame = mainFrame())
381 m_originalScriptExecutionDisabled = !frame->settings().isScriptEnabled();
431 Frame& frame = m_page->mainFrame();
432 frame.loader().changeLocation(frame.document()->securityOrigin(), frame.document()->completeURL(url), "", LockHistory::No, LockBackForwardList::No);
460 static Vector<CachedResource*> cachedResourcesForFrame(Frame* frame)
464 for (auto& cachedResourceHandle : frame->document()->cachedResourceLoader()->allCachedResources().values()) {
488 static Vector<URL> allResourcesURLsForFrame(Frame* frame)
492 result.append(frame->loader().documentLoader()->url());
494 for (auto* cachedResource : cachedResourcesForFrame(frame))
513 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext(mainFrame())) {
514 Document* document = frame->document();
516 for (auto& url : allResourcesURLsForFrame(frame)) {
523 // because "document" is the document of the main frame of the page.
545 for (Frame* frame = &m_page->mainFrame(); frame; frame = frame->tree().traverseNext(&m_page->mainFrame()))
546 WebCore::deleteCookie(frame->document(), parsedURL, cookieName);
556 Frame* frame = assertFrame(errorString, frameId);
557 if (!frame)
560 resourceContent(errorString, frame, URL(ParsedURLString, url), content, base64Encoded);
583 Frame* frame = frameForId(frameId);
584 if (!frame)
587 DocumentLoader* loader = frame->loader().documentLoader();
596 success = mainResourceContent(frame, false, &content);
599 CachedResource* resource = cachedResource(frame, kurl);
627 for (Frame* frame = &m_page->mainFrame(); frame; frame = frame->tree().traverseNext(&m_page->mainFrame())) {
630 for (auto* cachedResource : cachedResourcesForFrame(frame)) {
634 searchResults->addItem(buildObjectForSearchResult(frameId(frame), cachedResource->url(), matchesCount));
638 if (mainResourceContent(frame, false, &content)) {
641 searchResults->addItem(buildObjectForSearchResult(frameId(frame), frame->document()->url(), matchesCount));
650 Frame* frame = assertFrame(errorString, frameId);
651 if (!frame)
654 Document* document = frame->document();
713 Frame* frame = mainFrame();
714 if (frame) {
715 disabledByScriptController = !frame->script().canExecuteScripts(NotAboutToExecuteScript);
716 disabledInSettings = !frame->settings().isScriptEnabled();
740 void InspectorPageAgent::didClearWindowObjectInWorld(Frame* frame, DOMWrapperWorld& world)
752 frame->script().executeScript(scriptText);
757 frame->script().executeScript(m_scriptToEvaluateOnLoadOnce);
773 if (loader->frame()->isMainFrame()) {
777 m_frontendDispatcher->frameNavigated(buildObjectForFrame(loader->frame()));
780 void InspectorPageAgent::frameDetached(Frame* frame)
782 HashMap<Frame*, String>::iterator iterator = m_frameToIdentifier.find(frame);
801 String InspectorPageAgent::frameId(Frame* frame)
803 if (!frame)
805 String identifier = m_frameToIdentifier.get(frame);
808 m_frameToIdentifier.set(frame, identifier);
809 m_identifierToFrame.set(identifier, frame);
814 bool InspectorPageAgent::hasIdForFrame(Frame* frame) const
816 return frame && m_frameToIdentifier.contains(frame);
833 for (Frame* frame = &m_page->mainFrame(); frame; frame = frame->tree().traverseNext()) {
834 RefPtr<SecurityOrigin> documentOrigin = frame->document()->securityOrigin();
836 return frame;
843 Frame* frame = frameForId(frameId);
844 if (!frame)
845 *errorString = "No frame for given id found";
846 return frame;
850 DocumentLoader* InspectorPageAgent::assertDocumentLoader(ErrorString* errorString, Frame* frame)
852 FrameLoader& frameLoader = frame->loader();
855 *errorString = "No documentLoader for given frame found";
864 void InspectorPageAgent::frameStartedLoading(Frame& frame)
866 m_frontendDispatcher->frameStartedLoading(frameId(&frame));
869 void InspectorPageAgent::frameStoppedLoading(Frame& frame)
871 m_frontendDispatcher->frameStoppedLoading(frameId(&frame));
874 void InspectorPageAgent::frameScheduledNavigation(Frame& frame, double delay)
876 m_frontendDispatcher->frameScheduledNavigation(frameId(&frame), delay);
879 void InspectorPageAgent::frameClearedScheduledNavigation(Frame& frame)
881 m_frontendDispatcher->frameClearedScheduledNavigation(frameId(&frame));
943 PassRefPtr<Inspector::TypeBuilder::Page::Frame> InspectorPageAgent::buildObjectForFrame(Frame* frame)
946 .setId(frameId(frame))
947 .setLoaderId(loaderId(frame->loader().documentLoader()))
948 .setUrl(frame->document()->url().string())
949 .setMimeType(frame->loader().documentLoader()->responseMIMEType())
950 .setSecurityOrigin(frame->document()->securityOrigin()->toRawString());
951 if (frame->tree().parent())
952 frameObject->setParentId(frameId(frame->tree().parent()));
953 if (frame->ownerElement()) {
954 String name = frame->ownerElement()->getNameAttribute();
956 name = frame->ownerElement()->getAttribute(HTMLNames::idAttr);
963 PassRefPtr<Inspector::TypeBuilder::Page::FrameResourceTree> InspectorPageAgent::buildObjectForFrameTree(Frame* frame)
965 RefPtr<Inspector::TypeBuilder::Page::Frame> frameObject = buildObjectForFrame(frame);
971 for (auto* cachedResource : cachedResourcesForFrame(frame)) {
987 for (Frame* child = frame->tree().firstChild(); child; child = child->tree().nextSibling()) {
1048 Frame* frame = mainFrame();
1049 ASSERT(frame);
1057 std::unique_ptr<ImageBuffer> snapshot = WebCore::snapshotNode(*frame, *node);
1066 void InspectorPageAgent::snapshotRect(ErrorString* errorString, int x, int y, int width, int height, const String& coordinateSystem, String* outDataURL)
1068 Frame* frame = mainFrame();
1069 ASSERT(frame);
1075 IntRect rectangle(x, y, width, height);
1076 std::unique_ptr<ImageBuffer> snapshot = snapshotFrameRect(*frame, rectangle, options);
1094 Frame* frame = mainFrame();
1095 if (!frame) {
1096 *errorString = "No main frame";
1101 RefPtr<LegacyWebArchive> archive = LegacyWebArchive::create(frame);
1103 *errorString = "Could not create web archive for main frame";