Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(421)

Side by Side Diff: Source/core/rendering/svg/SVGInlineTextBox.h

Issue 15183002: Clear SVGInlineTextBox fragments when the text changes. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed unused files. Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « LayoutTests/svg/custom/unicode-in-tspan-multi-svg-crash-expected.txt ('k') | Source/core/rendering/svg/SVGInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698