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

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

Issue 2489893002: [SPv2] Track paint offset change (Closed)
Patch Set: Fix test failures 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.h
diff --git a/third_party/WebKit/Source/core/paint/ObjectPainter.h b/third_party/WebKit/Source/core/paint/ObjectPainter.h
index e73923dfdcf41c19f73defa97d725764cd928469..17d0bd8878651feec24edfe9268c221f53a6e73c 100644
--- a/third_party/WebKit/Source/core/paint/ObjectPainter.h
+++ b/third_party/WebKit/Source/core/paint/ObjectPainter.h
@@ -60,6 +60,13 @@ class ObjectPainter {
void paintAllPhasesAtomically(const PaintInfo&,
const LayoutPoint& paintOffset);
+ void checkPaintOffset(const PaintInfo& paintInfo,
pdr. 2016/11/10 07:35:32 Add a comment here: // SPV2 computes paint offsets
Xianzhu 2016/11/10 17:41:10 Done.
pdr. 2016/11/10 18:54:11 SGTM. Followups are always great.
+ const LayoutPoint& paintOffset) {
+#if DCHECK_IS_ON()
+ doCheckPaintOffset(paintInfo, paintOffset);
+#endif
+ }
+
private:
static void drawDashedOrDottedBoxSide(GraphicsContext&,
int x1,
@@ -105,6 +112,10 @@ class ObjectPainter {
int adjacentWidth2,
bool antialias);
+#if DCHECK_IS_ON()
+ void doCheckPaintOffset(const PaintInfo&, const LayoutPoint& paintOffset);
+#endif
+
const LayoutObject& m_layoutObject;
};

Powered by Google App Engine
This is Rietveld 408576698