1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/layout/svg/nsSVGGenericContainerFrame.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,56 @@ 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 __NS_SVGGENERICCONTAINERFRAME_H__ 1.10 +#define __NS_SVGGENERICCONTAINERFRAME_H__ 1.11 + 1.12 +#include "mozilla/Attributes.h" 1.13 +#include "gfxMatrix.h" 1.14 +#include "nsFrame.h" 1.15 +#include "nsLiteralString.h" 1.16 +#include "nsQueryFrame.h" 1.17 +#include "nsSVGContainerFrame.h" 1.18 + 1.19 +class nsIAtom; 1.20 +class nsIFrame; 1.21 +class nsIPresShell; 1.22 +class nsStyleContext; 1.23 + 1.24 +typedef nsSVGDisplayContainerFrame nsSVGGenericContainerFrameBase; 1.25 + 1.26 +class nsSVGGenericContainerFrame : public nsSVGGenericContainerFrameBase 1.27 +{ 1.28 + friend nsIFrame* 1.29 + NS_NewSVGGenericContainerFrame(nsIPresShell* aPresShell, nsStyleContext* aContext); 1.30 +protected: 1.31 + nsSVGGenericContainerFrame(nsStyleContext* aContext) : nsSVGGenericContainerFrameBase(aContext) {} 1.32 + 1.33 +public: 1.34 + NS_DECL_FRAMEARENA_HELPERS 1.35 + 1.36 + // nsIFrame: 1.37 + virtual nsresult AttributeChanged(int32_t aNameSpaceID, 1.38 + nsIAtom* aAttribute, 1.39 + int32_t aModType) MOZ_OVERRIDE; 1.40 + /** 1.41 + * Get the "type" of the frame 1.42 + * 1.43 + * @see nsGkAtoms::svgGenericContainerFrame 1.44 + */ 1.45 + virtual nsIAtom* GetType() const MOZ_OVERRIDE; 1.46 + 1.47 +#ifdef DEBUG_FRAME_DUMP 1.48 + virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE 1.49 + { 1.50 + return MakeFrameName(NS_LITERAL_STRING("SVGGenericContainer"), aResult); 1.51 + } 1.52 +#endif 1.53 + 1.54 + // nsSVGContainerFrame methods: 1.55 + virtual gfxMatrix GetCanvasTM(uint32_t aFor, 1.56 + nsIFrame* aTransformRoot = nullptr) MOZ_OVERRIDE; 1.57 +}; 1.58 + 1.59 +#endif // __NS_SVGGENERICCONTAINERFRAME_H__