Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/generic/nsRubyTextFrame.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-text" */
8
9
#ifndef nsRubyTextFrame_h___
10
#define nsRubyTextFrame_h___
11
12
#include "nsRubyContentFrame.h"
13
14
/**
15
 * Factory function.
16
 * @return a newly allocated nsRubyTextFrame (infallible)
17
 */
18
nsContainerFrame* NS_NewRubyTextFrame(nsIPresShell* aPresShell,
19
                                      mozilla::ComputedStyle* aStyle);
20
21
class nsRubyTextFrame final : public nsRubyContentFrame
22
{
23
public:
24
  NS_DECL_FRAMEARENA_HELPERS(nsRubyTextFrame)
25
  NS_DECL_QUERYFRAME
26
27
  // nsIFrame overrides
28
  virtual bool CanContinueTextRun() const override;
29
30
#ifdef DEBUG_FRAME_DUMP
31
  virtual nsresult GetFrameName(nsAString& aResult) const override;
32
#endif
33
34
  virtual void BuildDisplayList(nsDisplayListBuilder*   aBuilder,
35
                                const nsDisplayListSet& aLists) override;
36
37
  virtual void Reflow(nsPresContext* aPresContext,
38
                      ReflowOutput& aDesiredSize,
39
                      const ReflowInput& aReflowInput,
40
                      nsReflowStatus& aStatus) override;
41
42
  bool IsAutoHidden() const
43
0
  {
44
0
    return GetStateBits() & NS_RUBY_TEXT_FRAME_AUTOHIDE;
45
0
  }
46
47
protected:
48
  friend nsContainerFrame* NS_NewRubyTextFrame(nsIPresShell* aPresShell,
49
                                               ComputedStyle* aStyle);
50
  explicit nsRubyTextFrame(ComputedStyle* aStyle)
51
    : nsRubyContentFrame(aStyle, kClassID)
52
0
  {}
53
};
54
55
#endif /* nsRubyTextFrame_h___ */