2008-09-11 04:24:16 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2008-09-11 04:24:16 +04:00
|
|
|
|
|
|
|
#ifndef __NS_SVGFILTERPAINTCALLBACK_H__
|
|
|
|
#define __NS_SVGFILTERPAINTCALLBACK_H__
|
|
|
|
|
|
|
|
class nsIFrame;
|
2012-03-02 12:28:59 +04:00
|
|
|
class nsRenderingContext;
|
2008-09-11 04:24:16 +04:00
|
|
|
|
2012-03-20 16:15:55 +04:00
|
|
|
struct nsIntRect;
|
|
|
|
|
2008-09-11 04:24:16 +04:00
|
|
|
class nsSVGFilterPaintCallback {
|
|
|
|
public:
|
|
|
|
/**
|
2008-10-16 11:55:10 +04:00
|
|
|
* Paint the frame contents.
|
2008-09-11 04:24:16 +04:00
|
|
|
* SVG frames will have had matrix propagation set to false already.
|
2008-10-16 11:55:10 +04:00
|
|
|
* Non-SVG frames have to do their own thing.
|
2008-09-11 04:24:16 +04:00
|
|
|
* The caller will do a Save()/Restore() as necessary so feel free
|
|
|
|
* to mess with context state.
|
2008-10-16 11:55:10 +04:00
|
|
|
* The context will be configured to use the "user space" coordinate
|
|
|
|
* system.
|
2008-09-11 04:24:16 +04:00
|
|
|
* @param aDirtyRect the dirty rect *in user space pixels*
|
2013-09-11 11:27:45 +04:00
|
|
|
* @param aTransformRoot the outermost frame whose transform should be taken
|
|
|
|
* into account when painting an SVG glyph
|
2008-09-11 04:24:16 +04:00
|
|
|
*/
|
2012-03-02 12:28:59 +04:00
|
|
|
virtual void Paint(nsRenderingContext *aContext, nsIFrame *aTarget,
|
2014-08-29 23:42:07 +04:00
|
|
|
const gfxMatrix& aTransform,
|
|
|
|
const nsIntRect *aDirtyRect) = 0;
|
2008-09-11 04:24:16 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|