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

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

Issue 2510513002: Issue paint offset for SVGText, etc. (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/ObjectPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
index f56415b0083fa1e5dcddc4866f4ee3d0e1a31b9d..f48b49d5b7e3bbee65d74396a344a6237ecbbfc4 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/ObjectPainter.cpp
@@ -707,7 +707,11 @@ void ObjectPainter::doCheckPaintOffset(const PaintInfo& paintInfo,
LayoutPoint adjustedPaintOffset = paintOffset;
if (m_layoutObject.isBox())
adjustedPaintOffset += toLayoutBox(m_layoutObject).location();
- DCHECK(m_layoutObject.previousPaintOffset() == adjustedPaintOffset);
+ DCHECK(m_layoutObject.previousPaintOffset() == adjustedPaintOffset)
+ << " Paint offset mismatch: " << m_layoutObject.debugName()
+ << " from PaintPropertyTreeBulder: "
pdr. 2016/11/16 03:53:49 Nit: Builder
Xianzhu 2016/11/16 04:05:47 Done.
+ << m_layoutObject.previousPaintOffset().toString()
+ << " from painter: " << adjustedPaintOffset.toString();
}
#endif

Powered by Google App Engine
This is Rietveld 408576698