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

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

Issue 799403006: [New Multicolumn] Make computeOffsetFromCompositedAncestor() flowthread-aware. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Simplify test. Created 6 years 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/RenderLayer.cpp ('k') | no next file » | 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 143314471c68cc4a5bb08db571fa9608b2f04084..b9c5b7d7bc79d13d63bbd5e2c191e773d1acf9c8 100644
--- a/Source/core/rendering/compositing/CompositedLayerMapping.cpp
+++ b/Source/core/rendering/compositing/CompositedLayerMapping.cpp
@@ -541,8 +541,7 @@ static IntRect clipBox(RenderBox* renderer)
static LayoutPoint computeOffsetFromCompositedAncestor(const RenderLayer* layer, const RenderLayer* compositedAncestor)
{
- LayoutPoint offset;
- layer->convertToLayerCoords(compositedAncestor, offset);
+ LayoutPoint offset = layer->visualOffsetFromAncestor(compositedAncestor);
if (compositedAncestor)
offset.move(compositedAncestor->compositedLayerMapping()->owningLayer().subpixelAccumulation());
return offset;
« no previous file with comments | « Source/core/rendering/RenderLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698