Changeset 166983 in webkit


Ignore:
Timestamp:
Apr 8, 2014, 5:13:43 PM (11 years ago)
Author:
Beth Dakin
Message:

https://bugs.webkit.org/show_bug.cgi?id=131408
Scrollbars layers don't dynamically update when device scale factor changes
-and corresponding-
<rdar://problem/16503875>

Reviewed by Tim Horton.

The scrollbar layers are not children of the RenderView's layer, so they were
completely skipped over by this function before. We need to start this higher up
the tree in the rootGraphicsLayer(), which will typically return the
m_overflowControlsHostLayer.

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::deviceOrPageScaleFactorChanged):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r166981 r166983  
     12014-04-08  Beth Dakin  <bdakin@apple.com>
     2
     3        https://bugs.webkit.org/show_bug.cgi?id=131408
     4        Scrollbars layers don't dynamically update when device scale factor changes
     5        -and corresponding-
     6        <rdar://problem/16503875>
     7
     8        Reviewed by Tim Horton.
     9
     10        The scrollbar layers are not children of the RenderView's layer, so they were
     11        completely skipped over by this function before. We need to start this higher up
     12        the tree in the rootGraphicsLayer(), which will typically return the
     13        m_overflowControlsHostLayer.
     14        * rendering/RenderLayerCompositor.cpp:
     15        (WebCore::RenderLayerCompositor::deviceOrPageScaleFactorChanged):
     16
    1172014-04-08  Ryosuke Niwa  <rniwa@webkit.org>
    218
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r166958 r166983  
    33633363void RenderLayerCompositor::deviceOrPageScaleFactorChanged()
    33643364{
    3365     // Start at the RenderView's layer, since that's where the scale is applied.
    3366     RenderLayer* viewLayer = m_renderView.layer();
    3367     if (!viewLayer->isComposited())
    3368         return;
    3369 
    3370     if (GraphicsLayer* rootLayer = viewLayer->backing()->childForSuperlayers())
     3365    // Page scale will only be applied at to the RenderView and sublayers, but the device scale factor
     3366    // needs to be applied at the level of rootGraphicsLayer().
     3367    GraphicsLayer* rootLayer = rootGraphicsLayer();
     3368    if (rootLayer)
    33713369        rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants();
    33723370}
Note: See TracChangeset for help on using the changeset viewer.