| 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, 2007 Rob Buis <buis@kde.org> | 3 2004, 2005, 2007 Rob Buis <buis@kde.org> |
| 4 | 4 |
| 5 This file is part of the KDE project | 5 This file is part of the KDE project |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 virtual bool isSVGContainer() const { return true; } | 54 virtual bool isSVGContainer() const { return true; } |
| 55 virtual const char* renderName() const { return "RenderSVGContainer"; } | 55 virtual const char* renderName() const { return "RenderSVGContainer"; } |
| 56 | 56 |
| 57 virtual bool requiresLayer() const { return false; } | 57 virtual bool requiresLayer() const { return false; } |
| 58 virtual int lineHeight(bool b, bool isRootLineBox = false) const; | 58 virtual int lineHeight(bool b, bool isRootLineBox = false) const; |
| 59 virtual int baselinePosition(bool b, bool isRootLineBox = false) const; | 59 virtual int baselinePosition(bool b, bool isRootLineBox = false) const; |
| 60 | 60 |
| 61 virtual void layout(); | 61 virtual void layout(); |
| 62 virtual void paint(PaintInfo&, int parentX, int parentY); | 62 virtual void paint(PaintInfo&, int parentX, int parentY); |
| 63 | 63 |
| 64 virtual IntRect clippedOverflowRectForRepaint(RenderBox* repaintContainer); | 64 virtual IntRect clippedOverflowRectForRepaint(RenderBoxModelObject* repaintC
ontainer); |
| 65 virtual void absoluteRects(Vector<IntRect>& rects, int tx, int ty, bool topL
evel = true); | 65 virtual void absoluteRects(Vector<IntRect>& rects, int tx, int ty, bool topL
evel = true); |
| 66 virtual void absoluteQuads(Vector<FloatQuad>&, bool topLevel = true); | 66 virtual void absoluteQuads(Vector<FloatQuad>&, bool topLevel = true); |
| 67 virtual void addFocusRingRects(GraphicsContext*, int tx, int ty); | 67 virtual void addFocusRingRects(GraphicsContext*, int tx, int ty); |
| 68 | 68 |
| 69 FloatRect relativeBBox(bool includeStroke = true) const; | 69 FloatRect relativeBBox(bool includeStroke = true) const; |
| 70 | 70 |
| 71 virtual bool calculateLocalTransform(); | 71 virtual bool calculateLocalTransform(); |
| 72 virtual TransformationMatrix localTransform() const; | 72 virtual TransformationMatrix localTransform() const; |
| 73 virtual TransformationMatrix viewportTransform() const; | 73 virtual TransformationMatrix viewportTransform() const; |
| 74 | 74 |
| 75 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y
, int tx, int ty, HitTestAction); | 75 virtual bool nodeAtPoint(const HitTestRequest&, HitTestResult&, int x, int y
, int tx, int ty, HitTestAction); |
| 76 | 76 |
| 77 protected: | 77 protected: |
| 78 virtual void applyContentTransforms(PaintInfo&); | 78 virtual void applyContentTransforms(PaintInfo&); |
| 79 virtual void applyAdditionalTransforms(PaintInfo&); | 79 virtual void applyAdditionalTransforms(PaintInfo&); |
| 80 | 80 |
| 81 void calcBounds(); | 81 void calcBounds(); |
| 82 | 82 |
| 83 virtual IntRect outlineBoundsForRepaint(RenderBox* /*repaintContainer*/) con
st; | 83 virtual IntRect outlineBoundsForRepaint(RenderBoxModelObject* /*repaintConta
iner*/) const; |
| 84 | 84 |
| 85 private: | 85 private: |
| 86 int calcReplacedWidth() const; | 86 int calcReplacedWidth() const; |
| 87 int calcReplacedHeight() const; | 87 int calcReplacedHeight() const; |
| 88 | 88 |
| 89 RenderObjectChildList m_children; | 89 RenderObjectChildList m_children; |
| 90 | 90 |
| 91 int m_width; | 91 int m_width; |
| 92 int m_height; | 92 int m_height; |
| 93 | 93 |
| 94 bool selfWillPaint() const; | 94 bool selfWillPaint() const; |
| 95 | 95 |
| 96 bool m_drawsContents : 1; | 96 bool m_drawsContents : 1; |
| 97 | 97 |
| 98 protected: | 98 protected: |
| 99 IntRect m_absoluteBounds; | 99 IntRect m_absoluteBounds; |
| 100 TransformationMatrix m_localTransform; | 100 TransformationMatrix m_localTransform; |
| 101 }; | 101 }; |
| 102 | 102 |
| 103 } // namespace WebCore | 103 } // namespace WebCore |
| 104 | 104 |
| 105 #endif // ENABLE(SVG) | 105 #endif // ENABLE(SVG) |
| 106 #endif // RenderSVGContainer_h | 106 #endif // RenderSVGContainer_h |
| 107 | 107 |
| 108 // vim:ts=4:noet | 108 // vim:ts=4:noet |
| OLD | NEW |