Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(86)

Side by Side Diff: Source/core/rendering/svg/RenderSVGModelObject.h

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2009, Google Inc. All rights reserved. 2 * Copyright (c) 2009, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // but not all. (e.g. RenderSVGForeignObject, RenderSVGBlock) thus methods 42 // but not all. (e.g. RenderSVGForeignObject, RenderSVGBlock) thus methods
43 // required by SVG renders need to be declared on RenderObject, but shared 43 // required by SVG renders need to be declared on RenderObject, but shared
44 // logic can go in this class or in SVGRenderSupport. 44 // logic can go in this class or in SVGRenderSupport.
45 45
46 class SVGStyledElement; 46 class SVGStyledElement;
47 47
48 class RenderSVGModelObject : public RenderObject { 48 class RenderSVGModelObject : public RenderObject {
49 public: 49 public:
50 explicit RenderSVGModelObject(SVGStyledElement*); 50 explicit RenderSVGModelObject(SVGStyledElement*);
51 51
52 virtual bool requiresLayer() const { return false; } 52 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
53 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL;
54 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL;
53 55
54 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 56 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE FINAL;
55 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect&, bool fixed = false) const OVERRIDE;
56 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep aintContainer, const RenderGeometryMap*) const OVERRIDE;
57
58 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const;
59 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; 57 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const;
60 58
61 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE; 59 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL;
62 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE; 60 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL;
63 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle); 61 virtual void styleWillChange(StyleDifference, const RenderStyle* newStyle) O VERRIDE FINAL;
64 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle); 62 virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
65 63
66 static bool checkIntersection(RenderObject*, const FloatRect&); 64 static bool checkIntersection(RenderObject*, const FloatRect&);
67 static bool checkEnclosure(RenderObject*, const FloatRect&); 65 static bool checkEnclosure(RenderObject*, const FloatRect&);
68 66
69 virtual FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return repaintRectInLocalCoordinates(); } 67 virtual FloatRect repaintRectInLocalCoordinatesExcludingSVGShadow() const { return repaintRectInLocalCoordinates(); }
70 bool hasSVGShadow() const { return m_hasSVGShadow; } 68 bool hasSVGShadow() const { return m_hasSVGShadow; }
71 void setHasSVGShadow(bool hasShadow) { m_hasSVGShadow = hasShadow; } 69 void setHasSVGShadow(bool hasShadow) { m_hasSVGShadow = hasShadow; }
72 70
73 protected: 71 protected:
74 virtual void willBeDestroyed(); 72 virtual void willBeDestroyed();
75 73
76 private: 74 private:
77 // This method should never be called, SVG uses a different nodeAtPoint meth od 75 // This method should never be called, SVG uses a different nodeAtPoint meth od
78 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE; 76 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE;
79 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&); 77 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL;
80 bool m_hasSVGShadow; 78 bool m_hasSVGShadow;
81 }; 79 };
82 80
83 } 81 }
84 82
85 #endif // ENABLE(SVG) 83 #endif // ENABLE(SVG)
86 #endif 84 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGInlineText.h ('k') | Source/core/rendering/svg/RenderSVGPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698