| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> | 2 * Copyright (C) 2007 Rob Buis <buis@kde.org> |
| 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> | 3 * Copyright (C) 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2010. All rights reserved. |
| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 virtual LayoutRect localSelectionRect(int startPosition, int endPosition); | 50 virtual LayoutRect localSelectionRect(int startPosition, int endPosition); |
| 51 | 51 |
| 52 bool mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment&, int
& startPosition, int& endPosition) const; | 52 bool mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment&, int
& startPosition, int& endPosition) const; |
| 53 | 53 |
| 54 virtual FloatRect calculateBoundaries() const; | 54 virtual FloatRect calculateBoundaries() const; |
| 55 | 55 |
| 56 void clearTextFragments() { m_textFragments.clear(); } | 56 void clearTextFragments() { m_textFragments.clear(); } |
| 57 Vector<SVGTextFragment>& textFragments() { return m_textFragments; } | 57 Vector<SVGTextFragment>& textFragments() { return m_textFragments; } |
| 58 const Vector<SVGTextFragment>& textFragments() const { return m_textFragment
s; } | 58 const Vector<SVGTextFragment>& textFragments() const { return m_textFragment
s; } |
| 59 | 59 |
| 60 virtual void dirtyLineBoxes() OVERRIDE; | 60 virtual void dirtyLineBoxes() OVERRIDE FINAL; |
| 61 | 61 |
| 62 bool startsNewTextChunk() const { return m_startsNewTextChunk; } | 62 bool startsNewTextChunk() const { return m_startsNewTextChunk; } |
| 63 void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTe
xtChunk; } | 63 void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTe
xtChunk; } |
| 64 | 64 |
| 65 int offsetForPositionInFragment(const SVGTextFragment&, float position, bool
includePartialGlyphs) const; | 65 int offsetForPositionInFragment(const SVGTextFragment&, float position, bool
includePartialGlyphs) const; |
| 66 FloatRect selectionRectForTextFragment(const SVGTextFragment&, int fragmentS
tartPosition, int fragmentEndPosition, RenderStyle*); | 66 FloatRect selectionRectForTextFragment(const SVGTextFragment&, int fragmentS
tartPosition, int fragmentEndPosition, RenderStyle*); |
| 67 | 67 |
| 68 private: | 68 private: |
| 69 TextRun constructTextRun(RenderStyle*, const SVGTextFragment&) const; | 69 TextRun constructTextRun(RenderStyle*, const SVGTextFragment&) const; |
| 70 | 70 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 86 unsigned m_paintingResourceMode : 4; | 86 unsigned m_paintingResourceMode : 4; |
| 87 unsigned m_startsNewTextChunk : 1; | 87 unsigned m_startsNewTextChunk : 1; |
| 88 RenderSVGResource* m_paintingResource; | 88 RenderSVGResource* m_paintingResource; |
| 89 Vector<SVGTextFragment> m_textFragments; | 89 Vector<SVGTextFragment> m_textFragments; |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 } // namespace WebCore | 92 } // namespace WebCore |
| 93 | 93 |
| 94 #endif | 94 #endif |
| 95 #endif // SVGInlineTextBox_h | 95 #endif // SVGInlineTextBox_h |
| OLD | NEW |