Chromium Code Reviews| Index: third_party/WebKit/Source/core/paint/SVGRootPainter.h |
| diff --git a/third_party/WebKit/Source/core/paint/SVGRootPainter.h b/third_party/WebKit/Source/core/paint/SVGRootPainter.h |
| index 0c8f74f61c2b7de418dfd785c07ca2d0876b5683..afa56f246b006c98fcd1a5f5bc5054bf33bc9761 100644 |
| --- a/third_party/WebKit/Source/core/paint/SVGRootPainter.h |
| +++ b/third_party/WebKit/Source/core/paint/SVGRootPainter.h |
| @@ -10,6 +10,8 @@ |
| namespace blink { |
| struct PaintInfo; |
| +class AffineTransform; |
| +class IntRect; |
| class LayoutPoint; |
| class LayoutSVGRoot; |
| @@ -20,7 +22,12 @@ public: |
| void paint(const PaintInfo&, const LayoutPoint&); |
| + // Convert from container offsets (html/LayoutUnits) to our snapped local SVG transform space. |
|
chrishtr
2016/07/06 17:50:58
pixelSnapped?
pdr.
2016/07/06 18:33:44
I wonder if we can start moving away from "pixel s
trchen
2016/07/06 19:00:21
Now I think of it, it is not really "snapped paint
pdr.
2016/07/06 20:23:27
I updated the name to be "transformToPixelSnappedB
|
| + AffineTransform snappedPaintOffsetToBorderBox(const LayoutPoint& paintOffset) const; |
| + |
| private: |
| + IntRect pixelSnappedSize(const LayoutPoint& paintOffset) const; |
| + |
| const LayoutSVGRoot& m_layoutSVGRoot; |
| }; |