OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 2 * Copyright (C) Research In Motion Limited 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 18 matching lines...) Expand all Loading... |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 class LayoutObject; | 31 class LayoutObject; |
32 class LayoutSVGResourceClipper; | 32 class LayoutSVGResourceClipper; |
33 class LayoutSVGResourceContainer; | 33 class LayoutSVGResourceContainer; |
34 class LayoutSVGResourceFilter; | 34 class LayoutSVGResourceFilter; |
35 class LayoutSVGResourceMarker; | 35 class LayoutSVGResourceMarker; |
36 class LayoutSVGResourceMasker; | 36 class LayoutSVGResourceMasker; |
37 class LayoutSVGResourcePaintServer; | 37 class LayoutSVGResourcePaintServer; |
38 class SVGElement; | 38 class SVGElement; |
39 class SVGLayoutStyle; | 39 class SVGComputedStyle; |
40 | 40 |
41 // Holds a set of resources associated with a LayoutObject | 41 // Holds a set of resources associated with a LayoutObject |
42 class SVGResources { | 42 class SVGResources { |
43 WTF_MAKE_NONCOPYABLE(SVGResources); WTF_MAKE_FAST_ALLOCATED(SVGResources); | 43 WTF_MAKE_NONCOPYABLE(SVGResources); WTF_MAKE_FAST_ALLOCATED(SVGResources); |
44 public: | 44 public: |
45 SVGResources(); | 45 SVGResources(); |
46 | 46 |
47 static PassOwnPtr<SVGResources> buildResources(const LayoutObject*, const SV
GLayoutStyle&); | 47 static PassOwnPtr<SVGResources> buildResources(const LayoutObject*, const SV
GComputedStyle&); |
48 void layoutIfNeeded(); | 48 void layoutIfNeeded(); |
49 | 49 |
50 static bool supportsMarkers(const SVGElement&); | 50 static bool supportsMarkers(const SVGElement&); |
51 | 51 |
52 // Ordinary resources | 52 // Ordinary resources |
53 LayoutSVGResourceClipper* clipper() const { return m_clipperFilterMaskerData
? m_clipperFilterMaskerData->clipper : 0; } | 53 LayoutSVGResourceClipper* clipper() const { return m_clipperFilterMaskerData
? m_clipperFilterMaskerData->clipper : 0; } |
54 LayoutSVGResourceMarker* markerStart() const { return m_markerData ? m_marke
rData->markerStart : 0; } | 54 LayoutSVGResourceMarker* markerStart() const { return m_markerData ? m_marke
rData->markerStart : 0; } |
55 LayoutSVGResourceMarker* markerMid() const { return m_markerData ? m_markerD
ata->markerMid : 0; } | 55 LayoutSVGResourceMarker* markerMid() const { return m_markerData ? m_markerD
ata->markerMid : 0; } |
56 LayoutSVGResourceMarker* markerEnd() const { return m_markerData ? m_markerD
ata->markerEnd : 0; } | 56 LayoutSVGResourceMarker* markerEnd() const { return m_markerData ? m_markerD
ata->markerEnd : 0; } |
57 LayoutSVGResourceMasker* masker() const { return m_clipperFilterMaskerData ?
m_clipperFilterMaskerData->masker : 0; } | 57 LayoutSVGResourceMasker* masker() const { return m_clipperFilterMaskerData ?
m_clipperFilterMaskerData->masker : 0; } |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 | 177 |
178 OwnPtr<ClipperFilterMaskerData> m_clipperFilterMaskerData; | 178 OwnPtr<ClipperFilterMaskerData> m_clipperFilterMaskerData; |
179 OwnPtr<MarkerData> m_markerData; | 179 OwnPtr<MarkerData> m_markerData; |
180 OwnPtr<FillStrokeData> m_fillStrokeData; | 180 OwnPtr<FillStrokeData> m_fillStrokeData; |
181 LayoutSVGResourceContainer* m_linkedResource; | 181 LayoutSVGResourceContainer* m_linkedResource; |
182 }; | 182 }; |
183 | 183 |
184 } | 184 } |
185 | 185 |
186 #endif | 186 #endif |
OLD | NEW |