Commit 67399b7b authored by hyatt@apple.com's avatar hyatt@apple.com
Browse files

2008-10-07 David Hyatt <hyatt@apple.com>

        Make sure the parent visibility state is set up properly on the outermost ScrollView widget.
        This fixes the repainting issues with viewless WebKit on Mac.

        Reviewed by Sam Weinig

        * WebCoreSupport/WebFrameLoaderClient.mm:
        (WebFrameLoaderClient::transitionToCommittedForNewPage):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@37375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 270bdd0c
2008-10-07 David Hyatt <hyatt@apple.com>
Make sure the parent visibility state is set up properly on the outermost ScrollView widget.
This fixes the repainting issues with viewless WebKit on Mac.
Reviewed by Sam Weinig
* WebCoreSupport/WebFrameLoaderClient.mm:
(WebFrameLoaderClient::transitionToCommittedForNewPage):
2008-10-07 David Hyatt <hyatt@apple.com>
Make sure viewless Mac WebKit does a layout if needed before drawing.
......
......@@ -963,6 +963,10 @@ void WebFrameLoaderClient::transitionToCommittedForNewPage()
// If we own the view, delete the old one - otherwise the render m_frame will take care of deleting the view.
Frame* coreFrame = core(m_webFrame.get());
Page* page = coreFrame->page();
bool isMainFrame = coreFrame == page->mainFrame();
if (isMainFrame && coreFrame->view())
coreFrame->view()->setParentVisible(false);
coreFrame->setView(0);
FrameView* coreView;
if (useDocumentViews)
......@@ -976,6 +980,9 @@ void WebFrameLoaderClient::transitionToCommittedForNewPage()
[v _install];
if (isMainFrame)
coreView->setParentVisible(true);
// Call setDataSource on the document view after it has been placed in the view hierarchy.
// This what we for the top-level view, so should do this for views in subframes as well.
[documentView setDataSource:ds];
......
Supports Markdown
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