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

Side by Side Diff: Source/devtools/front_end/sources/JavaScriptSourceFrame.js

Issue 662793002: [DevTools] Replace usages of document with custom functions. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 } 660 }
661 661
662 var config = new WebInspector.InplaceEditor.Config(finishEditing.bind(th is, true), finishEditing.bind(this, false)); 662 var config = new WebInspector.InplaceEditor.Config(finishEditing.bind(th is, true), finishEditing.bind(this, false));
663 WebInspector.InplaceEditor.startEditing(this._conditionEditorElement, co nfig); 663 WebInspector.InplaceEditor.startEditing(this._conditionEditorElement, co nfig);
664 this._conditionEditorElement.value = breakpoint ? breakpoint.condition() : ""; 664 this._conditionEditorElement.value = breakpoint ? breakpoint.condition() : "";
665 this._conditionEditorElement.select(); 665 this._conditionEditorElement.select();
666 }, 666 },
667 667
668 _createConditionElement: function(lineNumber) 668 _createConditionElement: function(lineNumber)
669 { 669 {
670 var conditionElement = document.createElementWithClass("div", "source-fr ame-breakpoint-condition"); 670 var conditionElement = createElementWithClass("div", "source-frame-break point-condition");
671 671
672 var labelElement = conditionElement.createChild("label", "source-frame-b reakpoint-message"); 672 var labelElement = conditionElement.createChild("label", "source-frame-b reakpoint-message");
673 labelElement.htmlFor = "source-frame-breakpoint-condition"; 673 labelElement.htmlFor = "source-frame-breakpoint-condition";
674 labelElement.createTextChild(WebInspector.UIString("The breakpoint on li ne %d will stop only if this expression is true:", lineNumber + 1)); 674 labelElement.createTextChild(WebInspector.UIString("The breakpoint on li ne %d will stop only if this expression is true:", lineNumber + 1));
675 675
676 var editorElement = conditionElement.createChild("input", "monospace"); 676 var editorElement = conditionElement.createChild("input", "monospace");
677 editorElement.id = "source-frame-breakpoint-condition"; 677 editorElement.id = "source-frame-breakpoint-condition";
678 editorElement.type = "text"; 678 editorElement.type = "text";
679 this._conditionEditorElement = editorElement; 679 this._conditionEditorElement = editorElement;
680 680
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this); 917 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyChanged, this._workingCopyChanged, this);
918 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this); 918 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. WorkingCopyCommitted, this._workingCopyCommitted, this);
919 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. TitleChanged, this._showBlackboxInfobarIfNeeded, this); 919 this._uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events. TitleChanged, this._showBlackboxInfobarIfNeeded, this);
920 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._ showBlackboxInfobarIfNeeded, this); 920 WebInspector.settings.skipStackFramesPattern.removeChangeListener(this._ showBlackboxInfobarIfNeeded, this);
921 WebInspector.settings.skipContentScripts.removeChangeListener(this._show BlackboxInfobarIfNeeded, this); 921 WebInspector.settings.skipContentScripts.removeChangeListener(this._show BlackboxInfobarIfNeeded, this);
922 WebInspector.UISourceCodeFrame.prototype.dispose.call(this); 922 WebInspector.UISourceCodeFrame.prototype.dispose.call(this);
923 }, 923 },
924 924
925 __proto__: WebInspector.UISourceCodeFrame.prototype 925 __proto__: WebInspector.UISourceCodeFrame.prototype
926 } 926 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/FilteredItemSelectionDialog.js ('k') | Source/devtools/front_end/sources/Placard.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698