Commit 0394b747 authored by hyatt's avatar hyatt

More refinements to immediate painting code. Still doesn't

	fix the scrollbar problem though. :(

        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::close):
        * khtml/khtmlview.cpp:
        (KHTMLView::init):
        (KHTMLView::timerEvent):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2724 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 177a8b90
2002-11-17 David Hyatt <hyatt@apple.com>
More refinements to immediate painting code. Still doesn't
fix the scrollbar problem though. :(
* khtml/html/html_documentimpl.cpp:
(HTMLDocumentImpl::close):
* khtml/khtmlview.cpp:
(KHTMLView::init):
(KHTMLView::timerEvent):
2002-11-17 David Hyatt <hyatt@apple.com>
Make immediate repainting of the root element more robust.
......
2002-11-17 David Hyatt <hyatt@apple.com>
More refinements to immediate painting code. Still doesn't
fix the scrollbar problem though. :(
* khtml/html/html_documentimpl.cpp:
(HTMLDocumentImpl::close):
* khtml/khtmlview.cpp:
(KHTMLView::init):
(KHTMLView::timerEvent):
2002-11-17 David Hyatt <hyatt@apple.com>
Make immediate repainting of the root element more robust.
......
2002-11-17 David Hyatt <hyatt@apple.com>
More refinements to immediate painting code. Still doesn't
fix the scrollbar problem though. :(
* khtml/html/html_documentimpl.cpp:
(HTMLDocumentImpl::close):
* khtml/khtmlview.cpp:
(KHTMLView::init):
(KHTMLView::timerEvent):
2002-11-17 David Hyatt <hyatt@apple.com>
Make immediate repainting of the root element more robust.
......
......@@ -324,9 +324,14 @@ void HTMLDocumentImpl::close()
if (body() && doload) {
updateRendering();
// Always do a full and immediate repaint after loading.
if (renderer())
// Always do a full and immediate layout/repaint after loading.
if (renderer()) {
if (!renderer()->layouted()) {
renderer()->layout();
view()->unscheduleRelayout();
}
renderer()->repaint(true);
}
}
}
......
......@@ -265,6 +265,7 @@ void KHTMLView::init()
_height = 0;
setAcceptDrops(true);
resizeContents(visibleWidth(), visibleHeight());
}
......@@ -1464,16 +1465,16 @@ void KHTMLView::timerEvent ( QTimerEvent *e )
}
if( m_part->xmlDocImpl() ) {
DOM::DocumentImpl *document = m_part->xmlDocImpl();
khtml::RenderRoot* root = static_cast<khtml::RenderRoot *>(document->renderer());
resizeContents(root->docWidth(), root->docHeight());
if ( !root->layouted() ) {
killTimer(d->repaintTimerId);
d->repaintTimerId = 0;
//qDebug("not layouted, delaying repaint");
scheduleRelayout();
return;
}
DOM::DocumentImpl *document = m_part->xmlDocImpl();
khtml::RenderRoot* root = static_cast<khtml::RenderRoot *>(document->renderer());
if ( !root->layouted() ) {
killTimer(d->repaintTimerId);
d->repaintTimerId = 0;
//qDebug("not layouted, delaying repaint");
scheduleRelayout();
return;
}
resizeContents(root->docWidth(), root->docHeight());
}
setStaticBackground(d->useSlowRepaints);
......
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