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 2004, 2005 Rob Buis <buis@kde.org> | 3 2004, 2005 Rob Buis <buis@kde.org> |
4 2005 Eric Seidel <eric@webkit.org> | 4 2005 Eric Seidel <eric@webkit.org> |
5 2006 Apple Computer, Inc | 5 2006 Apple Computer, Inc |
6 | 6 |
7 This file is part of the KDE project | 7 This file is part of the KDE project |
8 | 8 |
9 This library is free software; you can redistribute it and/or | 9 This library is free software; you can redistribute it and/or |
10 modify it under the terms of the GNU Library General Public | 10 modify it under the terms of the GNU Library General Public |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 const Path& path() const; | 52 const Path& path() const; |
53 void setPath(const Path& newPath); | 53 void setPath(const Path& newPath); |
54 | 54 |
55 virtual bool isRenderPath() const { return true; } | 55 virtual bool isRenderPath() const { return true; } |
56 virtual const char* renderName() const { return "RenderPath"; } | 56 virtual const char* renderName() const { return "RenderPath"; } |
57 | 57 |
58 bool calculateLocalTransform(); | 58 bool calculateLocalTransform(); |
59 virtual TransformationMatrix localTransform() const; | 59 virtual TransformationMatrix localTransform() const; |
60 | 60 |
61 virtual void layout(); | 61 virtual void layout(); |
62 virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintC
ontainer); | 62 virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer); |
63 virtual bool requiresLayer() const { return false; } | 63 virtual bool requiresLayer() const { return false; } |
64 virtual int lineHeight(bool b, bool isRootLineBox = false) const; | 64 virtual int lineHeight(bool b, bool isRootLineBox = false) const; |
65 virtual int baselinePosition(bool b, bool isRootLineBox = false) const; | 65 virtual int baselinePosition(bool b, bool isRootLineBox = false) const; |
66 virtual void paint(PaintInfo&, int parentX, int parentY); | 66 virtual void paint(PaintInfo&, int parentX, int parentY); |
67 | 67 |
68 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty, bool topLevel =
true); | 68 virtual void absoluteRects(Vector<IntRect>&, int tx, int ty, bool topLevel =
true); |
69 virtual void absoluteQuads(Vector<FloatQuad>&, bool topLevel = true); | 69 virtual void absoluteQuads(Vector<FloatQuad>&, bool topLevel = true); |
70 virtual void addFocusRingRects(GraphicsContext*, int tx, int ty); | 70 virtual void addFocusRingRects(GraphicsContext*, int tx, int ty); |
71 | 71 |
72 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y
, int tx, int ty, HitTestAction); | 72 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y
, int tx, int ty, HitTestAction); |
73 | 73 |
74 FloatRect drawMarkersIfNeeded(GraphicsContext*, const FloatRect&, const Path
&) const; | 74 FloatRect drawMarkersIfNeeded(GraphicsContext*, const FloatRect&, const Path
&) const; |
75 | 75 |
76 private: | 76 private: |
77 FloatPoint mapAbsolutePointToLocal(const FloatPoint&) const; | 77 FloatPoint mapAbsolutePointToLocal(const FloatPoint&) const; |
78 virtual IntRect outlineBoundsForRepaint(RenderBoxModelObject* repaintContain
er) const; | 78 virtual IntRect outlineBoundsForRepaint(RenderBox* repaintContainer) const; |
79 | 79 |
80 mutable Path m_path; | 80 mutable Path m_path; |
81 mutable FloatRect m_fillBBox; | 81 mutable FloatRect m_fillBBox; |
82 mutable FloatRect m_strokeBbox; | 82 mutable FloatRect m_strokeBbox; |
83 FloatRect m_markerBounds; | 83 FloatRect m_markerBounds; |
84 TransformationMatrix m_localTransform; | 84 TransformationMatrix m_localTransform; |
85 IntRect m_absoluteBounds; | 85 IntRect m_absoluteBounds; |
86 }; | 86 }; |
87 | 87 |
88 } | 88 } |
89 | 89 |
90 #endif // ENABLE(SVG) | 90 #endif // ENABLE(SVG) |
91 #endif | 91 #endif |
92 | 92 |
93 // vim:ts=4:noet | 93 // vim:ts=4:noet |
OLD | NEW |