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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "wtf/HashSet.h" | 28 #include "wtf/HashSet.h" |
29 | 29 |
30 namespace WebCore { | 30 namespace WebCore { |
31 | 31 |
32 class AffineTransform; | 32 class AffineTransform; |
33 class RenderObject; | 33 class RenderObject; |
34 | 34 |
35 class RenderSVGResourceMarker FINAL : public RenderSVGResourceContainer { | 35 class RenderSVGResourceMarker FINAL : public RenderSVGResourceContainer { |
36 public: | 36 public: |
37 RenderSVGResourceMarker(SVGMarkerElement*); | 37 explicit RenderSVGResourceMarker(SVGMarkerElement*); |
38 virtual ~RenderSVGResourceMarker(); | 38 virtual ~RenderSVGResourceMarker(); |
39 | 39 |
40 virtual const char* renderName() const { return "RenderSVGResourceMarker"; } | 40 virtual const char* renderName() const { return "RenderSVGResourceMarker"; } |
41 | 41 |
42 virtual void removeAllClientsFromCache(bool markForInvalidation = true); | 42 virtual void removeAllClientsFromCache(bool markForInvalidation = true); |
43 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); | 43 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); |
44 | 44 |
45 void draw(PaintInfo&, const AffineTransform&); | 45 void draw(PaintInfo&, const AffineTransform&); |
46 | 46 |
47 // Calculates marker boundaries, mapped to the target element's coordinate s
pace | 47 // Calculates marker boundaries, mapped to the target element's coordinate s
pace |
(...skipping 29 matching lines...) Expand all Loading... |
77 | 77 |
78 inline RenderSVGResourceMarker* toRenderSVGResourceMarker(RenderSVGResource* res
ource) | 78 inline RenderSVGResourceMarker* toRenderSVGResourceMarker(RenderSVGResource* res
ource) |
79 { | 79 { |
80 ASSERT_WITH_SECURITY_IMPLICATION(!resource || resource->resourceType() == Ma
rkerResourceType); | 80 ASSERT_WITH_SECURITY_IMPLICATION(!resource || resource->resourceType() == Ma
rkerResourceType); |
81 return static_cast<RenderSVGResourceMarker*>(resource); | 81 return static_cast<RenderSVGResourceMarker*>(resource); |
82 } | 82 } |
83 | 83 |
84 } | 84 } |
85 | 85 |
86 #endif | 86 #endif |
OLD | NEW |