2008-09-10 17:24:16 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 04:12:37 -07: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-10 17:24:16 -07:00
|
|
|
|
|
|
|
#ifndef __NS_SVGFILTERPAINTCALLBACK_H__
|
|
|
|
#define __NS_SVGFILTERPAINTCALLBACK_H__
|
|
|
|
|
|
|
|
class nsIFrame;
|
2014-10-31 13:08:54 -07:00
|
|
|
class gfxContext;
|
2008-09-10 17:24:16 -07:00
|
|
|
|
2012-03-20 05:15:55 -07:00
|
|
|
struct nsIntRect;
|
|
|
|
|
2008-09-10 17:24:16 -07:00
|
|
|
class nsSVGFilterPaintCallback {
|
|
|
|
public:
|
|
|
|
/**
|
2008-10-16 00:55:10 -07:00
|
|
|
* Paint the frame contents.
|
2008-09-10 17:24:16 -07:00
|
|
|
* SVG frames will have had matrix propagation set to false already.
|
2008-10-16 00:55:10 -07:00
|
|
|
* Non-SVG frames have to do their own thing.
|
2008-09-10 17:24:16 -07:00
|
|
|
* The caller will do a Save()/Restore() as necessary so feel free
|
|
|
|
* to mess with context state.
|
2008-10-16 00:55:10 -07:00
|
|
|
* The context will be configured to use the "user space" coordinate
|
|
|
|
* system.
|
2008-09-10 17:24:16 -07:00
|
|
|
* @param aDirtyRect the dirty rect *in user space pixels*
|
2013-09-11 00:27:45 -07:00
|
|
|
* @param aTransformRoot the outermost frame whose transform should be taken
|
|
|
|
* into account when painting an SVG glyph
|
2008-09-10 17:24:16 -07:00
|
|
|
*/
|
2014-10-31 13:08:54 -07:00
|
|
|
virtual void Paint(gfxContext& aContext, nsIFrame *aTarget,
|
2014-08-29 12:42:07 -07:00
|
|
|
const gfxMatrix& aTransform,
|
|
|
|
const nsIntRect *aDirtyRect) = 0;
|
2008-09-10 17:24:16 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|