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

Side by Side Diff: Source/core/html/parser/HTMLScriptRunner.h

Issue 1117973004: Have HTMLScriptRunner's list of scripts use a transition type. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix HTMLScriptRunner tracing Created 5 years, 7 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
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLScriptRunner.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) 2010 Google, Inc. All Rights Reserved. 2 * Copyright (C) 2010 Google, Inc. All Rights Reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 void runScript(Element*, const TextPosition& scriptStartPosition); 81 void runScript(Element*, const TextPosition& scriptStartPosition);
82 82
83 bool isPendingScriptReady(const PendingScript&); 83 bool isPendingScriptReady(const PendingScript&);
84 84
85 void stopWatchingResourceForLoad(Resource*); 85 void stopWatchingResourceForLoad(Resource*);
86 86
87 RawPtrWillBeMember<Document> m_document; 87 RawPtrWillBeMember<Document> m_document;
88 RawPtrWillBeMember<HTMLScriptRunnerHost> m_host; 88 RawPtrWillBeMember<HTMLScriptRunnerHost> m_host;
89 PendingScript m_parserBlockingScript; 89 PendingScript m_parserBlockingScript;
90 HeapDeque<PendingScript> m_scriptsToExecuteAfterParsing; // http://www.whatw g.org/specs/web-apps/current-work/#list-of-scripts-that-will-execute-when-the-do cument-has-finished-parsing 90 // http://www.whatwg.org/specs/web-apps/current-work/#list-of-scripts-that-w ill-execute-when-the-document-has-finished-parsing
91 WillBeHeapDeque<PendingScript> m_scriptsToExecuteAfterParsing;
91 unsigned m_scriptNestingLevel; 92 unsigned m_scriptNestingLevel;
92 93
93 // We only want stylesheet loads to trigger script execution if script 94 // We only want stylesheet loads to trigger script execution if script
94 // execution is currently stopped due to stylesheet loads, otherwise we'd 95 // execution is currently stopped due to stylesheet loads, otherwise we'd
95 // cause nested script execution when parsing <style> tags since </style> 96 // cause nested script execution when parsing <style> tags since </style>
96 // tags can cause Document to call executeScriptsWaitingForResources. 97 // tags can cause Document to call executeScriptsWaitingForResources.
97 bool m_hasScriptsWaitingForResources; 98 bool m_hasScriptsWaitingForResources;
98 99
99 // For tracking the times between script load and compilation, we need to 100 // For tracking the times between script load and compilation, we need to
100 // know whether a parser blocking script was loaded previously, or whether 101 // know whether a parser blocking script was loaded previously, or whether
101 // it's really loaded when requested. 102 // it's really loaded when requested.
102 bool m_parserBlockingScriptAlreadyLoaded; 103 bool m_parserBlockingScriptAlreadyLoaded;
103 }; 104 };
104 105
105 } 106 }
106 107
107 #endif 108 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/parser/HTMLScriptRunner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698