michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: michael@0: #include "nsMathMLmphantomFrame.h" michael@0: #include "mozilla/gfx/2D.h" michael@0: michael@0: // michael@0: // -- make content invisible but preserve its size michael@0: // michael@0: michael@0: nsIFrame* michael@0: NS_NewMathMLmphantomFrame(nsIPresShell* aPresShell, nsStyleContext* aContext) michael@0: { michael@0: return new (aPresShell) nsMathMLmphantomFrame(aContext); michael@0: } michael@0: michael@0: NS_IMPL_FRAMEARENA_HELPERS(nsMathMLmphantomFrame) michael@0: michael@0: nsMathMLmphantomFrame::~nsMathMLmphantomFrame() michael@0: { michael@0: } michael@0: michael@0: NS_IMETHODIMP michael@0: nsMathMLmphantomFrame::InheritAutomaticData(nsIFrame* aParent) michael@0: { michael@0: // let the base class get the default from our parent michael@0: nsMathMLContainerFrame::InheritAutomaticData(aParent); michael@0: michael@0: mPresentationData.flags |= NS_MATHML_STRETCH_ALL_CHILDREN_VERTICALLY; michael@0: michael@0: return NS_OK; michael@0: }