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

Side by Side Diff: Source/core/html/HTMLScriptElement.h

Issue 660233002: Oilpan: move ScriptLoader to the heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: No detachment of ScriptLoaders when finalizing ScriptRunner Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
5 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 5 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 28 matching lines...) Expand all
39 String text() { return textFromChildren(); } 39 String text() { return textFromChildren(); }
40 void setText(const String&); 40 void setText(const String&);
41 41
42 KURL src() const; 42 KURL src() const;
43 43
44 void setAsync(bool); 44 void setAsync(bool);
45 bool async() const; 45 bool async() const;
46 46
47 ScriptLoader* loader() const { return m_loader.get(); } 47 ScriptLoader* loader() const { return m_loader.get(); }
48 48
49 virtual void trace(Visitor*) override;
50
49 private: 51 private:
50 HTMLScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted); 52 HTMLScriptElement(Document&, bool wasInsertedByParser, bool alreadyStarted);
51 53
52 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide; 54 virtual void parseAttribute(const QualifiedName&, const AtomicString&) overr ide;
53 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o ldValue, const AtomicString& newValue) override; 55 virtual void attributeWillChange(const QualifiedName&, const AtomicString& o ldValue, const AtomicString& newValue) override;
54 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override; 56 virtual InsertionNotificationRequest insertedInto(ContainerNode*) override;
55 virtual void didNotifySubtreeInsertionsToDocument() override; 57 virtual void didNotifySubtreeInsertionsToDocument() override;
56 virtual void childrenChanged(const ChildrenChange&) override; 58 virtual void childrenChanged(const ChildrenChange&) override;
57 virtual void didMoveToNewDocument(Document& oldDocument) override; 59 virtual void didMoveToNewDocument(Document& oldDocument) override;
58 60
59 virtual bool isURLAttribute(const Attribute&) const override; 61 virtual bool isURLAttribute(const Attribute&) const override;
60 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override; 62 virtual bool hasLegalLinkAttribute(const QualifiedName&) const override;
61 virtual const QualifiedName& subResourceAttributeName() const override; 63 virtual const QualifiedName& subResourceAttributeName() const override;
62 64
63 virtual String sourceAttributeValue() const override; 65 virtual String sourceAttributeValue() const override;
64 virtual String charsetAttributeValue() const override; 66 virtual String charsetAttributeValue() const override;
65 virtual String typeAttributeValue() const override; 67 virtual String typeAttributeValue() const override;
66 virtual String languageAttributeValue() const override; 68 virtual String languageAttributeValue() const override;
67 virtual String forAttributeValue() const override; 69 virtual String forAttributeValue() const override;
68 virtual String eventAttributeValue() const override; 70 virtual String eventAttributeValue() const override;
69 virtual bool asyncAttributeValue() const override; 71 virtual bool asyncAttributeValue() const override;
70 virtual bool deferAttributeValue() const override; 72 virtual bool deferAttributeValue() const override;
71 virtual bool hasSourceAttribute() const override; 73 virtual bool hasSourceAttribute() const override;
72 74
73 virtual void dispatchLoadEvent() override; 75 virtual void dispatchLoadEvent() override;
74 76
75 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil dren() override; 77 virtual PassRefPtrWillBeRawPtr<Element> cloneElementWithoutAttributesAndChil dren() override;
76 78
77 OwnPtr<ScriptLoader> m_loader; 79 OwnPtrWillBeMember<ScriptLoader> m_loader;
78 }; 80 };
79 81
80 } // namespace blink 82 } // namespace blink
81 83
82 #endif // HTMLScriptElement_h 84 #endif // HTMLScriptElement_h
OLDNEW
« no previous file with comments | « Source/core/dom/ScriptRunner.cpp ('k') | Source/core/html/HTMLScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698