Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(846)

Unified Diff: third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js

Issue 2515763003: DevTools: use shorthand syntax in interface definitions. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js
diff --git a/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js b/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js
index 8d703272788f8621c04aca64e15a6b07ac1262a5..5f23a2fab0c96917dabb39851b119b3b4071a9a4 100644
--- a/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js
+++ b/third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.js
@@ -24,10 +24,8 @@ Bindings.CSSWorkspaceBinding = class {
*/
targetAdded(target) {
var cssModel = SDK.CSSModel.fromTarget(target);
- if (cssModel) {
- this._modelToTargetInfo.set(
- cssModel, new Bindings.CSSWorkspaceBinding.TargetInfo(cssModel, this._workspace));
- }
+ if (cssModel)
+ this._modelToTargetInfo.set(cssModel, new Bindings.CSSWorkspaceBinding.TargetInfo(cssModel, this._workspace));
}
/**
@@ -55,8 +53,7 @@ Bindings.CSSWorkspaceBinding = class {
_ensureTargetInfo(header) {
var targetInfo = this._modelToTargetInfo.get(header.cssModel());
if (!targetInfo) {
- targetInfo =
- new Bindings.CSSWorkspaceBinding.TargetInfo(header.cssModel(), this._workspace);
+ targetInfo = new Bindings.CSSWorkspaceBinding.TargetInfo(header.cssModel(), this._workspace);
this._modelToTargetInfo.set(header.cssModel(), targetInfo);
}
return targetInfo;
@@ -273,7 +270,8 @@ Bindings.CSSWorkspaceBinding.LiveLocation = class extends Bindings.LiveLocationW
var targetInfo = this._binding._targetInfo(this._header);
return targetInfo._rawLocationToUILocation(this._header, cssLocation.lineNumber, cssLocation.columnNumber);
}
- var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForStyleURL(this._binding._workspace, cssLocation.url, cssLocation.header());
+ var uiSourceCode = Bindings.NetworkProject.uiSourceCodeForStyleURL(
+ this._binding._workspace, cssLocation.url, cssLocation.header());
if (!uiSourceCode)
return null;
return uiSourceCode.uiLocation(cssLocation.lineNumber, cssLocation.columnNumber);

Powered by Google App Engine
This is Rietveld 408576698