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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; | 64 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; |
65 | 65 |
66 virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceF
ilter"; } | 66 virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceF
ilter"; } |
67 virtual bool isSVGResourceFilter() const OVERRIDE { return true; } | 67 virtual bool isSVGResourceFilter() const OVERRIDE { return true; } |
68 | 68 |
69 virtual void removeAllClientsFromCache(bool markForInvalidation = true) OVER
RIDE; | 69 virtual void removeAllClientsFromCache(bool markForInvalidation = true) OVER
RIDE; |
70 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true) OVERRIDE; | 70 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true) OVERRIDE; |
71 | 71 |
72 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode) OVERRIDE; | 72 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode) OVERRIDE; |
73 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh
ort resourceMode, const Path*, const RenderSVGShape*) OVERRIDE; | 73 virtual void postApplyResource(RenderObject*, GraphicsContext*&) OVERRIDE; |
74 | 74 |
75 FloatRect resourceBoundingBox(const RenderObject*); | 75 FloatRect resourceBoundingBox(const RenderObject*); |
76 | 76 |
77 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); | 77 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); |
78 | 78 |
79 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el
ement())->filterUnits()->currentValue()->enumValue(); } | 79 SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(el
ement())->filterUnits()->currentValue()->enumValue(); } |
80 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement
(element())->primitiveUnits()->currentValue()->enumValue(); } | 80 SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement
(element())->primitiveUnits()->currentValue()->enumValue(); } |
81 | 81 |
82 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); | 82 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); |
83 | 83 |
84 virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resou
rceType; } | 84 virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resou
rceType; } |
85 static const RenderSVGResourceType s_resourceType; | 85 static const RenderSVGResourceType s_resourceType; |
86 | 86 |
87 FloatRect drawingRegion(RenderObject*) const; | 87 FloatRect drawingRegion(RenderObject*) const; |
88 private: | 88 private: |
89 void adjustScaleForMaximumImageSize(const FloatSize&, FloatSize&); | 89 void adjustScaleForMaximumImageSize(const FloatSize&, FloatSize&); |
90 | 90 |
91 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; | 91 typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; |
92 FilterMap m_filter; | 92 FilterMap m_filter; |
93 }; | 93 }; |
94 | 94 |
95 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); | 95 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGResourceFilter, isSVGResourceFilter()); |
96 | 96 |
97 } | 97 } |
98 | 98 |
99 #endif | 99 #endif |
OLD | NEW |