| Index: Source/core/dom/ScriptLoader.h
|
| diff --git a/Source/core/dom/ScriptLoader.h b/Source/core/dom/ScriptLoader.h
|
| index d657e8316354301cbf3f07a7931d83d635b2c64b..323b5c51451d43c75a577f72c4f225fdeb82745e 100644
|
| --- a/Source/core/dom/ScriptLoader.h
|
| +++ b/Source/core/dom/ScriptLoader.h
|
| @@ -36,10 +36,15 @@ class ScriptLoaderClient;
|
| class ScriptSourceCode;
|
|
|
|
|
| -class ScriptLoader final : private ScriptResourceClient {
|
| +class ScriptLoader final : public NoBaseWillBeGarbageCollectedFinalized<ScriptLoader>, private ScriptResourceClient {
|
| public:
|
| - static PassOwnPtr<ScriptLoader> create(Element*, bool createdByParser, bool isEvaluated);
|
| + static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool createdByParser, bool isEvaluated)
|
| + {
|
| + return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isEvaluated));
|
| + }
|
| +
|
| virtual ~ScriptLoader();
|
| + virtual void trace(Visitor*);
|
|
|
| Element* element() const { return m_element; }
|
|
|
| @@ -109,12 +114,6 @@ private:
|
|
|
| ScriptLoader* toScriptLoaderIfPossible(Element*);
|
|
|
| -inline PassOwnPtr<ScriptLoader> ScriptLoader::create(Element* element, bool createdByParser, bool isEvaluated)
|
| -{
|
| - return adoptPtr(new ScriptLoader(element, createdByParser, isEvaluated));
|
| -}
|
| -
|
| -}
|
| -
|
| +} // namespace blink
|
|
|
| -#endif
|
| +#endif // ScriptLoader_h
|
|
|