Changeset 168661 in webkit


Ignore:
Timestamp:
May 12, 2014 5:14:01 PM (10 years ago)
Author:
Simon Fraser
Message:

[iOS WK2] Fuzzy tiles on some sites on loading
https://bugs.webkit.org/show_bug.cgi?id=132847
<rdar://problem/16816178>

Reviewed by Benjamin Poulain.

Source/WebCore:

Export WebCore::TileController::contentsScale() const

  • WebCore.exp.in:

Source/WebKit2:

PlatformCALayerRemoteTiledBacking overrode setContentsScale() but not contentsScale(),
causing us to early-return from GraphicsLayerCA::updateContentsScale() and leave the
scale wrong. Fix by overriding contentsScale() also.

  • WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp:

(WebKit::PlatformCALayerRemoteTiledBacking::contentsScale):

  • WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:
Location:
trunk/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r168660 r168661  
     12014-05-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [iOS WK2] Fuzzy tiles on some sites on loading
     4        https://bugs.webkit.org/show_bug.cgi?id=132847
     5        <rdar://problem/16816178>
     6
     7        Reviewed by Benjamin Poulain.
     8
     9        Export WebCore::TileController::contentsScale() const
     10
     11        * WebCore.exp.in:
     12
    1132014-05-12  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebCore/WebCore.exp.in

    r168650 r168661  
    16541654__ZNK7WebCore14SecurityOrigin5equalEPKS0_
    16551655__ZNK7WebCore14SecurityOrigin8toStringEv
     1656__ZNK7WebCore14TileController13contentsScaleEv
    16561657__ZNK7WebCore15AffineTransform10isIdentityEv
    16571658__ZNK7WebCore15AffineTransform12isInvertibleEv
  • trunk/Source/WebKit2/ChangeLog

    r168657 r168661  
     12014-05-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        [iOS WK2] Fuzzy tiles on some sites on loading
     4        https://bugs.webkit.org/show_bug.cgi?id=132847
     5        <rdar://problem/16816178>
     6
     7        Reviewed by Benjamin Poulain.
     8       
     9        PlatformCALayerRemoteTiledBacking overrode setContentsScale() but not contentsScale(),
     10        causing us to early-return from GraphicsLayerCA::updateContentsScale() and leave the
     11        scale wrong. Fix by overriding contentsScale() also.
     12
     13        * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp:
     14        (WebKit::PlatformCALayerRemoteTiledBacking::contentsScale):
     15        * WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h:
     16
    1172014-05-12  Tim Horton  <timothy_horton@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.cpp

    r167256 r168661  
    8787}
    8888
     89float PlatformCALayerRemoteTiledBacking::contentsScale() const
     90{
     91    return m_tileController->contentsScale();
     92}
     93
    8994void PlatformCALayerRemoteTiledBacking::setContentsScale(float scale)
    9095{
  • trunk/Source/WebKit2/WebProcess/WebPage/mac/PlatformCALayerRemoteTiledBacking.h

    r167256 r168661  
    4646
    4747    virtual void setBounds(const WebCore::FloatRect&) override;
     48   
    4849    virtual bool isOpaque() const override;
    4950    virtual void setOpaque(bool) override;
     51   
    5052    virtual bool acceleratesDrawing() const override;
    5153    virtual void setAcceleratesDrawing(bool) override;
     54   
     55    virtual float contentsScale() const override;
    5256    virtual void setContentsScale(float) override;
     57   
    5358    virtual void setBorderWidth(float) override;
    5459    virtual void setBorderColor(const WebCore::Color&) override;
Note: See TracChangeset for help on using the changeset viewer.