Changeset 139275 in webkit


Ignore:
Timestamp:
Jan 9, 2013 7:33:51 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Remove deviceScaleFactor argument in computeMinimumScaleFactorForContentContained().
https://bugs.webkit.org/show_bug.cgi?id=106500

Patch by Huang Dongsung <luxtella@company100.net> on 2013-01-09
Reviewed by Kenneth Rohde Christiansen.

deviceScaleFactor argument is not used after r139189.

Source/WebCore:

No new tests. Refactoring only.

  • dom/ViewportArguments.cpp:

(WebCore::computeMinimumScaleFactorForContentContained):

  • dom/ViewportArguments.h:

(WebCore):

Source/WebKit2:

  • UIProcess/PageViewportController.cpp:

(WebKit::PageViewportController::updateMinimumScaleToFit):

Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r139273 r139275  
     12013-01-09  Huang Dongsung  <luxtella@company100.net>
     2
     3        Remove deviceScaleFactor argument in computeMinimumScaleFactorForContentContained().
     4        https://bugs.webkit.org/show_bug.cgi?id=106500
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        deviceScaleFactor argument is not used after r139189.
     9
     10        No new tests. Refactoring only.
     11
     12        * dom/ViewportArguments.cpp:
     13        (WebCore::computeMinimumScaleFactorForContentContained):
     14        * dom/ViewportArguments.h:
     15        (WebCore):
     16
    1172013-01-09  Elliott Sprehn  <esprehn@gmail.com>
    218
  • trunk/Source/WebCore/dom/ViewportArguments.cpp

    r137318 r139275  
    272272}
    273273
    274 float computeMinimumScaleFactorForContentContained(const ViewportAttributes& result, const IntSize& visibleViewport, const IntSize& contentsSize, float devicePixelRatio)
    275 {
    276     FloatSize viewportSize = convertToUserSpace(visibleViewport, devicePixelRatio);
    277 
     274float computeMinimumScaleFactorForContentContained(const ViewportAttributes& result, const IntSize& visibleViewport, const IntSize& contentsSize)
     275{
     276    FloatSize viewportSize(visibleViewport);
    278277    return max<float>(result.minimumScale, max(viewportSize.width() / contentsSize.width(), viewportSize.height() / contentsSize.height()));
    279278}
  • trunk/Source/WebCore/dom/ViewportArguments.h

    r135163 r139275  
    139139void restrictMinimumScaleFactorToViewportSize(ViewportAttributes& result, IntSize visibleViewport, float devicePixelRatio);
    140140void restrictScaleFactorToInitialScaleIfNotUserScalable(ViewportAttributes& result);
    141 float computeMinimumScaleFactorForContentContained(const ViewportAttributes& result, const IntSize& viewportSize, const IntSize& contentSize, float devicePixelRatio);
     141float computeMinimumScaleFactorForContentContained(const ViewportAttributes& result, const IntSize& viewportSize, const IntSize& contentSize);
    142142
    143143void setViewportFeature(const String& keyString, const String& valueString, Document*, void* data);
  • trunk/Source/WebKit2/ChangeLog

    r139274 r139275  
     12013-01-09  Huang Dongsung  <luxtella@company100.net>
     2
     3        Remove deviceScaleFactor argument in computeMinimumScaleFactorForContentContained().
     4        https://bugs.webkit.org/show_bug.cgi?id=106500
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        deviceScaleFactor argument is not used after r139189.
     9
     10        * UIProcess/PageViewportController.cpp:
     11        (WebKit::PageViewportController::updateMinimumScaleToFit):
     12
    1132013-01-09  Huang Dongsung  <luxtella@company100.net>
    214
  • trunk/Source/WebKit2/UIProcess/PageViewportController.cpp

    r139274 r139275  
    344344    bool currentlyScaledToFit = fuzzyCompare(m_pageScaleFactor, m_minimumScaleToFit, 0.0001);
    345345
    346     float minimumScale = WebCore::computeMinimumScaleFactorForContentContained(m_rawAttributes, WebCore::roundedIntSize(m_viewportSize), WebCore::roundedIntSize(m_contentsSize), 1);
     346    float minimumScale = WebCore::computeMinimumScaleFactorForContentContained(m_rawAttributes, WebCore::roundedIntSize(m_viewportSize), WebCore::roundedIntSize(m_contentsSize));
    347347
    348348    if (minimumScale <= 0)
Note: See TracChangeset for help on using the changeset viewer.