Changeset 139215 in webkit


Ignore:
Timestamp:
Jan 9, 2013, 11:36:21 AM (12 years ago)
Author:
abecsi@webkit.org
Message:

[Qt][WK2] Fix a typo in in the double-tap-to-zoom logic

Rubber-stamped by Csaba Osztrogonác.

The qMin for the upper boundary of the scale was accidentally
changed to qMax in r139189, change it back to fix the Qt API tests.

  • UIProcess/qt/PageViewportControllerClientQt.cpp:

(WebKit::PageViewportControllerClientQt::zoomToAreaGestureEnded):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r139189 r139215  
     12013-01-09  Andras Becsi  <andras.becsi@digia.com>
     2
     3        [Qt][WK2] Fix a typo in in the double-tap-to-zoom logic
     4
     5        Rubber-stamped by Csaba Osztrogonác.
     6
     7        The qMin for the upper boundary of the scale was accidentally
     8        changed to qMax in r139189, change it back to fix the Qt API tests.
     9
     10        * UIProcess/qt/PageViewportControllerClientQt.cpp:
     11        (WebKit::PageViewportControllerClientQt::zoomToAreaGestureEnded):
     12
    1132013-01-09  Andras Becsi  <andras.becsi@digia.com>
    214
  • trunk/Source/WebKit2/UIProcess/qt/PageViewportControllerClientQt.cpp

    r139189 r139215  
    229229    const qreal minViewportScale = qreal(2.5);
    230230    qreal targetScale = viewportRect.size().width() / endArea.size().width();
    231     targetScale = m_controller->innerBoundedViewportScale(qMax(minViewportScale, targetScale));
     231    targetScale = m_controller->innerBoundedViewportScale(qMin(minViewportScale, targetScale));
    232232    qreal currentScale = m_pageItem->contentsScale();
    233233
Note: See TracChangeset for help on using the changeset viewer.