commit | 861f3fe8d59287066fc67a234b893775b79cf230 | [log] [tgz] |
---|---|---|
author | joepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Fri Mar 20 00:18:15 2015 +0000 |
committer | joepeck@webkit.org <joepeck@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc> | Fri Mar 20 00:18:15 2015 +0000 |
tree | bd7afbb525544c83a99f51821cd65d2304f88fc3 | |
parent | 31640cf5def52df480a533c6dceb1bfa47e6d619 [diff] |
Web Inspector: Adopt ES6 Class Syntax for all Model Objects https://bugs.webkit.org/show_bug.cgi?id=142858 Reviewed by Timothy Hatcher. Source/WebInspectorUI: - Convert WebInspector.Object to a class - Convert all UserInterface/Models objects to classes - Convert constructor functions to constructor methods - Convert "constructor.method" to class static methods where possible - Convert all methods to method syntax, eliminate commas between methods - Convert all superclass calls in classes to use "super" - Workaround <https://webkit.org/b/142862> and add empty constructors - Added "deprecated" prefix to addConstructorFunctions, since it is not needed with classes - Added many missing calls to super in constructors - Added FIXME to WebInspector.Object subclasses not yet moved to classes. - Cleaned up SourceMap global properties, moved to constructor instead of prototype - Cleaned up Timeline factory constructor to static "create" factory method - Fixed any style issues noticed in the mass edit - Fixed strict mode issues now that classes enforce strict mode - RunLoopTimelineRecord.js was missing a `var` for a local variable - "const" is not allowed, converted to "var" - "arguments.callee" is not allowed in strict mode * UserInterface/**/*.js: Many files modified mostly mechanically. LayoutTests: * inspector/model/parse-script-syntax-tree.html: This test was calling a constructor without "new". Class syntax enforces "new" and threw an exception. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@181769 268f45cc-cd09-0410-ab3c-d52691b4dbfc