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

Unified Diff: Source/core/svg/SVGTextContentElement.h

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased upto r185213 Created 6 years, 1 month 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 | « Source/core/svg/SVGTests.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGTextContentElement.h
diff --git a/Source/core/svg/SVGTextContentElement.h b/Source/core/svg/SVGTextContentElement.h
index 1c0b945d7b8aaf1ebb2caf7ac630490c72202243..d7143cd98c6af57c94584a811f97a0bbff8c9d66 100644
--- a/Source/core/svg/SVGTextContentElement.h
+++ b/Source/core/svg/SVGTextContentElement.h
@@ -26,6 +26,7 @@
#include "core/svg/SVGAnimatedLength.h"
#include "core/svg/SVGGraphicsElement.h"
#include "core/svg/SVGPointTearOff.h"
+#include "platform/heap/Handle.h"
namespace blink {
@@ -51,11 +52,11 @@ public:
unsigned getNumberOfChars();
float getComputedTextLength();
float getSubStringLength(unsigned charnum, unsigned nchars, ExceptionState&);
- PassRefPtr<SVGPointTearOff> getStartPositionOfChar(unsigned charnum, ExceptionState&);
- PassRefPtr<SVGPointTearOff> getEndPositionOfChar(unsigned charnum, ExceptionState&);
- PassRefPtr<SVGRectTearOff> getExtentOfChar(unsigned charnum, ExceptionState&);
+ PassRefPtrWillBeRawPtr<SVGPointTearOff> getStartPositionOfChar(unsigned charnum, ExceptionState&);
+ PassRefPtrWillBeRawPtr<SVGPointTearOff> getEndPositionOfChar(unsigned charnum, ExceptionState&);
+ PassRefPtrWillBeRawPtr<SVGRectTearOff> getExtentOfChar(unsigned charnum, ExceptionState&);
float getRotationOfChar(unsigned charnum, ExceptionState&);
- int getCharNumAtPosition(PassRefPtr<SVGPointTearOff>, ExceptionState&);
+ int getCharNumAtPosition(PassRefPtrWillBeRawPtr<SVGPointTearOff>, ExceptionState&);
void selectSubString(unsigned charnum, unsigned nchars, ExceptionState&);
static SVGTextContentElement* elementFromRenderer(RenderObject*);
@@ -64,6 +65,8 @@ public:
bool textLengthIsSpecifiedByUser() { return m_textLengthIsSpecifiedByUser; }
SVGAnimatedEnumeration<SVGLengthAdjustType>* lengthAdjust() { return m_lengthAdjust.get(); }
+ virtual void trace(Visitor*) override;
+
protected:
SVGTextContentElement(const QualifiedName&, Document&);
@@ -78,9 +81,9 @@ protected:
private:
virtual bool isTextContent() const override final { return true; }
- RefPtr<SVGAnimatedLength> m_textLength;
+ RefPtrWillBeMember<SVGAnimatedLength> m_textLength;
bool m_textLengthIsSpecifiedByUser;
- RefPtr<SVGAnimatedEnumeration<SVGLengthAdjustType> > m_lengthAdjust;
+ RefPtrWillBeMember<SVGAnimatedEnumeration<SVGLengthAdjustType> > m_lengthAdjust;
};
inline bool isSVGTextContentElement(const SVGElement& element)
« no previous file with comments | « Source/core/svg/SVGTests.cpp ('k') | Source/core/svg/SVGTextContentElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698