OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2005 Eric Seidel <eric@webkit.org> |
5 * Copyright (C) 2006 Apple Computer, Inc | 5 * Copyright (C) 2006 Apple Computer, Inc |
6 * Copyright (C) 2009 Google, Inc. | 6 * Copyright (C) 2009 Google, Inc. |
7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> | 7 * Copyright (C) 2011 Renata Hodovan <reni@webkit.org> |
8 * Copyright (C) 2011 University of Szeged | 8 * Copyright (C) 2011 University of Szeged |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 private: | 83 private: |
84 // Hit-detection separated for the fill and the stroke | 84 // Hit-detection separated for the fill and the stroke |
85 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul
e fillRule = RULE_NONZERO); | 85 bool fillContains(const FloatPoint&, bool requiresFill = true, const WindRul
e fillRule = RULE_NONZERO); |
86 bool strokeContains(const FloatPoint&, bool requiresStroke = true); | 86 bool strokeContains(const FloatPoint&, bool requiresStroke = true); |
87 | 87 |
88 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL { ret
urn m_repaintBoundingBox; } | 88 virtual FloatRect repaintRectInLocalCoordinates() const OVERRIDE FINAL { ret
urn m_repaintBoundingBox; } |
89 virtual const AffineTransform& localToParentTransform() const OVERRIDE FINAL
{ return m_localTransform; } | 89 virtual const AffineTransform& localToParentTransform() const OVERRIDE FINAL
{ return m_localTransform; } |
90 virtual AffineTransform localTransform() const OVERRIDE FINAL { return m_loc
alTransform; } | 90 virtual AffineTransform localTransform() const OVERRIDE FINAL { return m_loc
alTransform; } |
91 | 91 |
92 virtual bool isSVGShape() const OVERRIDE FINAL { return true; } | |
93 virtual const char* renderName() const { return "RenderSVGShape"; } | 92 virtual const char* renderName() const { return "RenderSVGShape"; } |
| 93 virtual SVGType getSVGType() const OVERRIDE { return IsSVGShape; } |
94 | 94 |
95 virtual void layout() OVERRIDE FINAL; | 95 virtual void layout() OVERRIDE FINAL; |
96 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; | 96 virtual void paint(PaintInfo&, const LayoutPoint&) OVERRIDE FINAL; |
97 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE FINAL; | 97 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition
alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE FINAL; |
98 | 98 |
99 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) OVERRIDE FINAL; | 99 virtual bool nodeAtFloatPoint(const HitTestRequest&, HitTestResult&, const F
loatPoint& pointInParent, HitTestAction) OVERRIDE FINAL; |
100 | 100 |
101 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_fillBo
undingBox; } | 101 virtual FloatRect objectBoundingBox() const OVERRIDE FINAL { return m_fillBo
undingBox; } |
102 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke
BoundingBox; } | 102 virtual FloatRect strokeBoundingBox() const OVERRIDE FINAL { return m_stroke
BoundingBox; } |
103 FloatRect calculateObjectBoundingBox() const; | 103 FloatRect calculateObjectBoundingBox() const; |
(...skipping 20 matching lines...) Expand all Loading... |
124 bool m_needsBoundariesUpdate : 1; | 124 bool m_needsBoundariesUpdate : 1; |
125 bool m_needsShapeUpdate : 1; | 125 bool m_needsShapeUpdate : 1; |
126 bool m_needsTransformUpdate : 1; | 126 bool m_needsTransformUpdate : 1; |
127 }; | 127 }; |
128 | 128 |
129 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); | 129 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderSVGShape, isSVGShape()); |
130 | 130 |
131 } | 131 } |
132 | 132 |
133 #endif | 133 #endif |
OLD | NEW |