-
podivilov@chromium.org authored
Reviewed by Yury Semikhatsky. Web Inspector: fix source mapping for formatted scripts. https://bugs.webkit.org/show_bug.cgi?id=60263 * inspector/debugger/resources/obfuscated.js: (formatted1): (formatted2): * inspector/debugger/script-formatter.html: 2011-05-05 Pavel Podivilov <podivilov@chromium.org> Reviewed by Yury Semikhatsky. Web Inspector: fix source mapping for formatted scripts. https://bugs.webkit.org/show_bug.cgi?id=60263 Source mapping is broken for script chunks that are already formatted at the beginning and at the end of the script (see script-formatter.html). * inspector/front-end/ScriptFormatter.js: (WebInspector.ScriptFormatter.prototype._didFormatContent): (WebInspector.FormattedSourceMapping): (WebInspector.FormattedSourceMapping.prototype.originalToFormatted): (WebInspector.FormattedSourceMapping.prototype.formattedToOriginal): (WebInspector.FormattedSourceMapping.prototype._convertPosition): * inspector/front-end/ScriptFormatterWorker.js: (onmessage): (HTMLScriptFormatter.prototype.format): * inspector/front-end/SourceFile.js: (WebInspector.FormattedSourceFile.prototype._didRequestContent): (WebInspector.SourceMappingForFormattedSourceFile): (WebInspector.SourceMappingForFormattedSourceFile.prototype.scriptLocationToSourceLine): (WebInspector.SourceMappingForFormattedSourceFile.prototype.sourceLineToScriptLocation): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@86443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
f06f4cf6