Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1426)

Unified Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 14974003: Remove codes related to scaling in GraphicsLayer tree. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch to land: Remove an unused memeber in PageOverlay.cpp to compile in Mac. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayerCompositor.cpp
diff --git a/Source/core/rendering/RenderLayerCompositor.cpp b/Source/core/rendering/RenderLayerCompositor.cpp
index 48e046390cf6b97610f9269dcad22bf002bc8ed2..d5661030734ca635b5ad17133314138eb128cf87 100644
--- a/Source/core/rendering/RenderLayerCompositor.cpp
+++ b/Source/core/rendering/RenderLayerCompositor.cpp
@@ -2135,29 +2135,11 @@ bool RenderLayerCompositor::isTrackingRepaints() const
return m_isTrackingRepaints;
}
-float RenderLayerCompositor::deviceScaleFactor() const
-{
- Page* page = this->page();
- return page ? page->deviceScaleFactor() : 1;
-}
-
-float RenderLayerCompositor::pageScaleFactor() const
-{
- Page* page = this->page();
- return page ? page->pageScaleFactor() : 1;
-}
-
void RenderLayerCompositor::didCommitChangesForLayer(const GraphicsLayer*) const
{
// Nothing to do here yet.
}
-bool RenderLayerCompositor::keepLayersPixelAligned() const
-{
- // When scaling, attempt to align compositing layers to pixel boundaries.
- return true;
-}
-
static bool shouldCompositeOverflowControls(FrameView* view)
{
if (Page* page = view->frame()->page()) {
@@ -2633,17 +2615,6 @@ bool RenderLayerCompositor::layerHas3DContent(const RenderLayer* layer) const
return false;
}
-void RenderLayerCompositor::deviceOrPageScaleFactorChanged()
-{
- // Start at the RenderView's layer, since that's where the scale is applied.
- RenderLayer* viewLayer = m_renderView->layer();
- if (!viewLayer->isComposited())
- return;
-
- if (GraphicsLayer* rootLayer = viewLayer->backing()->childForSuperlayers())
- rootLayer->noteDeviceOrPageScaleFactorChangedIncludingDescendants();
-}
-
static bool isRootmostFixedOrStickyLayer(RenderLayer* layer)
{
if (layer->renderer()->isStickyPositioned())
« no previous file with comments | « Source/core/rendering/RenderLayerCompositor.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698