Changeset 191135 in webkit for trunk/Source/JavaScriptCore/ChangeLog
- Timestamp:
- Oct 15, 2015, 1:50:02 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r191134 r191135 1 2015-10-15 Joseph Pecoraro <[email protected]> 2 3 Web Inspector: JavaScriptCore should parse sourceURL and sourceMappingURL directives 4 https://bugs.webkit.org/show_bug.cgi?id=150096 5 6 Reviewed by Geoffrey Garen. 7 8 * inspector/ContentSearchUtilities.cpp: 9 (Inspector::ContentSearchUtilities::scriptCommentPattern): Deleted. 10 (Inspector::ContentSearchUtilities::findScriptSourceURL): Deleted. 11 (Inspector::ContentSearchUtilities::findScriptSourceMapURL): Deleted. 12 * inspector/ContentSearchUtilities.h: 13 No longer need to search script content. 14 15 * inspector/ScriptDebugServer.cpp: 16 (Inspector::ScriptDebugServer::dispatchDidParseSource): 17 Carry over the sourceURL and sourceMappingURL from the SourceProvider. 18 19 * inspector/agents/InspectorDebuggerAgent.cpp: 20 (Inspector::InspectorDebuggerAgent::sourceMapURLForScript): 21 (Inspector::InspectorDebuggerAgent::didParseSource): 22 No longer do content searching. 23 24 * parser/Lexer.cpp: 25 (JSC::Lexer<T>::setCode): 26 (JSC::Lexer<T>::skipWhitespace): 27 (JSC::Lexer<T>::parseCommentDirective): 28 (JSC::Lexer<T>::parseCommentDirectiveValue): 29 (JSC::Lexer<T>::consume): 30 (JSC::Lexer<T>::lex): 31 * parser/Lexer.h: 32 (JSC::Lexer::sourceURL): 33 (JSC::Lexer::sourceMappingURL): 34 (JSC::Lexer::sourceProvider): Deleted. 35 Give lexer the ability to detect script comment directives. 36 This just consumes characters in single line comments and 37 ultimately sets the sourceURL or sourceMappingURL found. 38 39 * parser/Parser.h: 40 (JSC::Parser<LexerType>::parse): 41 * parser/SourceProvider.h: 42 (JSC::SourceProvider::url): 43 (JSC::SourceProvider::sourceURL): 44 (JSC::SourceProvider::sourceMappingURL): 45 (JSC::SourceProvider::setSourceURL): 46 (JSC::SourceProvider::setSourceMappingURL): 47 After parsing a script, update the Source Provider with the 48 value of directives that may have been found in the script. 49 1 50 2015-10-15 Filip Pizlo <[email protected]> 2 51
Note:
See TracChangeset
for help on using the changeset viewer.