Changeset 69966 in webkit


Ignore:
Timestamp:
Oct 18, 2010 9:48:07 AM (14 years ago)
Author:
noam.rosenthal@nokia.com
Message:

2010-10-18 No'am Rosenthal <noam.rosenthal@nokia.com>

Reviewed by Andreas Kling.

[Qt] AC rendering bugs

This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
when graphics layers are present incorrect. The fix simply removes those redundant functions.

https://bugs.webkit.org/show_bug.cgi?id=47571

  • WebCoreSupport/PageClientQt.cpp: (WebCore::PageClientQGraphicsWidget::scroll): (WebCore::PageClientQGraphicsWidget::update): (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
  • WebCoreSupport/PageClientQt.h:
Location:
trunk/WebKit/qt
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/qt/ChangeLog

    r69962 r69966  
     12010-10-18  No'am Rosenthal  <noam.rosenthal@nokia.com>
     2
     3        Reviewed by Andreas Kling.
     4
     5        [Qt] AC rendering bugs
     6
     7        This fixes a regression that was introduced by making scrolling in accelerated compositing automatic,
     8        which made our explicit function to scroll the compositing layers superfluous, making the scrolling behavior
     9        when graphics layers are present incorrect. The fix simply removes those redundant functions.
     10
     11        https://bugs.webkit.org/show_bug.cgi?id=47571
     12
     13        * WebCoreSupport/PageClientQt.cpp:
     14        (WebCore::PageClientQGraphicsWidget::scroll):
     15        (WebCore::PageClientQGraphicsWidget::update):
     16        (WebCore::PageClientQGraphicsWidget::setRootGraphicsLayer):
     17        * WebCoreSupport/PageClientQt.h:
     18
    1192010-10-18  Jocelyn Turcotte  <jocelyn.turcotte@nokia.com>
    220
  • trunk/WebKit/qt/WebCoreSupport/PageClientQt.cpp

    r68761 r69966  
    119119{
    120120    view->scroll(qreal(dx), qreal(dy), rectToScroll);
    121 
    122 #if USE(ACCELERATED_COMPOSITING)
    123     updateCompositingScrollPosition();
    124 #endif
    125121}
    126122
     
    134130#if USE(ACCELERATED_COMPOSITING)
    135131    syncLayers();
    136     // This might be a slow-scroll. We ensure that the compositing layers are in the right position.
    137     updateCompositingScrollPosition();
    138132#endif
    139133}
     
    186180        layer->setParentItem(view);
    187181        layer->setZValue(RootGraphicsLayerZValue);
    188         updateCompositingScrollPosition();
    189182    }
    190183    createOrDeleteOverlay();
     
    198191}
    199192
    200 void PageClientQGraphicsWidget::updateCompositingScrollPosition()
    201 {
    202     if (rootGraphicsLayer && page && page->mainFrame()) {
    203         const QPoint scrollPosition = page->mainFrame()->scrollPosition();
    204         rootGraphicsLayer.data()->setPos(-scrollPosition);
    205     }
    206 }
    207193#endif
    208194
  • trunk/WebKit/qt/WebCoreSupport/PageClientQt.h

    r68761 r69966  
    171171    virtual void setRootGraphicsLayer(QGraphicsItem* layer);
    172172    virtual void markForSync(bool scheduleSync);
    173     void updateCompositingScrollPosition();
    174173    void syncLayers();
    175174
Note: See TracChangeset for help on using the changeset viewer.