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

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

Issue 667743002: DevTools: remove "type" getters in Resource and NetworkRequest. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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
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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 478
479 var treeOutlineElement = anchor.enclosingNodeOrSelfWithClass("elements-t ree-outline"); 479 var treeOutlineElement = anchor.enclosingNodeOrSelfWithClass("elements-t ree-outline");
480 if (!treeOutlineElement) 480 if (!treeOutlineElement)
481 return; 481 return;
482 482
483 for (var i = 0; i < this._treeOutlines.length; ++i) { 483 for (var i = 0; i < this._treeOutlines.length; ++i) {
484 if (this._treeOutlines[i].element !== treeOutlineElement) 484 if (this._treeOutlines[i].element !== treeOutlineElement)
485 continue; 485 continue;
486 486
487 var resource = this._treeOutlines[i].target().resourceTreeModel.reso urceForURL(anchor.href); 487 var resource = this._treeOutlines[i].target().resourceTreeModel.reso urceForURL(anchor.href);
488 if (!resource || resource.type !== WebInspector.resourceTypes.Image) 488 if (!resource || resource.resourceType() !== WebInspector.resourceTy pes.Image)
489 return; 489 return;
490 anchor.removeAttribute("title"); 490 anchor.removeAttribute("title");
491 return anchor; 491 return anchor;
492 } 492 }
493 }, 493 },
494 494
495 /** 495 /**
496 * @param {!WebInspector.DOMNode} node 496 * @param {!WebInspector.DOMNode} node
497 * @param {function()} callback 497 * @param {function()} callback
498 */ 498 */
(...skipping 1073 matching lines...) Expand 10 before | Expand all | Expand 10 after
1572 1572
1573 WebInspector.ElementsPanelFactory.prototype = { 1573 WebInspector.ElementsPanelFactory.prototype = {
1574 /** 1574 /**
1575 * @return {!WebInspector.Panel} 1575 * @return {!WebInspector.Panel}
1576 */ 1576 */
1577 createPanel: function() 1577 createPanel: function()
1578 { 1578 {
1579 return WebInspector.ElementsPanel.instance(); 1579 return WebInspector.ElementsPanel.instance();
1580 } 1580 }
1581 } 1581 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/console/ConsoleView.js ('k') | Source/devtools/front_end/network/NetworkItemView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698