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

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: update image expectation too Created 7 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
« no previous file with comments | « LayoutTests/fast/block/positioning/fixed-position-transformed-container-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderLayer.cpp
diff --git a/Source/core/rendering/RenderLayer.cpp b/Source/core/rendering/RenderLayer.cpp
index 36d71e129a33e5656080356000b409fdd9df72f6..c56125a15a178687d2ac0e647d4773554b8e1124 100644
--- a/Source/core/rendering/RenderLayer.cpp
+++ b/Source/core/rendering/RenderLayer.cpp
@@ -1882,8 +1882,10 @@ 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;
« no previous file with comments | « LayoutTests/fast/block/positioning/fixed-position-transformed-container-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698