Changeset 166983 in webkit
- Timestamp:
- Apr 8, 2014, 5:13:43 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r166981 r166983 1 2014-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 1 17 2014-04-08 Ryosuke Niwa <rniwa@webkit.org> 2 18 -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r166958 r166983 3363 3363 void RenderLayerCompositor::deviceOrPageScaleFactorChanged() 3364 3364 { 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) 3371 3369 rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants(); 3372 3370 }
Note:
See TracChangeset
for help on using the changeset viewer.