Backed out changeset 496886cb30a5 (bug 1867152) for bc failures on browser_user_input...
[gecko.git] / layout / generic / nsRubyBaseFrame.h
blob605c9d42353259f990c8b03b7f0a4d5eab9ecaa9
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 /* rendering object for CSS "display: ruby-base" */
9 #ifndef nsRubyBaseFrame_h___
10 #define nsRubyBaseFrame_h___
12 #include "nsRubyContentFrame.h"
14 namespace mozilla {
15 class PresShell;
16 } // namespace mozilla
18 /**
19 * Factory function.
20 * @return a newly allocated nsRubyBaseFrame (infallible)
22 nsContainerFrame* NS_NewRubyBaseFrame(mozilla::PresShell* aPresShell,
23 mozilla::ComputedStyle* aStyle);
25 class nsRubyBaseFrame final : public nsRubyContentFrame {
26 public:
27 NS_DECL_FRAMEARENA_HELPERS(nsRubyBaseFrame)
28 NS_DECL_QUERYFRAME
30 #ifdef DEBUG_FRAME_DUMP
31 virtual nsresult GetFrameName(nsAString& aResult) const override;
32 #endif
34 protected:
35 friend nsContainerFrame* NS_NewRubyBaseFrame(mozilla::PresShell* aPresShell,
36 ComputedStyle* aStyle);
37 explicit nsRubyBaseFrame(ComputedStyle* aStyle, nsPresContext* aPresContext)
38 : nsRubyContentFrame(aStyle, aPresContext, kClassID) {}
41 #endif /* nsRubyBaseFrame_h___ */