Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(78)

Side by Side Diff: Source/core/rendering/svg/SVGResources.h

Issue 23785014: [SVG] Resources should be laid out in dependecy order. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: text-layout-crash.html needs image result update. Created 7 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGRenderSupport.cpp ('k') | Source/core/rendering/svg/SVGResources.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698