| Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.h
|
| diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.h
|
| index 3c6bb3fe4b413a1c223f65be627e98a8e28608c9..63fe310a93dcbe641572dbdfb18e76fc79887998 100644
|
| --- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.h
|
| +++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourceMarker.h
|
| @@ -54,7 +54,9 @@ class LayoutSVGResourceMarker final : public LayoutSVGResourceContainer {
|
| SVGMarkerUnitsType markerUnits() const;
|
| SVGMarkerOrientType orientType() const;
|
|
|
| - const FloatRect& viewport() const { return m_viewport; }
|
| + // The viewport origin is (0,0) and not the reference point because each
|
| + // marker instance includes the reference in markerTransformation().
|
| + FloatRect viewport() const { return FloatRect(FloatPoint(), m_viewportSize); }
|
|
|
| static const LayoutSVGResourceType s_resourceType = MarkerResourceType;
|
| LayoutSVGResourceType resourceType() const override { return s_resourceType; }
|
| @@ -66,7 +68,7 @@ class LayoutSVGResourceMarker final : public LayoutSVGResourceContainer {
|
|
|
| AffineTransform viewportTransform() const;
|
|
|
| - FloatRect m_viewport;
|
| + FloatSize m_viewportSize;
|
| };
|
|
|
| DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMarker,
|
|
|