/src/mozilla-central/layout/svg/nsSVGGenericContainerFrame.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
3 | | /* This Source Code Form is subject to the terms of the Mozilla Public |
4 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
5 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef __NS_SVGGENERICCONTAINERFRAME_H__ |
8 | | #define __NS_SVGGENERICCONTAINERFRAME_H__ |
9 | | |
10 | | #include "mozilla/Attributes.h" |
11 | | #include "gfxMatrix.h" |
12 | | #include "nsFrame.h" |
13 | | #include "nsLiteralString.h" |
14 | | #include "nsQueryFrame.h" |
15 | | #include "nsSVGContainerFrame.h" |
16 | | |
17 | | class nsAtom; |
18 | | class nsIFrame; |
19 | | class nsIPresShell; |
20 | | |
21 | | class nsSVGGenericContainerFrame final : public nsSVGDisplayContainerFrame |
22 | | { |
23 | | friend nsIFrame* |
24 | | NS_NewSVGGenericContainerFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle); |
25 | | |
26 | | protected: |
27 | | explicit nsSVGGenericContainerFrame(ComputedStyle* aStyle) |
28 | | : nsSVGDisplayContainerFrame(aStyle, kClassID) |
29 | 0 | {} |
30 | | |
31 | | public: |
32 | | NS_DECL_FRAMEARENA_HELPERS(nsSVGGenericContainerFrame) |
33 | | |
34 | | // nsIFrame: |
35 | | virtual nsresult AttributeChanged(int32_t aNameSpaceID, |
36 | | nsAtom* aAttribute, |
37 | | int32_t aModType) override; |
38 | | |
39 | | #ifdef DEBUG_FRAME_DUMP |
40 | | virtual nsresult GetFrameName(nsAString& aResult) const override |
41 | | { |
42 | | 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__ |