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

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

Issue 2145863003: Cleanup: remove unused compilationFinishTime + fix a comment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 DECLARE_VIRTUAL_TRACE(); 48 DECLARE_VIRTUAL_TRACE();
49 49
50 Element* element() const { return m_element; } 50 Element* element() const { return m_element; }
51 51
52 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI nTypeAttribute }; 52 enum LegacyTypeSupport { DisallowLegacyTypeInTypeAttribute, AllowLegacyTypeI nTypeAttribute };
53 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute); 53 bool prepareScript(const TextPosition& scriptStartPosition = TextPosition::m inimumPosition(), LegacyTypeSupport = DisallowLegacyTypeInTypeAttribute);
54 54
55 String scriptCharset() const { return m_characterEncoding; } 55 String scriptCharset() const { return m_characterEncoding; }
56 String scriptContent() const; 56 String scriptContent() const;
57 // Returns false if and only if execution was blocked. 57 // Returns false if and only if execution was blocked.
58 bool executeScript(const ScriptSourceCode&, double* compilationFinishTime = 0); 58 bool executeScript(const ScriptSourceCode&);
59 virtual void execute(); 59 virtual void execute();
60 60
61 // XML parser calls these 61 // XML parser calls these
62 void dispatchLoadEvent(); 62 void dispatchLoadEvent();
63 void dispatchErrorEvent(); 63 void dispatchErrorEvent();
64 bool isScriptTypeSupported(LegacyTypeSupport) const; 64 bool isScriptTypeSupported(LegacyTypeSupport) const;
65 65
66 bool haveFiredLoadEvent() const { return m_haveFiredLoad; } 66 bool haveFiredLoadEvent() const { return m_haveFiredLoad; }
67 bool willBeParserExecuted() const { return m_willBeParserExecuted; } 67 bool willBeParserExecuted() const { return m_willBeParserExecuted; }
68 bool readyToBeParserExecuted() const { return m_readyToBeParserExecuted; } 68 bool readyToBeParserExecuted() const { return m_readyToBeParserExecuted; }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 const bool m_createdDuringDocumentWrite : 1; 122 const bool m_createdDuringDocumentWrite : 1;
123 123
124 Member<PendingScript> m_pendingScript; 124 Member<PendingScript> m_pendingScript;
125 }; 125 };
126 126
127 ScriptLoader* toScriptLoaderIfPossible(Element*); 127 ScriptLoader* toScriptLoaderIfPossible(Element*);
128 128
129 } // namespace blink 129 } // namespace blink
130 130
131 #endif // ScriptLoader_h 131 #endif // ScriptLoader_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ScriptController.cpp ('k') | third_party/WebKit/Source/core/dom/ScriptLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698