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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGText.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, 8 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/LayoutSVGText.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h
index 9c636c210efc032a195626300176a2a88bb4514c..d009deae4add6fcbf5bc148fb8616d56ed3e59be 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGText.h
@@ -23,13 +23,11 @@
#define LayoutSVGText_h
#include "core/layout/svg/LayoutSVGBlock.h"
-#include "platform/transforms/AffineTransform.h"
namespace blink {
class LayoutSVGInlineText;
class SVGTextElement;
-class SVGTextLayoutAttributes;
class LayoutSVGText final : public LayoutSVGBlock {
public:
@@ -50,7 +48,7 @@ public:
static const LayoutSVGText* locateLayoutSVGTextAncestor(const LayoutObject*);
bool needsReordering() const { return m_needsReordering; }
- Vector<SVGTextLayoutAttributes*>& layoutAttributes() { return m_layoutAttributes; }
+ const Vector<LayoutSVGInlineText*>& descendantTextNodes() const { return m_descendantTextNodes; }
void subtreeChildWasAdded();
void subtreeChildWillBeRemoved();
@@ -85,7 +83,7 @@ private:
bool m_needsPositioningValuesUpdate : 1;
bool m_needsTransformUpdate : 1;
bool m_needsTextMetricsUpdate : 1;
- Vector<SVGTextLayoutAttributes*> m_layoutAttributes;
+ Vector<LayoutSVGInlineText*> m_descendantTextNodes;
};
DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSVGText, isSVGText());

Powered by Google App Engine
This is Rietveld 408576698