Changeset 69966 in webkit
- Timestamp:
- Oct 18, 2010 9:48:07 AM (14 years ago)
- Location:
- trunk/WebKit/qt
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKit/qt/ChangeLog
r69962 r69966 1 2010-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 1 19 2010-10-18 Jocelyn Turcotte <jocelyn.turcotte@nokia.com> 2 20 -
trunk/WebKit/qt/WebCoreSupport/PageClientQt.cpp
r68761 r69966 119 119 { 120 120 view->scroll(qreal(dx), qreal(dy), rectToScroll); 121 122 #if USE(ACCELERATED_COMPOSITING)123 updateCompositingScrollPosition();124 #endif125 121 } 126 122 … … 134 130 #if USE(ACCELERATED_COMPOSITING) 135 131 syncLayers(); 136 // This might be a slow-scroll. We ensure that the compositing layers are in the right position.137 updateCompositingScrollPosition();138 132 #endif 139 133 } … … 186 180 layer->setParentItem(view); 187 181 layer->setZValue(RootGraphicsLayerZValue); 188 updateCompositingScrollPosition();189 182 } 190 183 createOrDeleteOverlay(); … … 198 191 } 199 192 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 }207 193 #endif 208 194 -
trunk/WebKit/qt/WebCoreSupport/PageClientQt.h
r68761 r69966 171 171 virtual void setRootGraphicsLayer(QGraphicsItem* layer); 172 172 virtual void markForSync(bool scheduleSync); 173 void updateCompositingScrollPosition();174 173 void syncLayers(); 175 174
Note: See TracChangeset
for help on using the changeset viewer.