| 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 25 matching lines...) Expand all Loading... |
| 36 class RenderSVGResourceMasker; | 36 class RenderSVGResourceMasker; |
| 37 class SVGRenderStyle; | 37 class SVGRenderStyle; |
| 38 | 38 |
| 39 // Holds a set of resources associated with a RenderObject | 39 // Holds a set of resources associated with a RenderObject |
| 40 class SVGResources { | 40 class SVGResources { |
| 41 WTF_MAKE_NONCOPYABLE(SVGResources); WTF_MAKE_FAST_ALLOCATED; | 41 WTF_MAKE_NONCOPYABLE(SVGResources); WTF_MAKE_FAST_ALLOCATED; |
| 42 public: | 42 public: |
| 43 SVGResources(); | 43 SVGResources(); |
| 44 | 44 |
| 45 bool buildResources(const RenderObject*, const SVGRenderStyle*); | 45 bool buildResources(const RenderObject*, const SVGRenderStyle*); |
| 46 void layoutIfNeeded(); |
| 46 | 47 |
| 47 // Ordinary resources | 48 // Ordinary resources |
| 48 RenderSVGResourceClipper* clipper() const { return m_clipperFilterMaskerData
? m_clipperFilterMaskerData->clipper : 0; } | 49 RenderSVGResourceClipper* clipper() const { return m_clipperFilterMaskerData
? m_clipperFilterMaskerData->clipper : 0; } |
| 49 RenderSVGResourceMarker* markerStart() const { return m_markerData ? m_marke
rData->markerStart : 0; } | 50 RenderSVGResourceMarker* markerStart() const { return m_markerData ? m_marke
rData->markerStart : 0; } |
| 50 RenderSVGResourceMarker* markerMid() const { return m_markerData ? m_markerD
ata->markerMid : 0; } | 51 RenderSVGResourceMarker* markerMid() const { return m_markerData ? m_markerD
ata->markerMid : 0; } |
| 51 RenderSVGResourceMarker* markerEnd() const { return m_markerData ? m_markerD
ata->markerEnd : 0; } | 52 RenderSVGResourceMarker* markerEnd() const { return m_markerData ? m_markerD
ata->markerEnd : 0; } |
| 52 RenderSVGResourceMasker* masker() const { return m_clipperFilterMaskerData ?
m_clipperFilterMaskerData->masker : 0; } | 53 RenderSVGResourceMasker* masker() const { return m_clipperFilterMaskerData ?
m_clipperFilterMaskerData->masker : 0; } |
| 53 | 54 |
| 54 RenderSVGResourceFilter* filter() const | 55 RenderSVGResourceFilter* filter() const |
| 55 { | 56 { |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 | 172 |
| 172 OwnPtr<ClipperFilterMaskerData> m_clipperFilterMaskerData; | 173 OwnPtr<ClipperFilterMaskerData> m_clipperFilterMaskerData; |
| 173 OwnPtr<MarkerData> m_markerData; | 174 OwnPtr<MarkerData> m_markerData; |
| 174 OwnPtr<FillStrokeData> m_fillStrokeData; | 175 OwnPtr<FillStrokeData> m_fillStrokeData; |
| 175 RenderSVGResourceContainer* m_linkedResource; | 176 RenderSVGResourceContainer* m_linkedResource; |
| 176 }; | 177 }; |
| 177 | 178 |
| 178 } | 179 } |
| 179 | 180 |
| 180 #endif | 181 #endif |
| OLD | NEW |