layout/svg/nsSVGGFrame.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

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 NSSVGGFRAME_H
michael@0 7 #define NSSVGGFRAME_H
michael@0 8
michael@0 9 #include "mozilla/Attributes.h"
michael@0 10 #include "gfxMatrix.h"
michael@0 11 #include "nsSVGContainerFrame.h"
michael@0 12
michael@0 13 typedef nsSVGDisplayContainerFrame nsSVGGFrameBase;
michael@0 14
michael@0 15 class nsSVGGFrame : public nsSVGGFrameBase
michael@0 16 {
michael@0 17 friend nsIFrame*
michael@0 18 NS_NewSVGGFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
michael@0 19 protected:
michael@0 20 nsSVGGFrame(nsStyleContext* aContext) :
michael@0 21 nsSVGGFrameBase(aContext) {}
michael@0 22
michael@0 23 public:
michael@0 24 NS_DECL_FRAMEARENA_HELPERS
michael@0 25
michael@0 26 #ifdef DEBUG
michael@0 27 virtual void Init(nsIContent* aContent,
michael@0 28 nsIFrame* aParent,
michael@0 29 nsIFrame* aPrevInFlow) MOZ_OVERRIDE;
michael@0 30 #endif
michael@0 31
michael@0 32 /**
michael@0 33 * Get the "type" of the frame
michael@0 34 *
michael@0 35 * @see nsGkAtoms::svgGFrame
michael@0 36 */
michael@0 37 virtual nsIAtom* GetType() const MOZ_OVERRIDE;
michael@0 38
michael@0 39 #ifdef DEBUG_FRAME_DUMP
michael@0 40 virtual nsresult GetFrameName(nsAString& aResult) const MOZ_OVERRIDE
michael@0 41 {
michael@0 42 return MakeFrameName(NS_LITERAL_STRING("SVGG"), aResult);
michael@0 43 }
michael@0 44 #endif
michael@0 45
michael@0 46 // nsIFrame interface:
michael@0 47 virtual nsresult AttributeChanged(int32_t aNameSpaceID,
michael@0 48 nsIAtom* aAttribute,
michael@0 49 int32_t aModType) MOZ_OVERRIDE;
michael@0 50
michael@0 51 // nsISVGChildFrame interface:
michael@0 52 virtual void NotifySVGChanged(uint32_t aFlags) MOZ_OVERRIDE;
michael@0 53
michael@0 54 // nsSVGContainerFrame methods:
michael@0 55 virtual gfxMatrix GetCanvasTM(uint32_t aFor,
michael@0 56 nsIFrame* aTransformRoot = nullptr) MOZ_OVERRIDE;
michael@0 57
michael@0 58 nsAutoPtr<gfxMatrix> mCanvasTM;
michael@0 59 };
michael@0 60
michael@0 61 #endif

mercurial