Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* This Source Code Form is subject to the terms of the Mozilla Public
3 : * License, v. 2.0. If a copy of the MPL was not distributed with this
4 : * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 :
6 : #ifndef __NS_SVGGENERICCONTAINERFRAME_H__
7 : #define __NS_SVGGENERICCONTAINERFRAME_H__
8 :
9 : #include "mozilla/Attributes.h"
10 : #include "gfxMatrix.h"
11 : #include "nsFrame.h"
12 : #include "nsLiteralString.h"
13 : #include "nsQueryFrame.h"
14 : #include "nsSVGContainerFrame.h"
15 :
16 : class nsIAtom;
17 : class nsIFrame;
18 : class nsIPresShell;
19 : class nsStyleContext;
20 :
21 0 : class nsSVGGenericContainerFrame final : public nsSVGDisplayContainerFrame
22 : {
23 : friend nsIFrame*
24 : NS_NewSVGGenericContainerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
25 :
26 : protected:
27 0 : explicit nsSVGGenericContainerFrame(nsStyleContext* aContext)
28 0 : : nsSVGDisplayContainerFrame(aContext, kClassID)
29 0 : {}
30 :
31 : public:
32 0 : NS_DECL_FRAMEARENA_HELPERS(nsSVGGenericContainerFrame)
33 :
34 : // nsIFrame:
35 : virtual nsresult AttributeChanged(int32_t aNameSpaceID,
36 : nsIAtom* aAttribute,
37 : int32_t aModType) override;
38 :
39 : #ifdef DEBUG_FRAME_DUMP
40 0 : virtual nsresult GetFrameName(nsAString& aResult) const override
41 : {
42 0 : return MakeFrameName(NS_LITERAL_STRING("SVGGenericContainer"), aResult);
43 : }
44 : #endif
45 :
46 : // nsSVGContainerFrame methods:
47 : virtual gfxMatrix GetCanvasTM() override;
48 : };
49 :
50 : #endif // __NS_SVGGENERICCONTAINERFRAME_H__
|