Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/mathml/nsMathMLmmultiscriptsFrame.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
#ifndef nsMathMLmmultiscriptsFrame_h___
8
#define nsMathMLmmultiscriptsFrame_h___
9
10
#include "mozilla/Attributes.h"
11
#include "nsMathMLContainerFrame.h"
12
13
//
14
// <mmultiscripts> -- attach prescripts and tensor indices to a base
15
// <msub> -- attach a subscript to a base
16
// <msubsup> -- attach a subscript-superscript pair to a base
17
// <msup> -- attach a superscript to a base
18
//
19
20
class nsMathMLmmultiscriptsFrame final : public nsMathMLContainerFrame
21
{
22
public:
23
  NS_DECL_FRAMEARENA_HELPERS(nsMathMLmmultiscriptsFrame)
24
25
  friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle);
26
27
  NS_IMETHOD
28
  TransmitAutomaticData() override;
29
30
  virtual nsresult
31
  Place(DrawTarget*          aDrawTarget,
32
        bool                 aPlaceOrigin,
33
        ReflowOutput& aDesiredSize) override;
34
35
  static nsresult
36
  PlaceMultiScript(nsPresContext*          aPresContext,
37
                   DrawTarget*             aDrawTarget,
38
                   bool                    aPlaceOrigin,
39
                   ReflowOutput&    aDesiredSize,
40
                   nsMathMLContainerFrame* aForFrame,
41
                   nscoord                 aUserSubScriptShift,
42
                   nscoord                 aUserSupScriptShift,
43
                   float                   aFontSizeInflation);
44
45
  uint8_t
46
  ScriptIncrement(nsIFrame* aFrame) override;
47
48
protected:
49
  explicit nsMathMLmmultiscriptsFrame(ComputedStyle* aStyle)
50
0
    : nsMathMLContainerFrame(aStyle, kClassID) {}
51
  virtual ~nsMathMLmmultiscriptsFrame();
52
53
54
};
55
56
#endif /* nsMathMLmmultiscriptsFrame_h___ */