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

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

Issue 1844723003: Move metrics list storage to LayoutSVGInlineText (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h
diff --git a/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h b/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h
index 9137952df02f93894e23c7a18522424531705b4b..f67f3d21d0adc3788d96ca0f4509fc86b1740759 100644
--- a/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h
+++ b/third_party/WebKit/Source/core/layout/api/LineLayoutSVGInlineText.h
@@ -27,9 +27,9 @@ public:
LineLayoutSVGInlineText() { }
- SVGTextLayoutAttributes* layoutAttributes() const
+ const Vector<SVGTextMetrics>& metricsList() const
{
- return const_cast<SVGTextLayoutAttributes*>(toSVGInlineText()->layoutAttributes());
+ return toSVGInlineText()->metricsList();
}
bool characterStartsNewTextChunk(int position) const
@@ -47,7 +47,6 @@ public:
return toSVGInlineText()->scaledFont();
}
-
private:
LayoutSVGInlineText* toSVGInlineText()
{
@@ -98,7 +97,7 @@ public:
ASSERT(m_textLineLayout && m_metricsListOffset < metricsList().size());
return metricsList()[m_metricsListOffset];
}
- const Vector<SVGTextMetrics>& metricsList() const { return m_textLineLayout.layoutAttributes()->textMetricsValues(); }
+ const Vector<SVGTextMetrics>& metricsList() const { return m_textLineLayout.metricsList(); }
unsigned metricsListOffset() const { return m_metricsListOffset; }
unsigned characterOffset() const { return m_characterOffset; }
bool isAtEnd() const { return m_metricsListOffset == metricsList().size(); }
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698