| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> | 4 * Copyright (C) 2006 Oliver Hunt <ojh16@student.canterbury.ac.nz> |
| 5 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. | 5 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. |
| 6 * (C) 2008 Rob Buis <buis@kde.org> | 6 * (C) 2008 Rob Buis <buis@kde.org> |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #if ENABLE(SVG) | 28 #if ENABLE(SVG) |
| 29 | 29 |
| 30 #include "RenderText.h" | 30 #include "RenderText.h" |
| 31 | 31 |
| 32 namespace WebCore { | 32 namespace WebCore { |
| 33 class RenderSVGInlineText : public RenderText { | 33 class RenderSVGInlineText : public RenderText { |
| 34 public: | 34 public: |
| 35 RenderSVGInlineText(Node*, PassRefPtr<StringImpl>); | 35 RenderSVGInlineText(Node*, PassRefPtr<StringImpl>); |
| 36 virtual const char* renderName() const { return "RenderSVGInlineText"; } | 36 virtual const char* renderName() const { return "RenderSVGInlineText"; } |
| 37 |
| 37 virtual void absoluteRects(Vector<IntRect>& rects, int tx, int ty, bool topL
evel = true); | 38 virtual void absoluteRects(Vector<IntRect>& rects, int tx, int ty, bool topL
evel = true); |
| 39 virtual void absoluteQuads(Vector<FloatQuad>&, bool topLevel = true); |
| 40 |
| 38 virtual bool requiresLayer() { return false; } | 41 virtual bool requiresLayer() { return false; } |
| 39 virtual IntRect selectionRect(bool clipToVisibleContent = true); | 42 virtual IntRect selectionRect(bool clipToVisibleContent = true); |
| 40 virtual bool isSVGText() const { return true; } | 43 virtual bool isSVGText() const { return true; } |
| 41 virtual InlineTextBox* createInlineTextBox(); | 44 virtual InlineTextBox* createInlineTextBox(); |
| 42 | 45 |
| 43 virtual IntRect caretRect(InlineBox*, int caretOffset, int* extraWidthToEndO
fLine = 0); | 46 virtual IntRect caretRect(InlineBox*, int caretOffset, int* extraWidthToEndO
fLine = 0); |
| 44 virtual VisiblePosition positionForCoordinates(int x, int y); | 47 virtual VisiblePosition positionForCoordinates(int x, int y); |
| 45 | 48 |
| 46 virtual void destroy(); | 49 virtual void destroy(); |
| 47 | 50 |
| 48 private: | 51 private: |
| 49 IntRect computeAbsoluteRectForRange(int startPos, int endPos); | 52 IntRect computeAbsoluteRectForRange(int startPos, int endPos); |
| 50 }; | 53 }; |
| 51 | 54 |
| 52 } | 55 } |
| 53 | 56 |
| 54 #endif // ENABLE(SVG) | 57 #endif // ENABLE(SVG) |
| 55 | 58 |
| 56 #endif // !RenderSVGInlineText_h | 59 #endif // !RenderSVGInlineText_h |
| OLD | NEW |