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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 | 43 |
44 RefPtr<SVGFilter> filter; | 44 RefPtr<SVGFilter> filter; |
45 RefPtr<SVGFilterBuilder> builder; | 45 RefPtr<SVGFilterBuilder> builder; |
46 FloatRect boundaries; | 46 FloatRect boundaries; |
47 FloatRect drawingRegion; | 47 FloatRect drawingRegion; |
48 FilterDataState state; | 48 FilterDataState state; |
49 }; | 49 }; |
50 | 50 |
51 class GraphicsContext; | 51 class GraphicsContext; |
52 | 52 |
53 class RenderSVGResourceFilter FINAL : public RenderSVGResourceContainer { | 53 class RenderSVGResourceFilter final : public RenderSVGResourceContainer { |
54 public: | 54 public: |
55 explicit RenderSVGResourceFilter(SVGFilterElement*); | 55 explicit RenderSVGResourceFilter(SVGFilterElement*); |
56 virtual ~RenderSVGResourceFilter(); | 56 virtual ~RenderSVGResourceFilter(); |
57 virtual void destroy() OVERRIDE; | 57 virtual void destroy() override; |
58 | 58 |
59 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; | 59 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const override; |
60 | 60 |
61 virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceF
ilter"; } | 61 virtual const char* renderName() const override { return "RenderSVGResourceF
ilter"; } |
62 virtual bool isSVGResourceFilter() const OVERRIDE { return true; } | 62 virtual bool isSVGResourceFilter() const override { return true; } |
63 | 63 |
64 virtual void removeAllClientsFromCache(bool markForInvalidation = true) OVER
RIDE; | 64 virtual void removeAllClientsFromCache(bool markForInvalidation = true) over
ride; |
65 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true) OVERRIDE; | 65 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true) override; |
66 | 66 |
67 bool prepareEffect(RenderObject*, RenderStyle*, GraphicsContext*&); | 67 bool prepareEffect(RenderObject*, RenderStyle*, GraphicsContext*&); |
68 void finishEffect(RenderObject*, GraphicsContext*&); | 68 void finishEffect(RenderObject*, GraphicsContext*&); |
69 | 69 |
70 FloatRect resourceBoundingBox(const RenderObject*); | 70 FloatRect resourceBoundingBox(const RenderObject*); |
71 | 71 |
72 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); | 72 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); |
73 | 73 |
74 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el
ement())->filterUnits()->currentValue()->enumValue(); } | 74 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el
ement())->filterUnits()->currentValue()->enumValue(); } |
75 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement
(element())->primitiveUnits()->currentValue()->enumValue(); } | 75 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement
(element())->primitiveUnits()->currentValue()->enumValue(); } |
76 | 76 |
77 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); | 77 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); |
78 | 78 |
79 virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resou
rceType; } | 79 virtual RenderSVGResourceType resourceType() const override { return s_resou
rceType; } |
80 static const RenderSVGResourceType s_resourceType; | 80 static const RenderSVGResourceType s_resourceType; |
81 | 81 |
82 FloatRect drawingRegion(RenderObject*) const; | 82 FloatRect drawingRegion(RenderObject*) const; |
83 private: | 83 private: |
84 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; | 84 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; |
85 FilterMap m_filter; | 85 FilterMap m_filter; |
86 }; | 86 }; |
87 | 87 |
88 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); | 88 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); |
89 | 89 |
90 } | 90 } |
91 | 91 |
92 #endif | 92 #endif |
OLD | NEW |