Changeset 139312 in webkit


Ignore:
Timestamp:
Jan 10, 2013 5:37:27 AM (11 years ago)
Author:
mikhail.pozdnyakov@intel.com
Message:

[EFL][WK2] Contents gets blurry when page is scrolled down
https://bugs.webkit.org/show_bug.cgi?id=106545

Reviewed by Kenneth Rohde Christiansen.

The bound values for scrolling also should be pixel aligned, otherwise
it leads to page contents blurriness when the page is scrolled down.

  • UIProcess/PageViewportController.cpp:

(WebKit::PageViewportController::pageDidRequestScroll):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r139305 r139312  
     12013-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
    1142013-01-10  Carlos Garcia Campos  <cgarcia@igalia.com>
    215
  • trunk/Source/WebKit2/UIProcess/PageViewportController.cpp

    r139300 r139312  
    229229        return;
    230230
    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());
    234234
    235235    if (m_lastFrameCoveredRect.intersects(endVisibleContentRect))
    236         m_client->setViewportPosition(boundPosition);
     236        m_client->setViewportPosition(alignedPosition);
    237237    else {
    238238        // Keep the unbound position in case the contents size is changed later on.
     239        FloatPoint position = pixelAlignedFloatPoint(FloatPoint(cssPosition));
    239240        applyPositionAfterRenderingContents(position);
    240241    }
Note: See TracChangeset for help on using the changeset viewer.