Changeset 139312 in webkit
- Timestamp:
- Jan 10, 2013 5:37:27 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r139305 r139312 1 2013-01-10 Mikhail Pozdnyakov <mikhail.pozdnyakov@intel.com> 2 3 [EFL][WK2] Contents gets blurry when page is scrolled down 4 https://bugs.webkit.org/show_bug.cgi?id=106545 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 The bound values for scrolling also should be pixel aligned, otherwise 9 it leads to page contents blurriness when the page is scrolled down. 10 11 * UIProcess/PageViewportController.cpp: 12 (WebKit::PageViewportController::pageDidRequestScroll): 13 1 14 2013-01-10 Carlos Garcia Campos <cgarcia@igalia.com> 2 15 -
trunk/Source/WebKit2/UIProcess/PageViewportController.cpp
r139300 r139312 229 229 return; 230 230 231 FloatPoint position = pixelAlignedFloatPoint(FloatPoint(cssPosition));232 FloatPoint boundPosition = boundContentsPosition(position);233 FloatRect endVisibleContentRect( boundPosition, visibleContentsSize());231 FloatPoint boundPosition = boundContentsPosition(FloatPoint(cssPosition)); 232 FloatPoint alignedPosition = pixelAlignedFloatPoint(boundPosition); 233 FloatRect endVisibleContentRect(alignedPosition, visibleContentsSize()); 234 234 235 235 if (m_lastFrameCoveredRect.intersects(endVisibleContentRect)) 236 m_client->setViewportPosition( boundPosition);236 m_client->setViewportPosition(alignedPosition); 237 237 else { 238 238 // Keep the unbound position in case the contents size is changed later on. 239 FloatPoint position = pixelAlignedFloatPoint(FloatPoint(cssPosition)); 239 240 applyPositionAfterRenderingContents(position); 240 241 }
Note: See TracChangeset
for help on using the changeset viewer.