OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 21 matching lines...) Expand all Loading... |
32 public: | 32 public: |
33 explicit LayoutSVGResourceMarker(SVGMarkerElement*); | 33 explicit LayoutSVGResourceMarker(SVGMarkerElement*); |
34 ~LayoutSVGResourceMarker() override; | 34 ~LayoutSVGResourceMarker() override; |
35 | 35 |
36 const char* name() const override { return "LayoutSVGResourceMarker"; } | 36 const char* name() const override { return "LayoutSVGResourceMarker"; } |
37 | 37 |
38 void removeAllClientsFromCache(bool markForInvalidation = true) override; | 38 void removeAllClientsFromCache(bool markForInvalidation = true) override; |
39 void removeClientFromCache(LayoutObject*, | 39 void removeClientFromCache(LayoutObject*, |
40 bool markForInvalidation = true) override; | 40 bool markForInvalidation = true) override; |
41 | 41 |
42 // Calculates marker boundaries, mapped to the target element's coordinate spa
ce | 42 // Calculates marker boundaries, mapped to the target element's coordinate |
| 43 // space. |
43 FloatRect markerBoundaries(const AffineTransform& markerTransformation) const; | 44 FloatRect markerBoundaries(const AffineTransform& markerTransformation) const; |
44 | 45 |
45 const AffineTransform& localToSVGParentTransform() const override; | 46 const AffineTransform& localToSVGParentTransform() const override; |
46 AffineTransform markerTransformation(const FloatPoint& origin, | 47 AffineTransform markerTransformation(const FloatPoint& origin, |
47 float angle, | 48 float angle, |
48 float strokeWidth) const; | 49 float strokeWidth) const; |
49 bool shouldPaint() const; | 50 bool shouldPaint() const; |
50 | 51 |
51 FloatPoint referencePoint() const; | 52 FloatPoint referencePoint() const; |
52 float angle() const; | 53 float angle() const; |
(...skipping 15 matching lines...) Expand all Loading... |
68 mutable AffineTransform m_localToParentTransform; | 69 mutable AffineTransform m_localToParentTransform; |
69 FloatRect m_viewport; | 70 FloatRect m_viewport; |
70 }; | 71 }; |
71 | 72 |
72 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMarker, | 73 DEFINE_LAYOUT_SVG_RESOURCE_TYPE_CASTS(LayoutSVGResourceMarker, |
73 MarkerResourceType); | 74 MarkerResourceType); |
74 | 75 |
75 } // namespace blink | 76 } // namespace blink |
76 | 77 |
77 #endif | 78 #endif |
OLD | NEW |