author Sylvestre Ledru <>
Thu, 06 Jul 2017 14:00:35 +0200
changeset 418830 6a629adbb62a299d7208373d1c6f375149d2afdb
parent 411319 47ed59045f9bff59434723249b995515116d4ed0
child 442038 905239391e05483e8fb221378dd2092c5a0df8b7
permissions -rw-r--r--
Bug 1378712 - Remove all trailing whitespaces r=Ehsan MozReview-Commit-ID: Kdz2xtTF9EG

/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at */

#ifndef nsMathMLmmultiscriptsFrame_h___
#define nsMathMLmmultiscriptsFrame_h___

#include "mozilla/Attributes.h"
#include "nsMathMLContainerFrame.h"

// <mmultiscripts> -- attach prescripts and tensor indices to a base
// <msub> -- attach a subscript to a base
// <msubsup> -- attach a subscript-superscript pair to a base
// <msup> -- attach a superscript to a base

class nsMathMLmmultiscriptsFrame : public nsMathMLContainerFrame {

  friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);

  TransmitAutomaticData() override;

  virtual nsresult
  Place(DrawTarget*          aDrawTarget,
        bool                 aPlaceOrigin,
        ReflowOutput& aDesiredSize) override;

  static nsresult
  PlaceMultiScript(nsPresContext*          aPresContext,
                   DrawTarget*             aDrawTarget,
                   bool                    aPlaceOrigin,
                   ReflowOutput&    aDesiredSize,
                   nsMathMLContainerFrame* aForFrame,
                   nscoord                 aUserSubScriptShift,
                   nscoord                 aUserSupScriptShift,
                   float                   aFontSizeInflation);

  ScriptIncrement(nsIFrame* aFrame) override;

  explicit nsMathMLmmultiscriptsFrame(nsStyleContext* aContext)
    : nsMathMLContainerFrame(aContext, kClassID) {}
  virtual ~nsMathMLmmultiscriptsFrame();


#endif /* nsMathMLmmultiscriptsFrame_h___ */