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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1697543002: Check IsFixed specifically instead of presence of other flags. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove potentially wrong IsFixed argument Created 4 years, 10 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 | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 895daeef48f0d1fa51a5d3e6030c529f6ee116a5..cbc6dc85900aa4745fcd13357bba953d1cc72ee3 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -1323,7 +1323,7 @@ static inline const PaintLayer* accumulateOffsetTowardsAncestor(const PaintLayer
if (position == FixedPosition && (!ancestorLayer || ancestorLayer == layoutObject->view()->layer())) {
// If the fixed layer's container is the root, just add in the offset of the view. We can obtain this by calling
// localToAbsolute() on the LayoutView.
- FloatPoint absPos = layoutObject->localToAbsolute(FloatPoint(), IsFixed);
+ FloatPoint absPos = layoutObject->localToAbsolute();
location += LayoutSize(absPos.x(), absPos.y());
return ancestorLayer;
}
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGRoot.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698