1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/nsSVGFilterPaintCallback.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,33 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef __NS_SVGFILTERPAINTCALLBACK_H__ 1.10 +#define __NS_SVGFILTERPAINTCALLBACK_H__ 1.11 + 1.12 +class nsIFrame; 1.13 +class nsRenderingContext; 1.14 + 1.15 +struct nsIntRect; 1.16 + 1.17 +class nsSVGFilterPaintCallback { 1.18 +public: 1.19 + /** 1.20 + * Paint the frame contents. 1.21 + * SVG frames will have had matrix propagation set to false already. 1.22 + * Non-SVG frames have to do their own thing. 1.23 + * The caller will do a Save()/Restore() as necessary so feel free 1.24 + * to mess with context state. 1.25 + * The context will be configured to use the "user space" coordinate 1.26 + * system. 1.27 + * @param aDirtyRect the dirty rect *in user space pixels* 1.28 + * @param aTransformRoot the outermost frame whose transform should be taken 1.29 + * into account when painting an SVG glyph 1.30 + */ 1.31 + virtual void Paint(nsRenderingContext *aContext, nsIFrame *aTarget, 1.32 + const nsIntRect *aDirtyRect, 1.33 + nsIFrame* aTransformRoot) = 0; 1.34 +}; 1.35 + 1.36 +#endif