| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 2 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2008 Rob Buis <buis@kde.org> | 4 * Copyright (C) 2008 Rob Buis <buis@kde.org> |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 const Font& scaledFont() const { return m_scaledFont; } | 41 const Font& scaledFont() const { return m_scaledFont; } |
| 42 void updateScaledFont(); | 42 void updateScaledFont(); |
| 43 static void computeNewScaledFontForStyle(RenderObject*, const RenderStyle*,
float& scalingFactor, Font& scaledFont); | 43 static void computeNewScaledFontForStyle(RenderObject*, const RenderStyle*,
float& scalingFactor, Font& scaledFont); |
| 44 | 44 |
| 45 // Preserves floating point precision for the use in DRT. It knows how to ro
und and does a better job than enclosingIntRect. | 45 // Preserves floating point precision for the use in DRT. It knows how to ro
und and does a better job than enclosingIntRect. |
| 46 FloatRect floatLinesBoundingBox() const; | 46 FloatRect floatLinesBoundingBox() const; |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 virtual const char* renderName() const { return "RenderSVGInlineText"; } | 49 virtual const char* renderName() const { return "RenderSVGInlineText"; } |
| 50 | 50 |
| 51 virtual void willBeDestroyed(); | |
| 52 virtual void setTextInternal(PassRefPtr<StringImpl>); | 51 virtual void setTextInternal(PassRefPtr<StringImpl>); |
| 53 virtual void styleDidChange(StyleDifference, const RenderStyle*); | 52 virtual void styleDidChange(StyleDifference, const RenderStyle*); |
| 54 | 53 |
| 55 virtual FloatRect objectBoundingBox() const { return floatLinesBoundingBox()
; } | 54 virtual FloatRect objectBoundingBox() const { return floatLinesBoundingBox()
; } |
| 56 | 55 |
| 57 virtual bool requiresLayer() const { return false; } | 56 virtual bool requiresLayer() const { return false; } |
| 58 virtual bool isSVGInlineText() const { return true; } | 57 virtual bool isSVGInlineText() const { return true; } |
| 59 | 58 |
| 60 virtual VisiblePosition positionForPoint(const LayoutPoint&); | 59 virtual VisiblePosition positionForPoint(const LayoutPoint&); |
| 61 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); | 60 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e
xtraWidthToEndOfLine = 0); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 79 return static_cast<const RenderSVGInlineText*>(object); | 78 return static_cast<const RenderSVGInlineText*>(object); |
| 80 } | 79 } |
| 81 | 80 |
| 82 // This will catch anyone doing an unnecessary cast. | 81 // This will catch anyone doing an unnecessary cast. |
| 83 void toRenderSVGInlineText(const RenderSVGInlineText*); | 82 void toRenderSVGInlineText(const RenderSVGInlineText*); |
| 84 | 83 |
| 85 } | 84 } |
| 86 | 85 |
| 87 #endif // ENABLE(SVG) | 86 #endif // ENABLE(SVG) |
| 88 #endif // RenderSVGInlineText_h | 87 #endif // RenderSVGInlineText_h |
| OLD | NEW |