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

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

Issue 16057002: Fixed position elements should layout relative to transformed container (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 6fd7c24921906d5ed4687b8b90ae673073959d90..56f8cdbc63155fe4f964387ff0f29494fd0badaa 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -1967,8 +1967,9 @@ static inline const RenderLayer* accumulateOffsetTowardsAncestor(const RenderLay
ancestorLayer->convertToLayerCoords(fixedPositionContainerLayer, ancestorCoords);
location += (fixedContainerCoords - ancestorCoords);
- return ancestorLayer;
- }
+ } else
+ location += toSize(layer->location());
+ return ancestorLayer;
}
RenderLayer* parentLayer;

Powered by Google App Engine
This is Rietveld 408576698