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

Side by Side Diff: Source/WebCore/rendering/svg/RenderSVGResourceFilter.h

Issue 6907011: Merge 85406 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 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
OLDNEW
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 25 matching lines...) Expand all
36 #include <wtf/OwnPtr.h> 36 #include <wtf/OwnPtr.h>
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 FilterData() 43 FilterData()
44 : savedContext(0) 44 : savedContext(0)
45 , builded(false) 45 , builded(false)
46 , markedForRemoval(false)
46 { 47 {
47 } 48 }
48 49
49 RefPtr<SVGFilter> filter; 50 RefPtr<SVGFilter> filter;
50 RefPtr<SVGFilterBuilder> builder; 51 RefPtr<SVGFilterBuilder> builder;
51 OwnPtr<ImageBuffer> sourceGraphicBuffer; 52 OwnPtr<ImageBuffer> sourceGraphicBuffer;
52 GraphicsContext* savedContext; 53 GraphicsContext* savedContext;
53 AffineTransform shearFreeAbsoluteTransform; 54 AffineTransform shearFreeAbsoluteTransform;
54 FloatRect boundaries; 55 FloatRect boundaries;
55 FloatSize scale; 56 FloatSize scale;
56 bool builded; 57 bool builded : 1;
58 bool markedForRemoval : 1;
57 }; 59 };
58 60
59 class GraphicsContext; 61 class GraphicsContext;
60 62
61 class RenderSVGResourceFilter : public RenderSVGResourceContainer { 63 class RenderSVGResourceFilter : public RenderSVGResourceContainer {
62 public: 64 public:
63 RenderSVGResourceFilter(SVGFilterElement*); 65 RenderSVGResourceFilter(SVGFilterElement*);
64 virtual ~RenderSVGResourceFilter(); 66 virtual ~RenderSVGResourceFilter();
65 67
66 virtual const char* renderName() const { return "RenderSVGResourceFilter"; } 68 virtual const char* renderName() const { return "RenderSVGResourceFilter"; }
(...skipping 20 matching lines...) Expand all
87 private: 89 private:
88 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); 90 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&);
89 91
90 HashMap<RenderObject*, FilterData*> m_filter; 92 HashMap<RenderObject*, FilterData*> m_filter;
91 }; 93 };
92 94
93 } 95 }
94 96
95 #endif 97 #endif
96 #endif 98 #endif
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/filter-on-svgimage-expected.txt ('k') | Source/WebCore/rendering/svg/RenderSVGResourceFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698