⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 220940 in webkit


Ignore:
Timestamp:
Aug 18, 2017, 4:15:06 PM (9 years ago)
Author:
timothy_horton@apple.com
Message:

Remove classic mode screen scale clamping
​https://bugs.webkit.org/show_bug.cgi?id=175739
<rdar://problem/33894531>

Reviewed by Andy Estes.

  • platform/ios/PlatformScreenIOS.mm:

(WebCore::screenScaleFactor):
This code is no longer needed.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r220939 r220940  
     12017-08-18  Tim Horton  <timothy_horton@apple.com>
     2
     3        Remove classic mode screen scale clamping
     4        https://bugs.webkit.org/show_bug.cgi?id=175739
     5        <rdar://problem/33894531>
     6
     7        Reviewed by Andy Estes.
     8
     9        * platform/ios/PlatformScreenIOS.mm:
     10        (WebCore::screenScaleFactor):
     11        This code is no longer needed.
     12
    1132017-08-18  Daewoong Jang  <daewoong.jang@navercorp.com>
    214
  • trunk/Source/WebCore/platform/ios/PlatformScreenIOS.mm

    r220809 r220940  
    145145        screen = [get_UIKit_UIScreenClass() mainScreen];
    146146
    147     CGFloat scale = screen.scale;
    148 
    149     // We can remove this clamping once <rdar://problem/16395475> is fixed.
    150     const CGFloat maximumClassicScreenScaleFactor = 2;
    151     if ([[get_UIKit_UIApplicationClass() sharedApplication] _isClassic])
    152         return std::min(scale, maximumClassicScreenScaleFactor);
    153 
    154     return scale;
     147    return screen.scale;
    155148}
    156149
Note: See TracChangeset for help on using the changeset viewer.