Changeset 71803 in webkit


Ignore:
Timestamp:
Nov 11, 2010 4:32:29 AM (13 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-11-11 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

FrameView: Don't clip to visibleContentRect in paintEntireContents mode
https://bugs.webkit.org/show_bug.cgi?id=49375

Use paintEntireContents in combination with tiling, allowing to
actually set visibleContentRect to something different from
the actual contents size.

  • Api/qgraphicswebview.cpp: (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
  • WebCoreSupport/FrameLoaderClientQt.cpp: (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):

2010-11-11 Andreas Kling <kling@webkit.org>

Reviewed by Kenneth Rohde Christiansen.

FrameView: Don't clip to visibleContentRect in paintEntireContents mode
https://bugs.webkit.org/show_bug.cgi?id=49375

In paintEntireContents mode (used in combination with tiling) we
cannot clip to the actual visibleContentRect as the clipped regions
will not be updated again on scroll. If paintsEntireContents is
enabled, return the actual content rect.

  • page/FrameView.cpp: (WebCore::FrameView::windowClipRect):
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r71802 r71803  
     12010-11-11  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        FrameView: Don't clip to visibleContentRect in paintEntireContents mode
     6        https://bugs.webkit.org/show_bug.cgi?id=49375
     7
     8        In paintEntireContents mode (used in combination with tiling) we
     9        cannot clip to the actual visibleContentRect as the clipped regions
     10        will not be updated again on scroll. If paintsEntireContents is
     11        enabled, return the actual content rect.
     12
     13        * page/FrameView.cpp:
     14        (WebCore::FrameView::windowClipRect):
     15
    1162010-11-10  Nikolas Zimmermann  <nzimmermann@rim.com>
    217
  • trunk/WebCore/page/FrameView.cpp

    r71736 r71803  
    18431843    ASSERT(m_frame->view() == this);
    18441844
     1845    if (paintsEntireContents())
     1846        return IntRect(IntPoint(0, 0), contentsSize());
     1847
    18451848    // Set our clip rect to be our contents.
    18461849    IntRect clipRect = contentsToWindow(visibleContentRect(!clipToContents));
  • trunk/WebKit/qt/Api/qgraphicswebview.cpp

    r71736 r71803  
    142142    }
    143143    page->d->page->settings()->setShouldDelegateScrolling(resizesToContents);
     144    page->d->page->mainFrame()->view()->setPaintsEntireContents(resizesToContents);
    144145}
    145146
  • trunk/WebKit/qt/ChangeLog

    r71736 r71803  
     12010-11-11  Andreas Kling  <kling@webkit.org>
     2
     3        Reviewed by Kenneth Rohde Christiansen.
     4
     5        FrameView: Don't clip to visibleContentRect in paintEntireContents mode
     6        https://bugs.webkit.org/show_bug.cgi?id=49375
     7
     8        Use paintEntireContents in combination with tiling, allowing to
     9        actually set visibleContentRect to something different from
     10        the actual contents size.
     11
     12        * Api/qgraphicswebview.cpp:
     13        (QGraphicsWebViewPrivate::updateResizesToContentsForPage):
     14        * WebCoreSupport/FrameLoaderClientQt.cpp:
     15        (WebCore::FrameLoaderClientQt::transitionToCommittedForNewPage):
     16
    1172010-11-10  Sheriff Bot  <webkit.review.bot@gmail.com>
    218
  • trunk/WebKit/qt/WebCoreSupport/FrameLoaderClientQt.cpp

    r71736 r71803  
    281281                        hScrollbar, hLock,
    282282                        vScrollbar, vLock);
     283
     284    bool isMainFrame = m_frame == m_frame->page()->mainFrame();
     285    if (isMainFrame && page->d->client)
     286        m_frame->view()->setPaintsEntireContents(page->d->client->viewResizesToContentsEnabled());
    283287}
    284288
Note: See TracChangeset for help on using the changeset viewer.