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

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

Issue 9328038: Merge 106638 - Web Inspector: preserve elements panel selection upon node drag'n'drop (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 10 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) 2009, 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 Google Inc. All rights reserved.
3 * Copyright (C) 2009 Joseph Pecoraro 3 * Copyright (C) 2009 Joseph Pecoraro
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 are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 960 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 /** 971 /**
972 * @param {WebInspector.DOMNode} node 972 * @param {WebInspector.DOMNode} node
973 * @param {function(?Protocol.Error)=} callback 973 * @param {function(?Protocol.Error)=} callback
974 * @return {function(?Protocol.Error)} 974 * @return {function(?Protocol.Error)}
975 */ 975 */
976 _markRevision: function(node, callback) 976 _markRevision: function(node, callback)
977 { 977 {
978 function wrapperFunction(error) 978 function wrapperFunction(error)
979 { 979 {
980 if (callback) 980 if (callback)
981 callback(error); 981 callback.apply(this, arguments);
982 if (error || !WebInspector.experimentsSettings.freeFlowDOMEditing.is Enabled()) 982 if (error || !WebInspector.experimentsSettings.freeFlowDOMEditing.is Enabled())
983 return; 983 return;
984 if (this._captureDOMTimer) 984 if (this._captureDOMTimer)
985 clearTimeout(this._captureDOMTimer); 985 clearTimeout(this._captureDOMTimer);
986 this._captureDOMTimer = setTimeout(this._captureDOM.bind(this, node) , 500); 986 this._captureDOMTimer = setTimeout(this._captureDOM.bind(this, node) , 500);
987 } 987 }
988 return wrapperFunction.bind(this); 988 return wrapperFunction.bind(this);
989 }, 989 },
990 990
991 /** 991 /**
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 } 1144 }
1145 }, 1145 },
1146 1146
1147 canSetContent: function() 1147 canSetContent: function()
1148 { 1148 {
1149 return true; 1149 return true;
1150 } 1150 }
1151 } 1151 }
1152 1152
1153 WebInspector.DOMModelResourceBinding.prototype.__proto__ = WebInspector.Resource DomainModelBinding.prototype; 1153 WebInspector.DOMModelResourceBinding.prototype.__proto__ = WebInspector.Resource DomainModelBinding.prototype;
OLDNEW
« no previous file with comments | « LayoutTests/inspector/elements/move-node-expected.txt ('k') | Source/WebCore/inspector/front-end/ElementsTreeOutline.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698