diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.h')
-rw-r--r-- | chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.h b/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.h index 6455b039284..1c679130ccc 100644 --- a/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.h +++ b/chromium/third_party/WebKit/Source/core/rendering/svg/RenderSVGResourceFilter.h @@ -60,30 +60,32 @@ public: explicit RenderSVGResourceFilter(SVGFilterElement*); virtual ~RenderSVGResourceFilter(); - virtual const char* renderName() const { return "RenderSVGResourceFilter"; } + virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; + + virtual const char* renderName() const OVERRIDE { return "RenderSVGResourceFilter"; } virtual bool isSVGResourceFilter() const OVERRIDE { return true; } - virtual void removeAllClientsFromCache(bool markForInvalidation = true); - virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true); + virtual void removeAllClientsFromCache(bool markForInvalidation = true) OVERRIDE; + virtual void removeClientFromCache(RenderObject*, bool markForInvalidation = true) OVERRIDE; - virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, unsigned short resourceMode); - virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned short resourceMode, const Path*, const RenderSVGShape*); + virtual bool applyResource(RenderObject*, RenderStyle*, GraphicsContext*&, unsigned short resourceMode) OVERRIDE; + virtual void postApplyResource(RenderObject*, GraphicsContext*&, unsigned short resourceMode, const Path*, const RenderSVGShape*) OVERRIDE; - FloatRect resourceBoundingBox(RenderObject*); + FloatRect resourceBoundingBox(const RenderObject*); PassRefPtr<SVGFilterBuilder> buildPrimitives(SVGFilter*); - SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(element())->filterUnitsCurrentValue(); } - SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement(element())->primitiveUnitsCurrentValue(); } + SVGUnitTypes::SVGUnitType filterUnits() const { return toSVGFilterElement(element())->filterUnits()->currentValue()->enumValue(); } + SVGUnitTypes::SVGUnitType primitiveUnits() const { return toSVGFilterElement(element())->primitiveUnits()->currentValue()->enumValue(); } void primitiveAttributeChanged(RenderObject*, const QualifiedName&); - virtual RenderSVGResourceType resourceType() const { return s_resourceType; } + virtual RenderSVGResourceType resourceType() const OVERRIDE { return s_resourceType; } static const RenderSVGResourceType s_resourceType; FloatRect drawingRegion(RenderObject*) const; private: - bool fitsInMaximumImageSize(const FloatSize&, FloatSize&); + void adjustScaleForMaximumImageSize(const FloatSize&, FloatSize&); typedef HashMap<RenderObject*, OwnPtr<FilterData> > FilterMap; FilterMap m_filter; |