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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void removeAllClientsFromCache(bool markForInvalidation = true); | 66 virtual void removeAllClientsFromCache(bool markForInvalidation = true); |
67 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); | 67 virtual void removeClientFromCache(RenderObject*, bool markForInvalidation =
true); |
68 | 68 |
69 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode); | 69 virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, u
nsigned short resourceMode); |
70 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh
ort resourceMode, const Path*, const RenderSVGShape*); | 70 virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned sh
ort resourceMode, const Path*, const RenderSVGShape*); |
71 | 71 |
72 virtual FloatRect resourceBoundingBox(RenderObject*); | 72 virtual FloatRect resourceBoundingBox(RenderObject*); |
73 | 73 |
74 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); | 74 PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); |
75 | 75 |
76 SVGUnitTypes::SVGUnitType filterUnits() const { return static_cast<SVGFilter
Element*>(node())->filterUnits(); } | 76 SVGUnitTypes::SVGUnitType filterUnits() const { return static_cast<SVGFilter
Element*>(node())->filterUnitsCurrentValue(); } |
77 SVGUnitTypes::SVGUnitType primitiveUnits() const { return static_cast<SVGFil
terElement*>(node())->primitiveUnits(); } | 77 SVGUnitTypes::SVGUnitType primitiveUnits() const { return static_cast<SVGFil
terElement*>(node())->primitiveUnitsCurrentValue(); } |
78 | 78 |
79 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); | 79 void primitiveAttributeChanged(RenderObject*, const QualifiedName&); |
80 | 80 |
81 virtual RenderSVGResourceType resourceType() const { return s_resourceType;
} | 81 virtual RenderSVGResourceType resourceType() const { return s_resourceType;
} |
82 static RenderSVGResourceType s_resourceType; | 82 static RenderSVGResourceType s_resourceType; |
83 | 83 |
84 FloatRect drawingRegion(RenderObject*) const; | 84 FloatRect drawingRegion(RenderObject*) const; |
85 private: | 85 private: |
86 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); | 86 bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); |
87 | 87 |
88 HashMap<RenderObject*, FilterData*> m_filter; | 88 HashMap<RenderObject*, FilterData*> m_filter; |
89 }; | 89 }; |
90 | 90 |
91 inline RenderSVGResourceFilter* toRenderSVGFilter(RenderObject* object) | 91 inline RenderSVGResourceFilter* toRenderSVGFilter(RenderObject* object) |
92 { | 92 { |
93 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGResourceFilter()); | 93 ASSERT_WITH_SECURITY_IMPLICATION(!object || object->isSVGResourceFilter()); |
94 return static_cast<RenderSVGResourceFilter*>(object); | 94 return static_cast<RenderSVGResourceFilter*>(object); |
95 } | 95 } |
96 | 96 |
97 } | 97 } |
98 | 98 |
99 #endif | 99 #endif |
OLD | NEW |