OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |