layout/mathml/nsMathMLmunderoverFrame.h

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

     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 nsMathMLmunderoverFrame_h___
     7 #define nsMathMLmunderoverFrame_h___
     9 #include "mozilla/Attributes.h"
    10 #include "nsMathMLContainerFrame.h"
    12 //
    13 // <munderover> -- attach an underscript-overscript pair to a base
    14 //
    16 class nsMathMLmunderoverFrame : public nsMathMLContainerFrame {
    17 public:
    18   NS_DECL_FRAMEARENA_HELPERS
    20   friend nsIFrame* NS_NewMathMLmunderoverFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    22   virtual nsresult
    23   Place(nsRenderingContext& aRenderingContext,
    24         bool                 aPlaceOrigin,
    25         nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE;
    27   NS_IMETHOD
    28   InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE;
    30   NS_IMETHOD
    31   TransmitAutomaticData() MOZ_OVERRIDE;
    33   NS_IMETHOD
    34   UpdatePresentationData(uint32_t        aFlagsValues,
    35                          uint32_t        aFlagsToUpdate) MOZ_OVERRIDE;
    37   virtual nsresult
    38   AttributeChanged(int32_t         aNameSpaceID,
    39                    nsIAtom*        aAttribute,
    40                    int32_t         aModType) MOZ_OVERRIDE;
    42   uint8_t
    43   ScriptIncrement(nsIFrame* aFrame) MOZ_OVERRIDE;
    45 protected:
    46   nsMathMLmunderoverFrame(nsStyleContext* aContext) : nsMathMLContainerFrame(aContext),
    47                                                       mIncrementUnder(false),
    48                                                       mIncrementOver(false) {}
    49   virtual ~nsMathMLmunderoverFrame();
    51 private:
    52   bool mIncrementUnder;
    53   bool mIncrementOver;
    54 };
    57 #endif /* nsMathMLmunderoverFrame_h___ */

mercurial