Skip to content
  • vsevik@chromium.org's avatar
    Web Inspector: Move workspace specific code from FileMapping to workspace. · 66f53fe9
    vsevik@chromium.org authored
    https://bugs.webkit.org/show_bug.cgi?id=110219
    
    Reviewed by Pavel Feldman.
    
    Source/WebCore:
    
    Extracted workspace specific code from FileMapping to Workspace.
    This allows to reduce usage of uri and eventually make UISourceCode.path an array of path segments.
    
    Test: inspector/workspace-mapping.html
    
    * inspector/front-end/CSSStyleModel.js:
    (WebInspector.CSSStyleModel.prototype.rawLocationToUILocation):
    * inspector/front-end/CompilerScriptMapping.js:
    (WebInspector.CompilerScriptMapping.prototype.rawLocationToUILocation):
    (WebInspector.CompilerScriptMapping.prototype.get addScript.get this):
    (WebInspector.CompilerScriptMapping.prototype.get addScript):
    * inspector/front-end/FileMapping.js:
    (WebInspector.FileMapping):
    (WebInspector.FileMapping.prototype.mappingEntryForURL):
    (WebInspector.FileMapping.prototype.mappingEntryForPath):
    * inspector/front-end/FileSystemMapping.js:
    (WebInspector.FileSystemMapping.prototype.fileSystemPathForPrefix):
    (WebInspector.FileSystemMappingImpl.prototype.addFileSystemMapping):
    (WebInspector.FileSystemMappingImpl.prototype.removeFileSystemMapping):
    (WebInspector.FileSystemMappingImpl.prototype.fileSystemPathForPrefix):
    * inspector/front-end/FileSystemProjectDelegate.js:
    (WebInspector.FileSystemProjectDelegate):
    (WebInspector.FileSystemProjectDelegate.prototype.populate.filesLoaded):
    (WebInspector.FileSystemProjectDelegate.prototype.populate):
    (WebInspector.FileSystemWorkspaceProvider):
    (WebInspector.FileSystemWorkspaceProvider.prototype._fileSystemAdded):
    * inspector/front-end/IsolatedFileSystemManager.js:
    (WebInspector.IsolatedFileSystemManager):
    * inspector/front-end/NetworkUISourceCodeProvider.js:
    (WebInspector.NetworkUISourceCodeProvider):
    (WebInspector.NetworkUISourceCodeProvider.prototype._addFile):
    * inspector/front-end/ResourceScriptMapping.js:
    (WebInspector.ResourceScriptMapping.prototype._workspaceUISourceCodeForScript):
    * inspector/front-end/ResourceUtils.js:
    (WebInspector.displayNameForURL):
    * inspector/front-end/SASSSourceMapping.js:
    (WebInspector.SASSSourceMapping.prototype._reloadCSS):
    (WebInspector.SASSSourceMapping.prototype._bindUISourceCode):
    (WebInspector.SASSSourceMapping.prototype.rawLocationToUILocation):
    * inspector/front-end/ScriptsPanel.js:
    (WebInspector.ScriptsPanel.prototype.canShowAnchorLocation):
    * inspector/front-end/SimpleWorkspaceProvider.js:
    (WebInspector.SimpleWorkspaceProvider.pathForSplittedURL):
    (WebInspector.SimpleWorkspaceProvider.prototype._innerAddFileForURL):
    * inspector/front-end/StylesSourceMapping.js:
    (WebInspector.StylesSourceMapping.prototype.rawLocationToUILocation):
    (WebInspector.StylesSourceMapping.prototype._resourceAdded):
    (WebInspector.StylesSourceMapping.prototype._mainFrameCreatedOrNavigated):
    (WebInspector.StyleContentBinding):
    (WebInspector.StyleContentBinding.prototype._innerStyleSheetChanged):
    * inspector/front-end/Workspace.js:
    (WebInspector.Workspace):
    (WebInspector.Workspace.prototype.hasMappingForURL):
    (WebInspector.Workspace.prototype._fileSystemPathForEntry):
    (WebInspector.Workspace.prototype.uiSourceCodeForURL):
    (WebInspector.Workspace.prototype.urlForPath):
    * inspector/front-end/inspector.js:
    
    LayoutTests:
    
    * http/tests/inspector/compiler-script-mapping.html:
    * http/tests/inspector/workspace-test.js:
    (initialize_WorkspaceTest.InspectorTest.createWorkspace):
    * inspector/debugger/network-uisourcecode-provider.html:
    * inspector/file-mapping-expected.txt:
    * inspector/file-mapping.html:
    * inspector/file-system-mapping-expected.txt:
    * inspector/file-system-mapping.html:
    * inspector/file-system-project.html:
    * inspector/workspace-mapping-expected.txt: Added.
    * inspector/workspace-mapping.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    66f53fe9