Chromium Code Reviews| 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; |
| }; |