Commit 2497509c authored by aroben@apple.com's avatar aroben@apple.com

Move two more methods to WebFrameLoaderClient

         Reviewed by Sam.

         * WebCoreSupport/WebFrameLoaderClient.cpp:
         (WebFrameLoaderClient::hasFrameView):
         (WebFrame::forceLayout):
         * WebCoreSupport/WebFrameLoaderClient.h:
         * WebFrame.cpp:
         * WebFrame.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 3de6b94a
2008-02-23 Adam Roben <aroben@apple.com>
Move two more methods to WebFrameLoaderClient
Reviewed by Sam.
* WebCoreSupport/WebFrameLoaderClient.cpp:
(WebFrameLoaderClient::hasFrameView):
(WebFrame::forceLayout):
* WebCoreSupport/WebFrameLoaderClient.h:
* WebFrame.cpp:
* WebFrame.h:
2008-02-24 Darin Adler <darin@apple.com>
Reviewed by Sam.
......
......@@ -52,6 +52,16 @@ bool WebFrameLoaderClient::hasWebView() const
return m_webFrame->webView();
}
bool WebFrameLoaderClient::hasFrameView() const
{
return core(m_webFrame)->view();
}
void WebFrameLoaderClient::forceLayout()
{
core(m_webFrame)->forceLayout(true);
}
PassRefPtr<DocumentLoader> WebFrameLoaderClient::createDocumentLoader(const ResourceRequest& request, const SubstituteData& substituteData)
{
RefPtr<WebDocumentLoader> loader = new WebDocumentLoader(request, substituteData);
......
......@@ -38,6 +38,8 @@ class WebFrame;
class WebFrameLoaderClient : public WebCore::FrameLoaderClient {
public:
virtual bool hasWebView() const;
virtual bool hasFrameView() const;
virtual void forceLayout();
virtual PassRefPtr<WebCore::DocumentLoader> createDocumentLoader(const WebCore::ResourceRequest&, const WebCore::SubstituteData&);
protected:
......
......@@ -1203,21 +1203,11 @@ WebHistory* WebFrame::webHistory()
return webHistory;
}
bool WebFrame::hasFrameView() const
{
return !!d->frameView();
}
void WebFrame::makeRepresentation(DocumentLoader*)
{
notImplemented();
}
void WebFrame::forceLayout()
{
core(this)->forceLayout(true);
}
void WebFrame::forceLayoutForNonHTML()
{
notImplemented();
......
......@@ -217,9 +217,7 @@ public:
// FrameLoaderClient
virtual void frameLoaderDestroyed();
virtual bool hasFrameView() const;
virtual void makeRepresentation(WebCore::DocumentLoader*);
virtual void forceLayout();
virtual void forceLayoutForNonHTML();
virtual void setCopiesOnScroll();
virtual void detachedFromParent1();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment