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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.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
Index: third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h
index 5084e1ec4f999da4aa606f461781f81c79478dbe..112b3f041ee2681dec4d733e96564371398257b8 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGInlineText.h
@@ -24,6 +24,8 @@
#include "core/layout/LayoutText.h"
#include "core/layout/svg/SVGTextLayoutAttributes.h"
+#include "core/layout/svg/SVGTextMetrics.h"
+#include "wtf/Vector.h"
namespace blink {
@@ -35,6 +37,9 @@ public:
SVGTextLayoutAttributes* layoutAttributes() { return &m_layoutAttributes; }
const SVGTextLayoutAttributes* layoutAttributes() const { return &m_layoutAttributes; }
+ Vector<SVGTextMetrics>& metricsList() { return m_metrics; }
+ const Vector<SVGTextMetrics>& metricsList() const { return m_metrics; }
+
float scalingFactor() const { return m_scalingFactor; }
const Font& scaledFont() const { return m_scaledFont; }
void updateScaledFont();
@@ -66,6 +71,7 @@ private:
float m_scalingFactor;
Font m_scaledFont;
SVGTextLayoutAttributes m_layoutAttributes;
+ Vector<SVGTextMetrics> m_metrics;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGInlineText, isSVGInlineText());

Powered by Google App Engine
This is Rietveld 408576698