SVGInnerSVGFrame.h (1433B)
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 LAYOUT_SVG_SVGINNERSVGFRAME_H_ 8 #define LAYOUT_SVG_SVGINNERSVGFRAME_H_ 9 10 #include "SVGViewportFrame.h" 11 12 namespace mozilla { 13 class PresShell; 14 } // namespace mozilla 15 16 nsIFrame* NS_NewSVGInnerSVGFrame(mozilla::PresShell* aPresShell, 17 mozilla::ComputedStyle* aStyle); 18 19 namespace mozilla { 20 21 class SVGInnerSVGFrame final : public SVGViewportFrame { 22 friend nsIFrame* ::NS_NewSVGInnerSVGFrame(mozilla::PresShell* aPresShell, 23 ComputedStyle* aStyle); 24 25 protected: 26 explicit SVGInnerSVGFrame(ComputedStyle* aStyle, nsPresContext* aPresContext) 27 : SVGViewportFrame(aStyle, aPresContext, kClassID) {} 28 29 public: 30 NS_DECL_QUERYFRAME 31 NS_DECL_FRAMEARENA_HELPERS(SVGInnerSVGFrame) 32 33 #ifdef DEBUG 34 void Init(nsIContent* aContent, nsContainerFrame* aParent, 35 nsIFrame* aPrevInFlow) override; 36 #endif 37 38 #ifdef DEBUG_FRAME_DUMP 39 nsresult GetFrameName(nsAString& aResult) const override { 40 return MakeFrameName(u"SVGInnerSVG"_ns, aResult); 41 } 42 #endif 43 }; 44 45 } // namespace mozilla 46 47 #endif // LAYOUT_SVG_SVGINNERSVGFRAME_H_