/src/mozilla-central/layout/generic/nsRubyBaseFrame.cpp
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 | | #include "nsRubyBaseFrame.h" |
10 | | |
11 | | #include "mozilla/ComputedStyle.h" |
12 | | #include "mozilla/WritingModes.h" |
13 | | #include "nsLineLayout.h" |
14 | | #include "nsPresContext.h" |
15 | | |
16 | | using namespace mozilla; |
17 | | |
18 | | //---------------------------------------------------------------------- |
19 | | |
20 | | // Frame class boilerplate |
21 | | // ======================= |
22 | | |
23 | 0 | NS_QUERYFRAME_HEAD(nsRubyBaseFrame) |
24 | 0 | NS_QUERYFRAME_ENTRY(nsRubyBaseFrame) |
25 | 0 | NS_QUERYFRAME_TAIL_INHERITING(nsRubyContentFrame) |
26 | | |
27 | | NS_IMPL_FRAMEARENA_HELPERS(nsRubyBaseFrame) |
28 | | |
29 | | nsContainerFrame* |
30 | | NS_NewRubyBaseFrame(nsIPresShell* aPresShell, |
31 | | ComputedStyle* aStyle) |
32 | 0 | { |
33 | 0 | return new (aPresShell) nsRubyBaseFrame(aStyle); |
34 | 0 | } |
35 | | |
36 | | |
37 | | //---------------------------------------------------------------------- |
38 | | |
39 | | // nsRubyBaseFrame Method Implementations |
40 | | // ====================================== |
41 | | |
42 | | #ifdef DEBUG_FRAME_DUMP |
43 | | nsresult |
44 | | nsRubyBaseFrame::GetFrameName(nsAString& aResult) const |
45 | | { |
46 | | return MakeFrameName(NS_LITERAL_STRING("RubyBase"), aResult); |
47 | | } |
48 | | #endif |