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

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

Issue 184023003: Make InlineBox::renderer() and related subclass methods return reference. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No reference reassignment. Created 6 years, 9 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
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 14 matching lines...) Expand all
25 #include "core/rendering/InlineTextBox.h" 25 #include "core/rendering/InlineTextBox.h"
26 #include "core/rendering/svg/SVGTextLayoutEngine.h" 26 #include "core/rendering/svg/SVGTextLayoutEngine.h"
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 OVERRIDE { return true; } 37 virtual bool isSVGInlineTextBox() const OVERRIDE { return true; }
38 38
39 virtual float virtualLogicalHeight() const OVERRIDE { 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 OVERRIDE; 42 virtual int offsetForPosition(float x, bool includePartialGlyphs = true) con st OVERRIDE;
43 virtual float positionForOffset(int offset) const OVERRIDE; 43 virtual float positionForOffset(int offset) const OVERRIDE;
44 44
45 void paintSelectionBackground(PaintInfo&); 45 void paintSelectionBackground(PaintInfo&);
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox); 92 DEFINE_INLINE_BOX_TYPE_CASTS(SVGInlineTextBox);
93 93
94 } // namespace WebCore 94 } // namespace WebCore
95 95
96 #endif // SVGInlineTextBox_h 96 #endif // SVGInlineTextBox_h
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/SVGInlineFlowBox.cpp ('k') | Source/core/rendering/svg/SVGInlineTextBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698