/src/mozilla-central/layout/svg/nsSVGGFrame.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 NSSVGGFRAME_H |
8 | | #define NSSVGGFRAME_H |
9 | | |
10 | | #include "mozilla/Attributes.h" |
11 | | #include "gfxMatrix.h" |
12 | | #include "nsAutoPtr.h" |
13 | | #include "nsSVGContainerFrame.h" |
14 | | |
15 | | class nsSVGGFrame : public nsSVGDisplayContainerFrame |
16 | | { |
17 | | friend nsIFrame* |
18 | | NS_NewSVGGFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle); |
19 | | explicit nsSVGGFrame(ComputedStyle* aStyle) |
20 | 0 | : nsSVGGFrame(aStyle, kClassID) {} |
21 | | |
22 | | protected: |
23 | | nsSVGGFrame(ComputedStyle* aStyle, nsIFrame::ClassID aID) |
24 | | : nsSVGDisplayContainerFrame(aStyle, aID) |
25 | 0 | {} |
26 | | |
27 | | public: |
28 | | NS_DECL_FRAMEARENA_HELPERS(nsSVGGFrame) |
29 | | |
30 | | #ifdef DEBUG |
31 | | virtual void Init(nsIContent* aContent, |
32 | | nsContainerFrame* aParent, |
33 | | nsIFrame* aPrevInFlow) override; |
34 | | #endif |
35 | | |
36 | | #ifdef DEBUG_FRAME_DUMP |
37 | | virtual nsresult GetFrameName(nsAString& aResult) const override |
38 | | { |
39 | | return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult); |
40 | | } |
41 | | #endif |
42 | | |
43 | | // nsIFrame interface: |
44 | | virtual nsresult AttributeChanged(int32_t aNameSpaceID, |
45 | | nsAtom* aAttribute, |
46 | | int32_t aModType) override; |
47 | | }; |
48 | | |
49 | | #endif |