| Index: Source/core/html/TextMetrics.h
|
| diff --git a/Source/core/html/TextMetrics.h b/Source/core/html/TextMetrics.h
|
| index a7c6603b0efa1467dac62888b0861898305b13ef..4f6a34278062be5572118e9baf47978612753a03 100644
|
| --- a/Source/core/html/TextMetrics.h
|
| +++ b/Source/core/html/TextMetrics.h
|
| @@ -27,14 +27,15 @@
|
| #define TextMetrics_h
|
|
|
| #include "bindings/core/v8/ScriptWrappable.h"
|
| +#include "platform/heap/Handle.h"
|
| #include "wtf/PassRefPtr.h"
|
| #include "wtf/RefCounted.h"
|
|
|
| namespace blink {
|
|
|
| -class TextMetrics : public RefCounted<TextMetrics>, public ScriptWrappable {
|
| +class TextMetrics FINAL : public RefCountedWillBeGarbageCollected<TextMetrics>, public ScriptWrappable {
|
| public:
|
| - static PassRefPtr<TextMetrics> create() { return adoptRef(new TextMetrics); }
|
| + static PassRefPtrWillBeRawPtr<TextMetrics> create() { return adoptRefWillBeNoop(new TextMetrics); }
|
|
|
| float width() const { return m_width; }
|
| void setWidth(float w) { m_width = w; }
|
| @@ -72,6 +73,8 @@ public:
|
| float ideographicBaseline() const { return m_ideographicBaseline; }
|
| void setIdeographicBaseline(float ideographicBaseline) { m_ideographicBaseline = ideographicBaseline; }
|
|
|
| + void trace(Visitor*) { }
|
| +
|
| private:
|
| TextMetrics()
|
| : m_width(0)
|
|
|