OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #ifndef RenderSVGModelObject_h | 31 #ifndef RenderSVGModelObject_h |
32 #define RenderSVGModelObject_h | 32 #define RenderSVGModelObject_h |
33 | 33 |
34 #include "core/rendering/RenderObject.h" | 34 #include "core/rendering/RenderObject.h" |
35 #include "core/svg/SVGElement.h" | 35 #include "core/svg/SVGElement.h" |
36 #include "platform/geometry/FloatRect.h" | |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 | 38 |
40 // Most renderers in the SVG rendering tree will inherit from this class | 39 // Most renderers in the SVG rendering tree will inherit from this class |
41 // but not all. (e.g. RenderSVGForeignObject, RenderSVGBlock) thus methods | 40 // but not all. (e.g. RenderSVGForeignObject, RenderSVGBlock) thus methods |
42 // required by SVG renders need to be declared on RenderObject, but shared | 41 // required by SVG renders need to be declared on RenderObject, but shared |
43 // logic can go in this class or in SVGRenderSupport. | 42 // logic can go in this class or in SVGRenderSupport. |
44 | 43 |
45 class SVGElement; | |
46 | |
47 class RenderSVGModelObject : public RenderObject { | 44 class RenderSVGModelObject : public RenderObject { |
48 public: | 45 public: |
49 explicit RenderSVGModelObject(SVGElement*); | 46 explicit RenderSVGModelObject(SVGElement*); |
50 | 47 |
51 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; | 48 virtual bool isChildAllowed(RenderObject*, RenderStyle*) const OVERRIDE; |
52 virtual bool canHaveWhitespaceChildren() const OVERRIDE { return false; } | 49 virtual bool canHaveWhitespaceChildren() const OVERRIDE { return false; } |
53 | 50 |
54 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t OVERRIDE; | 51 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer
ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons
t OVERRIDE; |
55 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje
ct* paintInvalidationContainer, FloatRect&, const PaintInvalidationState*) const
OVERRIDE FINAL; | 52 virtual void computeFloatRectForPaintInvalidation(const RenderLayerModelObje
ct* paintInvalidationContainer, FloatRect&, const PaintInvalidationState*) const
OVERRIDE FINAL; |
56 | 53 |
(...skipping 21 matching lines...) Expand all Loading... |
78 // 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 |
79 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; | 76 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, const HitTes
tLocation& locationInContainer, const LayoutPoint& accumulatedOffset, HitTestAct
ion) OVERRIDE FINAL; |
80 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; | 77 virtual void absoluteFocusRingQuads(Vector<FloatQuad>&) OVERRIDE FINAL; |
81 | 78 |
82 InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState&, co
nst RenderLayerModelObject& paintInvalidationContainer) OVERRIDE FINAL; | 79 InvalidationReason invalidatePaintIfNeeded(const PaintInvalidationState&, co
nst RenderLayerModelObject& paintInvalidationContainer) OVERRIDE FINAL; |
83 }; | 80 }; |
84 | 81 |
85 } | 82 } |
86 | 83 |
87 #endif | 84 #endif |
OLD | NEW |