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

Side by Side Diff: Source/devtools/front_end/ElementsPanel.js

Issue 203443010: DevTools: [JsDocValidator] Fix checking of receivers specified as arguments (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add a suppression hint message Created 6 years, 9 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/devtools/front_end/ElementsTreeOutline.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com>
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 if (!object) { 458 if (!object) {
459 callback(); 459 callback();
460 return; 460 return;
461 } 461 }
462 462
463 object.callFunctionJSON(dimensions, undefined, callback); 463 object.callFunctionJSON(dimensions, undefined, callback);
464 object.release(); 464 object.release();
465 465
466 /** 466 /**
467 * @return {!{offsetWidth: number, offsetHeight: number, naturalWidt h: number, naturalHeight: number}} 467 * @return {!{offsetWidth: number, offsetHeight: number, naturalWidt h: number, naturalHeight: number}}
468 * @suppressReceiverCheck
468 * @this {!Element} 469 * @this {!Element}
469 */ 470 */
470 function dimensions() 471 function dimensions()
471 { 472 {
472 return { offsetWidth: this.offsetWidth, offsetHeight: this.offse tHeight, naturalWidth: this.naturalWidth, naturalHeight: this.naturalHeight }; 473 return { offsetWidth: this.offsetWidth, offsetHeight: this.offse tHeight, naturalWidth: this.naturalWidth, naturalHeight: this.naturalHeight };
473 } 474 }
474 } 475 }
475 }, 476 },
476 477
477 /** 478 /**
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
1345 return; 1346 return;
1346 1347
1347 if (WebInspector.inspectElementModeController && WebInspector.inspectEle mentModeController.enabled()) { 1348 if (WebInspector.inspectElementModeController && WebInspector.inspectEle mentModeController.enabled()) {
1348 InspectorFrontendHost.bringToFront(); 1349 InspectorFrontendHost.bringToFront();
1349 WebInspector.inspectElementModeController.disable(); 1350 WebInspector.inspectElementModeController.disable();
1350 } 1351 }
1351 1352
1352 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p anel("elements")).revealAndSelectNode(node.id); 1353 /** @type {!WebInspector.ElementsPanel} */ (WebInspector.inspectorView.p anel("elements")).revealAndSelectNode(node.id);
1353 } 1354 }
1354 } 1355 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698