Changeset 76254 in webkit


Ignore:
Timestamp:
Jan 20, 2011 9:10:34 AM (13 years ago)
Author:
Adam Roben
Message:

Teach WebView::scrollBackingStore about compositing mode

Test:

compositing/scroll-painted-composited-content.html

Fixes <http://webkit.org/b/52720> REGRESSION (r75987): Assertion failure in
WebView::scrollBackingStore when scrolling page with composited content

Reviewed by Anders Carlsson.

Source/WebKit/win:

  • WebView.cpp:

(WebView::scrollBackingStore): Do something sensible (though naive) when in compositing
mode, rather than incorrectly asserting that this function is never called in that case. For
now we just repaint the entire scrolled region; someday hopefully we can avoid having to
repaint the areas that have just been moved.

LayoutTests:

Add a test that scrolls composited content that has already been painted

  • compositing/scroll-painted-composited-content.html: Added.
  • compositing/scroll-painted-composited-content-expected.txt: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r76244 r76254  
     12011-01-19  Adam Roben  <aroben@apple.com>
     2
     3        Add a test that scrolls composited content that has already been painted
     4
     5        Test for <http://webkit.org/b/52720> REGRESSION (r75987): Assertion failure in
     6        WebView::scrollBackingStore when scrolling page with composited content
     7
     8        Reviewed by Anders Carlsson.
     9
     10        * compositing/scroll-painted-composited-content.html: Added.
     11        * compositing/scroll-painted-composited-content-expected.txt: Added.
     12
    1132011-01-20  Yury Semikhatsky  <yurys@chromium.org>
    214
  • trunk/Source/WebKit/win/ChangeLog

    r76196 r76254  
     12011-01-19  Adam Roben  <aroben@apple.com>
     2
     3        Teach WebView::scrollBackingStore about compositing mode
     4
     5        Test:
     6            compositing/scroll-painted-composited-content.html
     7
     8        Fixes <http://webkit.org/b/52720> REGRESSION (r75987): Assertion failure in
     9        WebView::scrollBackingStore when scrolling page with composited content
     10
     11        Reviewed by Anders Carlsson.
     12
     13        * WebView.cpp:
     14        (WebView::scrollBackingStore): Do something sensible (though naive) when in compositing
     15        mode, rather than incorrectly asserting that this function is never called in that case. For
     16        now we just repaint the entire scrolled region; someday hopefully we can avoid having to
     17        repaint the areas that have just been moved.
     18
    1192011-01-19  Simon Fraser  <simon.fraser@apple.com>
    220
  • trunk/Source/WebKit/win/WebView.cpp

    r76196 r76254  
    820820{
    821821#if USE(ACCELERATED_COMPOSITING)
    822     ASSERT(!isAcceleratedCompositing());
     822    if (isAcceleratedCompositing()) {
     823        // FIXME: We should be doing something smarter here, like moving tiles around and painting
     824        // any newly-exposed tiles. <http://webkit.org/b/52714>
     825        m_backingLayer->setNeedsDisplayInRect(scrollViewRect);
     826        return;
     827    }
    823828#endif
    824829
Note: See TracChangeset for help on using the changeset viewer.