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

Side by Side Diff: Source/core/dom/ScriptLoader.h

Issue 947393002: InlinedVisitor: Migrate dom to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2008 Nikolas Zimmermann <zimmermann@kde.org>
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 26 matching lines...) Expand all
37 37
38 38
39 class ScriptLoader final : public NoBaseWillBeGarbageCollectedFinalized<ScriptLo ader>, private ScriptResourceClient { 39 class ScriptLoader final : public NoBaseWillBeGarbageCollectedFinalized<ScriptLo ader>, private ScriptResourceClient {
40 public: 40 public:
41 static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool cr eatedByParser, bool isEvaluated) 41 static PassOwnPtrWillBeRawPtr<ScriptLoader> create(Element* element, bool cr eatedByParser, bool isEvaluated)
42 { 42 {
43 return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isE valuated)); 43 return adoptPtrWillBeNoop(new ScriptLoader(element, createdByParser, isE valuated));
44 } 44 }
45 45
46 virtual ~ScriptLoader(); 46 virtual ~ScriptLoader();
47 virtual void trace(Visitor*); 47 DECLARE_VIRTUAL_TRACE();
48 48
49 Element* element() const { return m_element; } 49 Element* element() const { return m_element; }
50 50
51 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI nTypeAttribute }; 51 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI nTypeAttribute };
52 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute); 52 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute);
53 53
54 String scriptCharset() const { return m_characterEncoding; } 54 String scriptCharset() const { return m_characterEncoding; }
55 String scriptContent() const; 55 String scriptContent() const;
56 void executeScript(const ScriptSourceCode&, double* compilationFinishTime = 0); 56 void executeScript(const ScriptSourceCode&, double* compilationFinishTime = 0);
57 void execute(); 57 void execute();
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 bool m_willExecuteWhenDocumentFinishedParsing : 1; 113 bool m_willExecuteWhenDocumentFinishedParsing : 1;
114 bool m_forceAsync : 1; 114 bool m_forceAsync : 1;
115 bool m_willExecuteInOrder : 1; 115 bool m_willExecuteInOrder : 1;
116 }; 116 };
117 117
118 ScriptLoader* toScriptLoaderIfPossible(Element*); 118 ScriptLoader* toScriptLoaderIfPossible(Element*);
119 119
120 } // namespace blink 120 } // namespace blink
121 121
122 #endif // ScriptLoader_h 122 #endif // ScriptLoader_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698