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

Unified Diff: Source/core/rendering/compositing/CompositedLayerMapping.cpp

Issue 250193002: Offset rects by origin when projecting from composited to graphics layer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Update test expectations Created 6 years, 8 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/compositing/CompositedLayerMapping.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/compositing/CompositedLayerMapping.cpp
diff --git a/Source/core/rendering/compositing/CompositedLayerMapping.cpp b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
index 3a7688193a3dd83c17a926e590fcde4c376ed3c6..1fa687b392281bc6564696b1ad8dbcb67f189593 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -742,7 +742,7 @@ void CompositedLayerMapping::updateGraphicsLayerGeometry(GraphicsLayerUpdater::U
} else if (m_childTransformLayer) {
const IntRect borderBox = toRenderBox(m_owningLayer.renderer())->pixelSnappedBorderBoxRect();
m_childTransformLayer->setSize(borderBox.size());
- m_childTransformLayer->setPosition(FloatPoint(contentOffsetInCompostingLayer()));
+ m_childTransformLayer->setPosition(FloatPoint(contentOffsetInCompositingLayer()));
}
if (m_maskLayer) {
@@ -1697,7 +1697,7 @@ FloatPoint3D CompositedLayerMapping::computeTransformOrigin(const IntRect& borde
}
// Return the offset from the top-left of this compositing layer at which the renderer's contents are painted.
-LayoutSize CompositedLayerMapping::contentOffsetInCompostingLayer() const
+LayoutSize CompositedLayerMapping::contentOffsetInCompositingLayer() const
{
return LayoutSize(-m_compositedBounds.x(), -m_compositedBounds.y());
}
@@ -1705,7 +1705,7 @@ LayoutSize CompositedLayerMapping::contentOffsetInCompostingLayer() const
LayoutRect CompositedLayerMapping::contentsBox() const
{
LayoutRect contentsBox = contentsRect(renderer());
- contentsBox.move(contentOffsetInCompostingLayer());
+ contentsBox.move(contentOffsetInCompositingLayer());
return contentsBox;
}
« no previous file with comments | « Source/core/rendering/compositing/CompositedLayerMapping.h ('k') | Source/core/testing/Internals.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698