layout/mathml/nsMathMLmmultiscriptsFrame.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* This Source Code Form is subject to the terms of the Mozilla Public
     3  * License, v. 2.0. If a copy of the MPL was not distributed with this
     4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     6 #ifndef nsMathMLmmultiscriptsFrame_h___
     7 #define nsMathMLmmultiscriptsFrame_h___
     9 #include "mozilla/Attributes.h"
    10 #include "nsMathMLContainerFrame.h"
    12 //
    13 // <mmultiscripts> -- attach prescripts and tensor indices to a base 
    14 // <msub> -- attach a subscript to a base
    15 // <msubsup> -- attach a subscript-superscript pair to a base
    16 // <msup> -- attach a superscript to a base
    17 //
    19 class nsMathMLmmultiscriptsFrame : public nsMathMLContainerFrame {
    20 public:
    21   NS_DECL_FRAMEARENA_HELPERS
    23   friend nsIFrame* NS_NewMathMLmmultiscriptsFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    25   NS_IMETHOD
    26   TransmitAutomaticData() MOZ_OVERRIDE;
    28   virtual nsresult
    29   Place(nsRenderingContext& aRenderingContext,
    30         bool                 aPlaceOrigin,
    31         nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
    33   static nsresult
    34   PlaceMultiScript(nsPresContext*      aPresContext,
    35                     nsRenderingContext& aRenderingContext,
    36                     bool                 aPlaceOrigin,
    37                     nsHTMLReflowMetrics& aDesiredSize,
    38                     nsMathMLContainerFrame* aForFrame,
    39                     nscoord              aUserSubScriptShift,
    40                     nscoord              aUserSupScriptShift,
    41                     nscoord              aScriptSpace);
    43   uint8_t
    44   ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
    46 protected:
    47   nsMathMLmmultiscriptsFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext) {}
    48   virtual ~nsMathMLmmultiscriptsFrame();
    51 };
    53 #endif /* nsMathMLmmultiscriptsFrame_h___ */

mercurial