/src/mozilla-central/layout/generic/nsRubyBaseFrame.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 | | /* rendering object for CSS "display: ruby-base" */ |
8 | | |
9 | | #ifndef nsRubyBaseFrame_h___ |
10 | | #define nsRubyBaseFrame_h___ |
11 | | |
12 | | #include "nsRubyContentFrame.h" |
13 | | |
14 | | /** |
15 | | * Factory function. |
16 | | * @return a newly allocated nsRubyBaseFrame (infallible) |
17 | | */ |
18 | | nsContainerFrame* NS_NewRubyBaseFrame(nsIPresShell* aPresShell, |
19 | | mozilla::ComputedStyle* aStyle); |
20 | | |
21 | | class nsRubyBaseFrame final : public nsRubyContentFrame |
22 | | { |
23 | | public: |
24 | | NS_DECL_FRAMEARENA_HELPERS(nsRubyBaseFrame) |
25 | | NS_DECL_QUERYFRAME |
26 | | |
27 | | #ifdef DEBUG_FRAME_DUMP |
28 | | virtual nsresult GetFrameName(nsAString& aResult) const override; |
29 | | #endif |
30 | | |
31 | | protected: |
32 | | friend nsContainerFrame* NS_NewRubyBaseFrame(nsIPresShell* aPresShell, |
33 | | ComputedStyle* aStyle); |
34 | | explicit nsRubyBaseFrame(ComputedStyle* aStyle) |
35 | | : nsRubyContentFrame(aStyle, kClassID) |
36 | 0 | {} |
37 | | }; |
38 | | |
39 | | #endif /* nsRubyBaseFrame_h___ */ |