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

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

Issue 342203004: Get rid of compositing and squashing helper methods on RenderLayerModelObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed compile. Created 6 years, 6 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
Index: Source/core/rendering/RenderLayerRepainter.cpp
diff --git a/Source/core/rendering/RenderLayerRepainter.cpp b/Source/core/rendering/RenderLayerRepainter.cpp
index e4289ae28c18db85b67abe5cb241c79bd29da17e..a1fa5652aec8f32003aa5485bb3c24d1541fc0b5 100644
--- a/Source/core/rendering/RenderLayerRepainter.cpp
+++ b/Source/core/rendering/RenderLayerRepainter.cpp
@@ -125,12 +125,12 @@ void RenderLayerRepainter::setBackingNeedsRepaintInRect(const LayoutRect& r)
return;
}
IntRect repaintRect = pixelSnappedIntRect(r);
- // FIXME: generalize accessors to backing GraphicsLayers so that this code is squashing-agnostic.
- if (m_renderer.groupedMapping()) {
- if (GraphicsLayer* squashingLayer = m_renderer.groupedMapping()->squashingLayer())
+ // FIXME: generalize accessors to backing GraphicsLayers so that this code is squasphing-agnostic.
+ if (m_renderer.layer()->groupedMapping()) {
+ if (GraphicsLayer* squashingLayer = m_renderer.layer()->groupedMapping()->squashingLayer())
squashingLayer->setNeedsDisplayInRect(repaintRect);
} else {
- m_renderer.compositedLayerMapping()->setContentsNeedDisplayInRect(repaintRect);
+ m_renderer.layer()->compositedLayerMapping()->setContentsNeedDisplayInRect(repaintRect);
}
}
« no previous file with comments | « Source/core/rendering/RenderLayerModelObject.cpp ('k') | Source/core/rendering/RenderLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698