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

Side by Side Diff: third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h

Issue 1937043002: Remove the LayoutSVGInlineText* context in SVGTextLayoutAttributes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef LineLayoutSVGInlineText_h 5 #ifndef LineLayoutSVGInlineText_h
6 #define LineLayoutSVGInlineText_h 6 #define LineLayoutSVGInlineText_h
7 7
8 #include "core/layout/api/LineLayoutText.h" 8 #include "core/layout/api/LineLayoutText.h"
9 #include "core/layout/svg/LayoutSVGInlineText.h" 9 #include "core/layout/svg/LayoutSVGInlineText.h"
10 10
(...skipping 14 matching lines...) Expand all
25 25
26 explicit LineLayoutSVGInlineText(std::nullptr_t) : LineLayoutText(nullptr) { } 26 explicit LineLayoutSVGInlineText(std::nullptr_t) : LineLayoutText(nullptr) { }
27 27
28 LineLayoutSVGInlineText() { } 28 LineLayoutSVGInlineText() { }
29 29
30 const Vector<SVGTextMetrics>& metricsList() const 30 const Vector<SVGTextMetrics>& metricsList() const
31 { 31 {
32 return toSVGInlineText()->metricsList(); 32 return toSVGInlineText()->metricsList();
33 } 33 }
34 34
35 SVGTextLayoutAttributes& layoutAttributes() 35 SVGCharacterDataMap& characterDataMap()
36 { 36 {
37 return *toSVGInlineText()->layoutAttributes(); 37 return toSVGInlineText()->characterDataMap();
38 } 38 }
39 39
40 bool characterStartsNewTextChunk(int position) const 40 bool characterStartsNewTextChunk(int position) const
41 { 41 {
42 return toSVGInlineText()->characterStartsNewTextChunk(position); 42 return toSVGInlineText()->characterStartsNewTextChunk(position);
43 } 43 }
44 44
45 float scalingFactor() const 45 float scalingFactor() const
46 { 46 {
47 return toSVGInlineText()->scalingFactor(); 47 return toSVGInlineText()->scalingFactor();
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 } 116 }
117 117
118 LineLayoutSVGInlineText m_textLineLayout; 118 LineLayoutSVGInlineText m_textLineLayout;
119 unsigned m_metricsListOffset; 119 unsigned m_metricsListOffset;
120 unsigned m_characterOffset; 120 unsigned m_characterOffset;
121 }; 121 };
122 122
123 } // namespace blink 123 } // namespace blink
124 124
125 #endif // LineLayoutSVGInlineText_h 125 #endif // LineLayoutSVGInlineText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698