layout/mathml/nsMathMLmphantomFrame.h

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

michael@0 1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
michael@0 2 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 3 * License, v. 2.0. If a copy of the MPL was not distributed with this
michael@0 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 5
michael@0 6 #ifndef nsMathMLmphantomFrame_h___
michael@0 7 #define nsMathMLmphantomFrame_h___
michael@0 8
michael@0 9 #include "mozilla/Attributes.h"
michael@0 10 #include "nsMathMLContainerFrame.h"
michael@0 11
michael@0 12 //
michael@0 13 // <mphantom> -- make content invisible but preserve its size
michael@0 14 //
michael@0 15
michael@0 16 class nsMathMLmphantomFrame : public nsMathMLContainerFrame {
michael@0 17 public:
michael@0 18 NS_DECL_FRAMEARENA_HELPERS
michael@0 19
michael@0 20 friend nsIFrame* NS_NewMathMLmphantomFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
michael@0 21
michael@0 22 NS_IMETHOD
michael@0 23 InheritAutomaticData(nsIFrame* aParent) MOZ_OVERRIDE;
michael@0 24
michael@0 25 NS_IMETHOD
michael@0 26 TransmitAutomaticData() MOZ_OVERRIDE {
michael@0 27 return TransmitAutomaticDataForMrowLikeElement();
michael@0 28 }
michael@0 29
michael@0 30 virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder,
michael@0 31 const nsRect& aDirtyRect,
michael@0 32 const nsDisplayListSet& aLists) MOZ_OVERRIDE {}
michael@0 33
michael@0 34 bool
michael@0 35 IsMrowLike() MOZ_OVERRIDE {
michael@0 36 return mFrames.FirstChild() != mFrames.LastChild() ||
michael@0 37 !mFrames.FirstChild();
michael@0 38 }
michael@0 39
michael@0 40 protected:
michael@0 41 nsMathMLmphantomFrame(nsStyleContext* aContext)
michael@0 42 : nsMathMLContainerFrame(aContext) {}
michael@0 43 virtual ~nsMathMLmphantomFrame();
michael@0 44 };
michael@0 45
michael@0 46 #endif /* nsMathMLmphantomFrame_h___ */

mercurial