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

Side by Side Diff: Source/WebCore/inspector/front-end/ScriptsPanel.js

Issue 8368025: Merge 97959 - Web Inspector: Enable support for advanced search in script's static content provider. (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 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) 2008 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved.
3 * Copyright (C) 2011 Google Inc. All rights reserved. 3 * Copyright (C) 2011 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 }, 636 },
637 637
638 showAnchorLocation: function(anchor) 638 showAnchorLocation: function(anchor)
639 { 639 {
640 this._showSourceLine(anchor.uiSourceCode, anchor.lineNumber); 640 this._showSourceLine(anchor.uiSourceCode, anchor.lineNumber);
641 }, 641 },
642 642
643 _showSourceLine: function(uiSourceCode, lineNumber) 643 _showSourceLine: function(uiSourceCode, lineNumber)
644 { 644 {
645 var sourceFrame = this._showSourceFrameAndAddToHistory(uiSourceCode); 645 var sourceFrame = this._showSourceFrameAndAddToHistory(uiSourceCode);
646 if (lineNumber) 646 if (typeof lineNumber === "number")
647 sourceFrame.highlightLine(lineNumber); 647 sourceFrame.highlightLine(lineNumber);
648 }, 648 },
649 649
650 _showSourceFrameAndAddToHistory: function(uiSourceCode) 650 _showSourceFrameAndAddToHistory: function(uiSourceCode)
651 { 651 {
652 if (!uiSourceCode._option) 652 if (!uiSourceCode._option)
653 return; 653 return;
654 654
655 var sourceFrame = this._showSourceFrame(uiSourceCode); 655 var sourceFrame = this._showSourceFrame(uiSourceCode);
656 656
(...skipping 633 matching lines...) Expand 10 before | Expand all | Expand 10 after
1290 }, 1290 },
1291 1291
1292 suggestedFileName: function() 1292 suggestedFileName: function()
1293 { 1293 {
1294 var names = this._scriptsPanel._folderAndDisplayNameForScriptURL(this._u iSourceCode.url); 1294 var names = this._scriptsPanel._folderAndDisplayNameForScriptURL(this._u iSourceCode.url);
1295 return names.displayName || "untitled.js"; 1295 return names.displayName || "untitled.js";
1296 } 1296 }
1297 } 1297 }
1298 1298
1299 WebInspector.SourceFrameDelegateForScriptsPanel.prototype.__proto__ = WebInspect or.SourceFrameDelegate.prototype; 1299 WebInspector.SourceFrameDelegateForScriptsPanel.prototype.__proto__ = WebInspect or.SourceFrameDelegate.prototype;
OLDNEW
« no previous file with comments | « Source/WebCore/inspector/front-end/NetworkPanel.js ('k') | Source/WebCore/inspector/front-end/SourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698