Index: Source/core/html/TextMetrics.h |
diff --git a/Source/core/html/TextMetrics.h b/Source/core/html/TextMetrics.h |
index 05809623faf33f152bf704ef223935c0d149b8db..fc1ed32dc66622286acd37396c339a9931ea1bda 100644 |
--- a/Source/core/html/TextMetrics.h |
+++ b/Source/core/html/TextMetrics.h |
@@ -29,15 +29,16 @@ |
#include "bindings/core/v8/ScriptWrappable.h" |
#include "core/CoreExport.h" |
#include "platform/heap/Handle.h" |
-#include "wtf/PassRefPtr.h" |
-#include "wtf/RefCounted.h" |
namespace blink { |
-class CORE_EXPORT TextMetrics final : public RefCountedWillBeGarbageCollected<TextMetrics>, public ScriptWrappable { |
+class CORE_EXPORT TextMetrics final : public GarbageCollected<TextMetrics>, public ScriptWrappable { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
- static PassRefPtrWillBeRawPtr<TextMetrics> create() { return adoptRefWillBeNoop(new TextMetrics); } |
+ static TextMetrics* create() |
+ { |
+ return new TextMetrics; |
+ } |
float width() const { return m_width; } |
void setWidth(float w) { m_width = w; } |