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

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

Issue 21042009: [SVG2] Merge SVGStyledElement into SVGElement (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 24 matching lines...) Expand all
35 #include "core/rendering/svg/SVGRenderSupport.h" 35 #include "core/rendering/svg/SVGRenderSupport.h"
36 #include "core/svg/SVGRect.h" 36 #include "core/svg/SVGRect.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 // Most renderers in the SVG rendering tree will inherit from this class 40 // Most renderers in the SVG rendering tree will inherit from this class
41 // but not all. (e.g. RenderSVGForeignObject, RenderSVGBlock) thus methods 41 // but not all. (e.g. RenderSVGForeignObject, RenderSVGBlock) thus methods
42 // required by SVG renders need to be declared on RenderObject, but shared 42 // required by SVG renders need to be declared on RenderObject, but shared
43 // logic can go in this class or in SVGRenderSupport. 43 // logic can go in this class or in SVGRenderSupport.
44 44
45 class SVGStyledElement; 45 class SVGElement;
46 46
47 class RenderSVGModelObject : public RenderObject { 47 class RenderSVGModelObject : public RenderObject {
48 public: 48 public:
49 explicit RenderSVGModelObject(SVGStyledElement*); 49 explicit RenderSVGModelObject(SVGElement*);
50 50
51 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE; 51 virtual LayoutRect clippedOverflowRectForRepaint(const RenderLayerModelObjec t* repaintContainer) const OVERRIDE;
52 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL; 52 virtual void computeFloatRectForRepaint(const RenderLayerModelObject* repain tContainer, FloatRect&, bool fixed = false) const OVERRIDE FINAL;
53 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL; 53 virtual LayoutRect outlineBoundsForRepaint(const RenderLayerModelObject* rep aintContainer, const RenderGeometryMap*) const OVERRIDE FINAL;
54 54
55 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE FINAL; 55 virtual void absoluteRects(Vector<IntRect>&, const LayoutPoint& accumulatedO ffset) const OVERRIDE FINAL;
56 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const; 56 virtual void absoluteQuads(Vector<FloatQuad>&, bool* wasFixed) const;
57 57
58 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL; 58 virtual void mapLocalToContainer(const RenderLayerModelObject* repaintContai ner, TransformState&, MapCoordinatesFlags = ApplyContainerFlip, bool* wasFixed = 0) const OVERRIDE FINAL;
59 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL; 59 virtual const RenderObject* pushMappingToContainer(const RenderLayerModelObj ect* ancestorToStopAt, RenderGeometryMap&) const OVERRIDE FINAL;
(...skipping 11 matching lines...) Expand all
71 71
72 private: 72 private:
73 // This method should never be called, SVG uses a different nodeAtPoint meth od 73 // This method should never be called, SVG uses a different nodeAtPoint meth od
74 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE; 74 bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTestLocatio n& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAction) OVE RRIDE;
75 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; 75 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL;
76 }; 76 };
77 77
78 } 78 }
79 79
80 #endif 80 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGHiddenContainer.cpp ('k') | Source/core/rendering/svg/RenderSVGModelObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698