OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> | 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> |
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 26 matching lines...) Expand all Loading... |
37 #include <wtf/PassOwnPtr.h> | 37 #include <wtf/PassOwnPtr.h> |
38 #include <wtf/RefPtr.h> | 38 #include <wtf/RefPtr.h> |
39 | 39 |
40 namespace WebCore { | 40 namespace WebCore { |
41 | 41 |
42 struct FilterData { | 42 struct FilterData { |
43 WTF_MAKE_FAST_ALLOCATED; | 43 WTF_MAKE_FAST_ALLOCATED; |
44 public: | 44 public: |
45 FilterData() | 45 FilterData() |
46 : savedContext(0) | 46 : savedContext(0) |
47 , builded(false) | 47 , isBuilt(false) |
| 48 , isApplying(false) |
48 , markedForRemoval(false) | 49 , markedForRemoval(false) |
49 { | 50 { |
50 } | 51 } |
51 | 52 |
52 RefPtr<SVGFilter> filter; | 53 RefPtr<SVGFilter> filter; |
53 RefPtr<SVGFilterBuilder> builder; | 54 RefPtr<SVGFilterBuilder> builder; |
54 OwnPtr<ImageBuffer> sourceGraphicBuffer; | 55 OwnPtr<ImageBuffer> sourceGraphicBuffer; |
55 GraphicsContext* savedContext; | 56 GraphicsContext* savedContext; |
56 AffineTransform shearFreeAbsoluteTransform; | 57 AffineTransform shearFreeAbsoluteTransform; |
57 FloatRect boundaries; | 58 FloatRect boundaries; |
58 FloatSize scale; | 59 FloatSize scale; |
59 bool builded : 1; | 60 bool isBuilt : 1; |
| 61 bool isApplying : 1; |
60 bool markedForRemoval : 1; | 62 bool markedForRemoval : 1; |
61 }; | 63 }; |
62 | 64 |
63 class GraphicsContext; | 65 class GraphicsContext; |
64 | 66 |
65 class RenderSVGResourceFilter : public RenderSVGResourceContainer { | 67 class RenderSVGResourceFilter : public RenderSVGResourceContainer { |
66 public: | 68 public: |
67 RenderSVGResourceFilter(SVGFilterElement*); | 69 RenderSVGResourceFilter(SVGFilterElement*); |
68 virtual ~RenderSVGResourceFilter(); | 70 virtual ~RenderSVGResourceFilter(); |
69 | 71 |
(...skipping 21 matching lines...) Expand all Loading... |
91 private: | 93 private: |
92 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); | 94 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); |
93 | 95 |
94 HashMap<RenderObject*, FilterData*> m_filter; | 96 HashMap<RenderObject*, FilterData*> m_filter; |
95 }; | 97 }; |
96 | 98 |
97 } | 99 } |
98 | 100 |
99 #endif | 101 #endif |
100 #endif | 102 #endif |
OLD | NEW |