Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Source/WebCore: Web Inspector: Move formatting support from JavaScrip…
…tSource to UISourceCode. https://bugs.webkit.org/show_bug.cgi?id=92373 Reviewed by Pavel Feldman. Moved formatting support from JavaScriptSource to UISourceCode. Extracted Formatter interface from ScriptFormatter and created IdentityFormatter implememntation and Formatter.createFormatter(contentType) formatter factory. Introduced virtual formattedChanged() method on UISourceCode. * inspector/front-end/JavaScriptSource.js: (WebInspector.JavaScriptSource): (WebInspector.JavaScriptSource.prototype.uiLocationToRawLocation): (WebInspector.JavaScriptSource.prototype.breakpointStorageId): (WebInspector.JavaScriptSource.prototype.searchInContent): (WebInspector.JavaScriptSource.prototype.formattedChanged): * inspector/front-end/ScriptFormatter.js: (WebInspector.Formatter): (WebInspector.Formatter.createFormatter): (WebInspector.Formatter.locationToPosition): (WebInspector.Formatter.positionToLocation): (WebInspector.Formatter.prototype.formatContent): (WebInspector.ScriptFormatter): (WebInspector.IdentityFormatter): (WebInspector.IdentityFormatter.prototype.formatContent): (WebInspector.FormatterSourceMappingImpl.prototype.originalToFormatted): (WebInspector.FormatterSourceMappingImpl.prototype.formattedToOriginal): * inspector/front-end/UISourceCode.js: (WebInspector.UISourceCode): (WebInspector.UISourceCode.prototype.requestContent): (WebInspector.UISourceCode.prototype._fireContentAvailable): (WebInspector.UISourceCode.prototype.uiLocationToRawLocation): (WebInspector.UISourceCode.prototype.overrideLocation): (WebInspector.UISourceCode.prototype.togglingFormatter): (WebInspector.UISourceCode.prototype.formatted): (WebInspector.UISourceCode.prototype.setFormatted.if): (WebInspector.UISourceCode.prototype.setFormatted.didGetContent.formattedChanged): (WebInspector.UISourceCode.prototype.setFormatted.didGetContent): (WebInspector.UISourceCode.prototype.setFormatted): (WebInspector.UISourceCode.prototype.createFormatter): (WebInspector.UISourceCode.prototype.formattedChanged): Source/WebKit2: [EFL][WK2] Add unit tests for Ewk_View form client https://bugs.webkit.org/show_bug.cgi?id=92468 Reviewed by Simon Hausmann. Add unit test for form client functionality in Ewk_View. * UIProcess/API/efl/tests/test_ewk2_view.cpp: (onFormAboutToBeSubmitted): (TEST_F): LayoutTests: Web Inspector: Move formatting support from JavaScriptSource to UISourceCode. https://bugs.webkit.org/show_bug.cgi?id=92373 Reviewed by Pavel Feldman. * inspector/debugger/script-formatter.html: Canonical link: https://commits.webkit.org/110288@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@123853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information