Commit bc6ea1c2 authored by zerny@chromium.org's avatar zerny@chromium.org

Remove unneeded destructors and add finalization support to various classes.

Issues reported by the Blink GC clang plugin.

R=haraken@chromium.org
BUG=

Review URL: https://codereview.chromium.org/184853006

git-svn-id: svn://svn.chromium.org/blink/trunk@168568 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 49f88e1f
......@@ -56,7 +56,7 @@ enum CalculationCategory {
CalcOther
};
class CSSCalcExpressionNode : public RefCountedWillBeGarbageCollected<CSSCalcExpressionNode> {
class CSSCalcExpressionNode : public RefCountedWillBeGarbageCollectedFinalized<CSSCalcExpressionNode> {
public:
enum Type {
CssCalcPrimitiveValue = 1,
......
......@@ -35,7 +35,7 @@ namespace WebCore {
class LocalFrame;
class PluginData;
class DOMPluginArray FINAL : public RefCountedWillBeGarbageCollected<DOMPluginArray>, public ScriptWrappable, public DOMWindowProperty {
class DOMPluginArray FINAL : public RefCountedWillBeGarbageCollectedFinalized<DOMPluginArray>, public ScriptWrappable, public DOMWindowProperty {
public:
static PassRefPtrWillBeRawPtr<DOMPluginArray> create(LocalFrame* frame)
{
......
......@@ -35,7 +35,7 @@
namespace WebCore {
class GamepadList : public RefCountedWillBeGarbageCollected<GamepadList>, public ScriptWrappable {
class GamepadList : public RefCountedWillBeGarbageCollectedFinalized<GamepadList>, public ScriptWrappable {
public:
static PassRefPtrWillBeRawPtr<GamepadList> create() { return adoptRefWillBeNoop(new GamepadList); }
~GamepadList();
......
......@@ -37,7 +37,7 @@ namespace WebCore {
// FIXME: oilpan: the platform outer layer (WebSpeechRecognitionResult) depends on
// holding a WebPrivatePtr (a RefPtr) to this result object. When/if such pointers
// can be to GCed objects, we can drop the extra reference counting layer.
class SpeechRecognitionResult : public RefCountedWillBeGarbageCollected<SpeechRecognitionResult>, public ScriptWrappable {
class SpeechRecognitionResult : public RefCountedWillBeGarbageCollectedFinalized<SpeechRecognitionResult>, public ScriptWrappable {
public:
~SpeechRecognitionResult();
static PassRefPtrWillBeRawPtr<SpeechRecognitionResult> create(const WillBeHeapVector<RefPtrWillBeMember<SpeechRecognitionAlternative> >&, bool final);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment