Commit 87d60161 authored by yael.aharon@nokia.com's avatar yael.aharon@nokia.com

2011-05-02 Yael Aharon <yael.aharon@nokia.com>

        Reviewed by Andreas Kling.

        [Qt] White screen displays when using MiniBrowser with DrawingAreaImpl
        https://bugs.webkit.org/show_bug.cgi?id=60003

        When using DrawingAreaImpl, we need to properly pass the viewSize to the WebPage.
        Otherwise, the dirty rect will always be empty and we will not draw.

        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPagePrivate::viewSize):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@85584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 6f1ce770
2011-05-02 Yael Aharon <yael.aharon@nokia.com>
Reviewed by Andreas Kling.
[Qt] White screen displays when using MiniBrowser with DrawingAreaImpl
https://bugs.webkit.org/show_bug.cgi?id=60003
When using DrawingAreaImpl, we need to properly pass the viewSize to the WebPage.
Otherwise, the dirty rect will always be empty and we will not draw.
* UIProcess/API/qt/qwkpage.cpp:
(QWKPagePrivate::viewSize):
2011-05-02 Anders Carlsson <andersca@apple.com>
Fix crash that was introduced in r85515.
......
......@@ -159,8 +159,7 @@ void QWKPagePrivate::scrollView(const WebCore::IntRect& scrollRect, const WebCor
WebCore::IntSize QWKPagePrivate::viewSize()
{
// FIXME: Implement.
return WebCore::IntSize();
return view ? WebCore::IntSize(view->boundingRect().size().toSize()) : WebCore::IntSize();
}
bool QWKPagePrivate::isViewWindowActive()
......
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