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

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

Issue 135563002: Update remaining rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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 16 matching lines...) Expand all
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 class RenderSVGResource; 30 class RenderSVGResource;
31 class SVGRootInlineBox; 31 class SVGRootInlineBox;
32 32
33 class SVGInlineTextBox FINAL : public InlineTextBox { 33 class SVGInlineTextBox FINAL : public InlineTextBox {
34 public: 34 public:
35 SVGInlineTextBox(RenderObject*); 35 SVGInlineTextBox(RenderObject*);
36 36
37 virtual bool isSVGInlineTextBox() const { return true; } 37 virtual bool isSVGInlineTextBox() const OVERRIDE { return true; }
38 38
39 virtual float virtualLogicalHeight() const { return m_logicalHeight; } 39 virtual float virtualLogicalHeight() const OVERRIDE { return m_logicalHeight ; }
40 void setLogicalHeight(float height) { m_logicalHeight = height; } 40 void setLogicalHeight(float height) { m_logicalHeight = height; }
41 41
42 virtual int offsetForPosition(float x, bool includePartialGlyphs = true) con st; 42 virtual int offsetForPosition(float x, bool includePartialGlyphs = true) con st OVERRIDE;
43 virtual float positionForOffset(int offset) const; 43 virtual float positionForOffset(int offset) const OVERRIDE;
44 44
45 void paintSelectionBackground(PaintInfo&); 45 void paintSelectionBackground(PaintInfo&);
46 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom); 46 virtual void paint(PaintInfo&, const LayoutPoint&, LayoutUnit lineTop, Layou tUnit lineBottom) OVERRIDE;
47 virtual LayoutRect localSelectionRect(int startPosition, int endPosition); 47 virtual LayoutRect localSelectionRect(int startPosition, int endPosition) OV ERRIDE;
48 48
49 bool mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment&, int & startPosition, int& endPosition) const; 49 bool mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment&, int & startPosition, int& endPosition) const;
50 50
51 virtual FloatRect calculateBoundaries() const; 51 virtual FloatRect calculateBoundaries() const OVERRIDE;
52 52
53 void clearTextFragments() { m_textFragments.clear(); } 53 void clearTextFragments() { m_textFragments.clear(); }
54 Vector<SVGTextFragment>& textFragments() { return m_textFragments; } 54 Vector<SVGTextFragment>& textFragments() { return m_textFragments; }
55 const Vector<SVGTextFragment>& textFragments() const { return m_textFragment s; } 55 const Vector<SVGTextFragment>& textFragments() const { return m_textFragment s; }
56 56
57 virtual void dirtyLineBoxes() OVERRIDE FINAL; 57 virtual void dirtyLineBoxes() OVERRIDE;
58 58
59 bool startsNewTextChunk() const { return m_startsNewTextChunk; } 59 bool startsNewTextChunk() const { return m_startsNewTextChunk; }
60 void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTe xtChunk; } 60 void setStartsNewTextChunk(bool newTextChunk) { m_startsNewTextChunk = newTe xtChunk; }
61 61
62 int offsetForPositionInFragment(const SVGTextFragment&, float position, bool includePartialGlyphs) const; 62 int offsetForPositionInFragment(const SVGTextFragment&, float position, bool includePartialGlyphs) const;
63 FloatRect selectionRectForTextFragment(const SVGTextFragment&, int fragmentS tartPosition, int fragmentEndPosition, RenderStyle*); 63 FloatRect selectionRectForTextFragment(const SVGTextFragment&, int fragmentS tartPosition, int fragmentEndPosition, RenderStyle*);
64 64
65 private: 65 private:
66 TextRun constructTextRun(RenderStyle*, const SVGTextFragment&) const; 66 TextRun constructTextRun(RenderStyle*, const SVGTextFragment&) const;
67 67
(...skipping 16 matching lines...) Expand all
84 unsigned m_startsNewTextChunk : 1; 84 unsigned m_startsNewTextChunk : 1;
85 RenderSVGResource* m_paintingResource; 85 RenderSVGResource* m_paintingResource;
86 Vector<SVGTextFragment> m_textFragments; 86 Vector<SVGTextFragment> m_textFragments;
87 }; 87 };
88 88
89 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox); 89 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox);
90 90
91 } // namespace WebCore 91 } // namespace WebCore
92 92
93 #endif // SVGInlineTextBox_h 93 #endif // SVGInlineTextBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGInlineFlowBox.h ('k') | Source/core/rendering/svg/SVGRootInlineBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698