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