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

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

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/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,
+ 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