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

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

Issue 2487273002: [No submit][SPInvalidation] Track paint offset change (Closed)
Patch Set: Created 4 years, 1 month 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: third_party/WebKit/Source/core/paint/PartPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/PartPainter.cpp b/third_party/WebKit/Source/core/paint/PartPainter.cpp
index 29172c37d49942caa19345d208c9751971b5b999..d7ffe270cefc663f39deeb64f95efbc9f0acdbc2 100644
--- a/third_party/WebKit/Source/core/paint/PartPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/PartPainter.cpp
@@ -44,7 +44,9 @@ bool PartPainter::isSelected() const {
void PartPainter::paint(const PaintInfo& paintInfo,
const LayoutPoint& paintOffset) {
+ ObjectPainter(m_layoutPart).checkPaintOffset(paintInfo, paintOffset);
LayoutPoint adjustedPaintOffset = paintOffset + m_layoutPart.location();
+
if (!ReplacedPainter(m_layoutPart)
.shouldPaint(paintInfo, adjustedPaintOffset))
return;

Powered by Google App Engine
This is Rietveld 408576698