1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/mathml/nsMathMLSelectedFrame.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,59 @@ 1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nsMathMLSelectedFrame_h___ 1.10 +#define nsMathMLSelectedFrame_h___ 1.11 + 1.12 +#include "nsMathMLContainerFrame.h" 1.13 + 1.14 +class nsMathMLSelectedFrame : public nsMathMLContainerFrame { 1.15 +public: 1.16 + virtual void 1.17 + Init(nsIContent* aContent, 1.18 + nsIFrame* aParent, 1.19 + nsIFrame* aPrevInFlow) MOZ_OVERRIDE; 1.20 + 1.21 + NS_IMETHOD 1.22 + TransmitAutomaticData() MOZ_OVERRIDE; 1.23 + 1.24 + virtual nsresult 1.25 + SetInitialChildList(ChildListID aListID, 1.26 + nsFrameList& aChildList) MOZ_OVERRIDE; 1.27 + 1.28 + virtual nsresult 1.29 + ChildListChanged(int32_t aModType) MOZ_OVERRIDE; 1.30 + 1.31 + virtual void BuildDisplayList(nsDisplayListBuilder* aBuilder, 1.32 + const nsRect& aDirtyRect, 1.33 + const nsDisplayListSet& aLists) MOZ_OVERRIDE; 1.34 + 1.35 + virtual nsresult 1.36 + Place(nsRenderingContext& aRenderingContext, 1.37 + bool aPlaceOrigin, 1.38 + nsHTMLReflowMetrics& aDesiredSize) MOZ_OVERRIDE; 1.39 + 1.40 + virtual nsresult 1.41 + Reflow(nsPresContext* aPresContext, 1.42 + nsHTMLReflowMetrics& aDesiredSize, 1.43 + const nsHTMLReflowState& aReflowState, 1.44 + nsReflowStatus& aStatus) MOZ_OVERRIDE; 1.45 + 1.46 + virtual nsQueryFrame::FrameIID GetFrameId() = 0; 1.47 + 1.48 +protected: 1.49 + nsMathMLSelectedFrame(nsStyleContext* aContext) : 1.50 + nsMathMLContainerFrame(aContext) {} 1.51 + virtual ~nsMathMLSelectedFrame(); 1.52 + 1.53 + virtual nsIFrame* GetSelectedFrame() = 0; 1.54 + nsIFrame* mSelectedFrame; 1.55 + 1.56 + bool mInvalidMarkup; 1.57 + 1.58 +private: 1.59 + void* operator new(size_t, nsIPresShell*) MOZ_MUST_OVERRIDE MOZ_DELETE; 1.60 +}; 1.61 + 1.62 +#endif /* nsMathMLSelectedFrame_h___ */