Chromium Code Reviews| Index: Source/core/html/TextMetrics.h |
| diff --git a/Source/core/html/TextMetrics.h b/Source/core/html/TextMetrics.h |
| index 5a98378c357142c53a1ac8a7dc075fe10b8c8b45..efd88ad30585924da80115962e0a80fa2105e8c3 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 WebCore { |
| -class TextMetrics : public RefCounted<TextMetrics>, public ScriptWrappable { |
| +class TextMetrics FINAL : public RefCountedWillBeGarbageCollectedFinalized<TextMetrics>, public ScriptWrappable { |
|
haraken
2014/07/03 04:40:29
Now that ScriptWrappable doesn't need a destructor
sof
2014/07/03 07:25:48
Gone.
|
| 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) |