Line data Source code
1 : /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 : /* vim: set ts=2 et sw=2 tw=80: */
3 : /* This Source Code is subject to the terms of the Mozilla Public License
4 : * version 2.0 (the "License"). You can obtain a copy of the License at
5 : * http://mozilla.org/MPL/2.0/. */
6 :
7 : /* rendering object for CSS "display: ruby-base" */
8 :
9 : #include "nsRubyBaseFrame.h"
10 :
11 : #include "mozilla/WritingModes.h"
12 : #include "nsLineLayout.h"
13 : #include "nsPresContext.h"
14 : #include "nsStyleContext.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 0 : NS_IMPL_FRAMEARENA_HELPERS(nsRubyBaseFrame)
28 :
29 : nsContainerFrame*
30 0 : NS_NewRubyBaseFrame(nsIPresShell* aPresShell,
31 : nsStyleContext* aContext)
32 : {
33 0 : return new (aPresShell) nsRubyBaseFrame(aContext);
34 : }
35 :
36 :
37 : //----------------------------------------------------------------------
38 :
39 : // nsRubyBaseFrame Method Implementations
40 : // ======================================
41 :
42 : #ifdef DEBUG_FRAME_DUMP
43 : nsresult
44 0 : nsRubyBaseFrame::GetFrameName(nsAString& aResult) const
45 : {
46 0 : return MakeFrameName(NS_LITERAL_STRING("RubyBase"), aResult);
47 : }
48 : #endif
|