Backed out changeset b71c8c052463 (bug 1943846) for causing mass failures. CLOSED...
[gecko.git] / layout / svg / SVGSymbolFrame.h
blob35a152b235a180b54e80cd79134ff979e2d60926
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/. */
7 #ifndef LAYOUT_SVG_SVGSYMBOLFRAME_H_
8 #define LAYOUT_SVG_SVGSYMBOLFRAME_H_
10 #include "SVGViewportFrame.h"
12 namespace mozilla {
13 class PresShell;
14 } // namespace mozilla
16 nsIFrame* NS_NewSVGSymbolFrame(mozilla::PresShell* aPresShell,
17 mozilla::ComputedStyle* aStyle);
19 namespace mozilla {
21 class SVGSymbolFrame final : public SVGViewportFrame {
22 friend nsIFrame* ::NS_NewSVGSymbolFrame(mozilla::PresShell* aPresShell,
23 ComputedStyle* aStyle);
25 protected:
26 explicit SVGSymbolFrame(ComputedStyle* aStyle, nsPresContext* aPresContext)
27 : SVGViewportFrame(aStyle, aPresContext, kClassID) {}
29 public:
30 NS_DECL_QUERYFRAME
31 NS_DECL_FRAMEARENA_HELPERS(SVGSymbolFrame)
33 void Init(nsIContent* aContent, nsContainerFrame* aParent,
34 nsIFrame* aPrevInFlow) override;
36 void BuildDisplayList(nsDisplayListBuilder* aBuilder,
37 const nsDisplayListSet& aLists) override;
39 #ifdef DEBUG_FRAME_DUMP
40 nsresult GetFrameName(nsAString& aResult) const override {
41 return MakeFrameName(u"SVGSymbol"_ns, aResult);
43 #endif
46 } // namespace mozilla
48 #endif // LAYOUT_SVG_SVGSYMBOLFRAME_H_