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

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

Issue 408483005: Fix double-offset issue of RenderObject::positionFromPaintInvalidationContainer() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix break Created 6 years, 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderObject.cpp
diff --git a/Source/core/rendering/RenderObject.cpp b/Source/core/rendering/RenderObject.cpp
index 9e72e470370fa9960797db03a40b95aec44e7459..43d6bd391a1776d363540b3529ca2df553255b20 100644
--- a/Source/core/rendering/RenderObject.cpp
+++ b/Source/core/rendering/RenderObject.cpp
@@ -1324,11 +1324,10 @@ LayoutPoint RenderObject::positionFromPaintInvalidationContainer(const RenderLay
// FIXME: This assert should be re-enabled when we move paint invalidation to after compositing update. crbug.com/360286
// ASSERT(containerForPaintInvalidation() == paintInvalidationContainer);
- LayoutPoint offset = isBox() ? toRenderBox(this)->location() : LayoutPoint();
if (paintInvalidationContainer == this)
- return offset;
+ return LayoutPoint();
- return roundedIntPoint(localToContainerPoint(offset, paintInvalidationContainer, 0, 0, paintInvalidationState));
+ return LayoutPoint(localToContainerPoint(LayoutPoint(), paintInvalidationContainer, 0, 0, paintInvalidationState));
}
IntRect RenderObject::absoluteBoundingBoxRect() const
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698