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

Unified Diff: Source/core/html/TextMetrics.h

Issue 365653002: Oilpan: move 2D Canvas and WebGL objects to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Smaller adjustments Created 6 years, 5 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: 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)

Powered by Google App Engine
This is Rietveld 408576698