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

Side by Side Diff: Source/core/layout/svg/SVGTextMetrics.h

Issue 1155683005: Drop unused argument from one of the SVGTextMetrics constructors (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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
« no previous file with comments | « no previous file | Source/core/layout/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved. 2 * Copyright (C) Research In Motion Limited 2010-2012. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 17 matching lines...) Expand all
28 class TextRun; 28 class TextRun;
29 29
30 class SVGTextMetrics { 30 class SVGTextMetrics {
31 public: 31 public:
32 enum MetricsType { 32 enum MetricsType {
33 SkippedSpaceMetrics 33 SkippedSpaceMetrics
34 }; 34 };
35 35
36 SVGTextMetrics(); 36 SVGTextMetrics();
37 SVGTextMetrics(MetricsType); 37 SVGTextMetrics(MetricsType);
38 SVGTextMetrics(LayoutSVGInlineText*, unsigned position, unsigned length, flo at width); 38 SVGTextMetrics(LayoutSVGInlineText*, unsigned length, float width);
39 39
40 static SVGTextMetrics measureCharacterRange(LayoutSVGInlineText*, unsigned p osition, unsigned length, TextDirection); 40 static SVGTextMetrics measureCharacterRange(LayoutSVGInlineText*, unsigned p osition, unsigned length, TextDirection);
41 static TextRun constructTextRun(LayoutSVGInlineText*, unsigned position, uns igned length, TextDirection); 41 static TextRun constructTextRun(LayoutSVGInlineText*, unsigned position, uns igned length, TextDirection);
42 42
43 bool isEmpty() const { return !m_width && !m_height && m_length <= 1; } 43 bool isEmpty() const { return !m_width && !m_height && m_length <= 1; }
44 44
45 float width() const { return m_width; } 45 float width() const { return m_width; }
46 void setWidth(float width) { m_width = width; } 46 void setWidth(float width) { m_width = width; }
47 47
48 float height() const { return m_height; } 48 float height() const { return m_height; }
49 unsigned length() const { return m_length; } 49 unsigned length() const { return m_length; }
50 50
51 private: 51 private:
52 SVGTextMetrics(LayoutSVGInlineText*, const TextRun&); 52 SVGTextMetrics(LayoutSVGInlineText*, const TextRun&);
53 53
54 float m_width; 54 float m_width;
55 float m_height; 55 float m_height;
56 unsigned m_length; 56 unsigned m_length;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif 61 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/layout/svg/SVGTextMetrics.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698