Changeset 146983 in webkit
- Timestamp:
- Mar 27, 2013 7:37:43 AM (11 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r146980 r146983 1 2013-03-27 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Web Inspector: Breakpoint manager should restore breakpoints when uiSourceCode is added. 4 https://bugs.webkit.org/show_bug.cgi?id=113381 5 6 Reviewed by Pavel Feldman. 7 8 * inspector/debugger/breakpoint-manager-expected.txt: 9 * inspector/debugger/breakpoint-manager.html: 10 1 11 2013-03-27 Sheriff Bot <webkit.review.bot@gmail.com> 2 12 -
trunk/LayoutTests/inspector/debugger/breakpoint-manager-expected.txt
r146782 r146983 69 69 Adding UISourceCode: a.js 70 70 debuggerModel.setBreakpoint(a.js:10:foo == bar) 71 breakpointAdded(a.js, 10, foo == bar, true)72 Location created: a.js:1073 breakpointAdded(a.js, 20, , false)71 breakpointAdded(a.js, 20, , false) 72 breakpointAdded(a.js, 10, foo == bar, true) 73 Location created: a.js:10 74 74 Dumping Storage 75 75 a.js:10 enabled:true condition:foo == bar … … 90 90 Adding UISourceCode: a.js 91 91 debuggerModel.setBreakpoint(a.js:10:foo == bar) 92 breakpointAdded(a.js, 10, foo == bar, true) 93 Location created: a.js:10 94 breakpointAdded(a.js, 20, , false) 95 Adding UISourceCode: a.js 96 Dumping Storage 97 a.js:10 enabled:true condition:foo == bar 98 a.js:20 enabled:false condition: 99 b.js:3 enabled:true condition: 100 Resetting breakpoint manager 101 breakpointRemoved(a.js, 10) 102 Location disposed: a.js:10 103 debuggerModel.removeBreakpoint(a.js:10) 104 breakpointRemoved(a.js, 20) 105 106 Running: testRestoreBreakpointsAfterTemporaryUISourceCodeRemoved 107 Created breakpoints manager 108 Dumping Storage 109 a.js:10 enabled:true condition:foo == bar 110 a.js:20 enabled:false condition: 111 b.js:3 enabled:true condition: 112 Adding temporary UISourceCode: a.js 113 Adding UISourceCode: a.js 114 debuggerModel.setBreakpoint(a.js:10:foo == bar) 115 breakpointAdded(a.js, 10, foo == bar, true) 116 Location created: a.js:10 117 breakpointAdded(a.js, 20, , false) 92 breakpointAdded(a.js, 20, , false) 93 Adding UISourceCode: a.js 94 breakpointAdded(a.js, 10, foo == bar, true) 95 Location created: a.js:10 118 96 Dumping Storage 119 97 a.js:10 enabled:true condition:foo == bar … … 134 112 Adding UISourceCode: a.js 135 113 debuggerModel.setBreakpoint(a.js:10:foo == bar) 136 breakpointAdded(a.js, 10, foo == bar, true)137 Location created: a.js:10138 breakpointAdded(a.js, 20, , false)114 breakpointAdded(a.js, 20, , false) 115 breakpointAdded(a.js, 10, foo == bar, true) 116 Location created: a.js:10 139 117 Setting breakpoint at a.js:30 enabled:true condition: 140 118 debuggerModel.setBreakpoint(a.js:30:) … … 206 184 Adding UISourceCode: a.js 207 185 debuggerModel.setBreakpoint(a.js:10:foo == bar) 208 breakpointAdded(a.js, 10, foo == bar, true)209 Location created: a.js:10210 breakpointAdded(a.js, 20, , false)186 breakpointAdded(a.js, 20, , false) 187 breakpointAdded(a.js, 10, foo == bar, true) 188 Location created: a.js:10 211 189 212 190 Navigating to B. … … 235 213 debuggerModel.removeBreakpoint(a.js:10) 236 214 debuggerModel.setBreakpoint(a.js:10:foo == bar) 237 breakpointAdded(a.js, 10, foo == bar, true)238 Location created: a.js:10239 breakpointAdded(a.js, 20, , false)215 breakpointAdded(a.js, 20, , false) 216 breakpointAdded(a.js, 10, foo == bar, true) 217 Location created: a.js:10 240 218 Dumping Storage 241 219 a.js:10 enabled:true condition:foo == bar … … 256 234 Adding UISourceCode: a.js 257 235 debuggerModel.setBreakpoint(a.js:10:foo == bar) 258 breakpointAdded(a.js, 10, foo == bar, true)259 Location created: a.js:10260 236 debuggerModel.setBreakpoint(a.js:20:) 237 breakpointAdded(a.js, 10, foo == bar, true) 238 Location created: a.js:10 261 239 breakpointAdded(a.js, 20, , true) 262 240 Location created: a.js:20 -
trunk/LayoutTests/inspector/debugger/breakpoint-manager.html
r146973 r146983 20 20 return null; 21 21 return new WebInspector.DebuggerModel.Location(uiSourceCode.url, lineNumber, 0); 22 }, 23 24 isIdentity: function() 25 { 26 return true; 22 27 } 23 28 }; … … 34 39 { 35 40 return new WebInspector.DebuggerModel.Location(uiSourceCode.url, lineNumber - 10, 0); 41 }, 42 43 isIdentity: function() 44 { 45 return false; 36 46 } 37 47 }; … … 51 61 }, 52 62 63 _scriptForURL: function(url) 64 { 65 for (var scriptId in this._scripts) { 66 var script = this._scripts[scriptId]; 67 if (script.sourceURL === url) 68 return script; 69 } 70 }, 71 72 _scheduleSetBeakpointCallback: function(callback, breakpointId, locations) 73 { 74 setTimeout(innerCallback.bind(this), 0); 75 76 function innerCallback() 77 { 78 if (callback) 79 callback(breakpointId, locations); 80 if (window.setBreakpointCallback) { 81 var savedCallback = window.setBreakpointCallback; 82 delete window.setBreakpointCallback; 83 savedCallback(); 84 } 85 } 86 }, 87 88 setBreakpointByURL: function(url, lineNumber, columnNumber, condition, callback) 89 { 90 var breakpointId = url + ":" + lineNumber; 91 if (this._breakpoints[breakpointId]) { 92 this._scheduleSetBeakpointCallback(callback, null); 93 return; 94 } 95 96 this._breakpoints[breakpointId] = true; 97 InspectorTest.addResult(" debuggerModel.setBreakpoint(" + [url, lineNumber, condition].join(":") + ")"); 98 99 var locations = []; 100 var script = this._scriptForURL(url); 101 if (script) { 102 var location = new WebInspector.DebuggerModel.Location(script.scriptId, lineNumber, 0); 103 locations.push(location); 104 } 105 106 this._scheduleSetBeakpointCallback(callback, breakpointId, locations); 107 }, 108 53 109 setBreakpointByScriptLocation: function(location, condition, callback) 54 110 { 55 111 var breakpointId = location.scriptId + ":" + location.lineNumber; 56 112 if (this._breakpoints[breakpointId]) { 57 callback(null);113 this._scheduleSetBeakpointCallback(callback, null); 58 114 return; 59 115 } … … 61 117 this._breakpoints[breakpointId] = true; 62 118 InspectorTest.addResult(" debuggerModel.setBreakpoint(" + [location.scriptId, location.lineNumber, condition].join(":") + ")"); 63 if (!callback) 64 return; 119 65 120 if (location.lineNumber >= 2000) { 66 callback(breakpointId, []);121 this._scheduleSetBeakpointCallback(callback, breakpointId, []); 67 122 return; 68 123 } 69 124 if (location.lineNumber >= 1000) { 70 125 var shiftedLocation = {scriptId: location.scriptId, lineNumber: location.lineNumber + 10, columnNumber: location.columnNumber }; 71 callback(breakpointId, [shiftedLocation]);126 this._scheduleSetBeakpointCallback(callback, breakpointId, [shiftedLocation]); 72 127 return; 73 128 } 74 callback(breakpointId, [location]); 129 130 this._scheduleSetBeakpointCallback(callback, breakpointId, [location]); 75 131 }, 76 132 … … 239 295 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 240 296 setBreakpoint(breakpointManager, uiSourceCode, 30, "", true); 241 resetBreakpointManager(breakpointManager, next); 297 window.setBreakpointCallback = step2.bind(this); 298 299 function step2() 300 { 301 resetBreakpointManager(breakpointManager, next); 302 } 242 303 }, 243 304 … … 250 311 InspectorTest.addResult(" Enabling breakpoint"); 251 312 breakpoint.setEnabled(true); 252 resetBreakpointManager(breakpointManager, next); 313 window.setBreakpointCallback = step2.bind(this); 314 315 function step2() 316 { 317 resetBreakpointManager(breakpointManager, next); 318 } 253 319 }, 254 320 … … 258 324 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 259 325 var breakpoint = setBreakpoint(breakpointManager, uiSourceCode, 30, "condition", true); 260 dumpBreakpointStorage(breakpointManager); 261 InspectorTest.addResult(" Updating condition"); 262 breakpoint.setCondition(""); 263 resetBreakpointManager(breakpointManager, next); 326 window.setBreakpointCallback = step2.bind(this); 327 328 function step2() 329 { 330 dumpBreakpointStorage(breakpointManager); 331 InspectorTest.addResult(" Updating condition"); 332 breakpoint.setCondition(""); 333 window.setBreakpointCallback = step3.bind(this); 334 } 335 336 function step3() 337 { 338 resetBreakpointManager(breakpointManager, next); 339 } 264 340 }, 265 341 … … 268 344 var breakpointManager = createBreakpointManager(serializedBreakpoints); 269 345 addUISourceCode(breakpointManager, "a.js"); 270 resetBreakpointManager(breakpointManager, next); 346 window.setBreakpointCallback = step2.bind(this); 347 348 function step2() 349 { 350 resetBreakpointManager(breakpointManager, next); 351 } 271 352 }, 272 353 … … 276 357 addUISourceCode(breakpointManager, "a.js"); 277 358 addUISourceCode(breakpointManager, "a.js"); 278 resetBreakpointManager(breakpointManager, next); 279 }, 280 281 function testRestoreBreakpointsAfterTemporaryUISourceCodeRemoved(next) 359 window.setBreakpointCallback = step2.bind(this); 360 361 function step2() 362 { 363 resetBreakpointManager(breakpointManager, next); 364 } 365 }, 366 367 function testRemoveBreakpoints(next) 282 368 { 283 369 var breakpointManager = createBreakpointManager(serializedBreakpoints); 284 addTemporaryUISourceCode(breakpointManager, "a.js"); 285 addUISourceCode(breakpointManager, "a.js"); 286 resetBreakpointManager(breakpointManager, next); 287 }, 288 289 function testRemoveBreakpoints(next) 290 { 291 var breakpointManager = createBreakpointManager(serializedBreakpoints); 292 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 293 setBreakpoint(breakpointManager, uiSourceCode, 30, "", true); 294 295 removeBreakpoint(breakpointManager, uiSourceCode, 30); 296 removeBreakpoint(breakpointManager, uiSourceCode, 10); 297 removeBreakpoint(breakpointManager, uiSourceCode, 20); 298 resetBreakpointManager(breakpointManager, next); 370 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 371 window.setBreakpointCallback = step2.bind(this); 372 373 function step2() 374 { 375 setBreakpoint(breakpointManager, uiSourceCode, 30, "", true); 376 window.setBreakpointCallback = step3.bind(this); 377 } 378 379 function step3() 380 { 381 removeBreakpoint(breakpointManager, uiSourceCode, 30); 382 removeBreakpoint(breakpointManager, uiSourceCode, 10); 383 removeBreakpoint(breakpointManager, uiSourceCode, 20); 384 resetBreakpointManager(breakpointManager, next); 385 } 299 386 }, 300 387 … … 304 391 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 305 392 setBreakpoint(breakpointManager, uiSourceCode, 1015, "", true); 306 resetBreakpointManager(breakpointManager, next); 393 window.setBreakpointCallback = step2.bind(this); 394 395 function step2() 396 { 397 resetBreakpointManager(breakpointManager, next); 398 } 307 399 }, 308 400 … … 312 404 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 313 405 setBreakpoint(breakpointManager, uiSourceCode, 1015, "", true); 314 setBreakpoint(breakpointManager, uiSourceCode, 1015, "", true); 315 resetBreakpointManager(breakpointManager, next); 406 window.setBreakpointCallback = step2.bind(this); 407 408 function step2() 409 { 410 setBreakpoint(breakpointManager, uiSourceCode, 1015, "", true); 411 window.setBreakpointCallback = step3.bind(this); 412 } 413 414 function step3() 415 { 416 resetBreakpointManager(breakpointManager, next); 417 } 316 418 }, 317 419 … … 321 423 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 322 424 breakpointManager.setBreakpoint(uiSourceCode, 2500, "", true); 323 resetBreakpointManager(breakpointManager, next); 324 }, 425 window.setBreakpointCallback = step2.bind(this); 426 427 function step2() 428 { 429 resetBreakpointManager(breakpointManager, next); 430 } 431 }, 325 432 326 433 function testNavigation(next) … … 328 435 var breakpointManager = createBreakpointManager(serializedBreakpoints); 329 436 var uiSourceCodeA = addUISourceCode(breakpointManager, "a.js"); 330 331 InspectorTest.addResult("\n Navigating to B."); 332 breakpointManager._debuggerModel.reset(); 333 resetWorkspace(breakpointManager); 334 var uiSourceCodeB = addUISourceCode(breakpointManager, "b.js"); 335 336 InspectorTest.addResult("\n Navigating back to A."); 337 breakpointManager._debuggerModel.reset(); 338 resetWorkspace(breakpointManager); 339 InspectorTest.addResult(" Resolving provisional breakpoint."); 340 addTemporaryUISourceCode(breakpointManager, "a.js") 341 var eventData = { breakpointId: "a.js:10", location: { scriptId: "a.js", lineNumber: 11, columnNumber: 5 }}; 342 breakpointManager._debuggerModel.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointResolved, eventData); 343 addUISourceCode(breakpointManager, "a.js"); 344 resetBreakpointManager(breakpointManager, next); 437 window.setBreakpointCallback = step2.bind(this); 438 439 function step2() 440 { 441 InspectorTest.addResult("\n Navigating to B."); 442 breakpointManager._debuggerModel.reset(); 443 resetWorkspace(breakpointManager); 444 var uiSourceCodeB = addUISourceCode(breakpointManager, "b.js"); 445 window.setBreakpointCallback = step3.bind(this); 446 } 447 448 function step3() 449 { 450 InspectorTest.addResult("\n Navigating back to A."); 451 breakpointManager._debuggerModel.reset(); 452 resetWorkspace(breakpointManager); 453 InspectorTest.addResult(" Resolving provisional breakpoint."); 454 addTemporaryUISourceCode(breakpointManager, "a.js") 455 var eventData = { breakpointId: "a.js:10", location: { scriptId: "a.js", lineNumber: 11, columnNumber: 5 }}; 456 breakpointManager._debuggerModel.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointResolved, eventData); 457 addUISourceCode(breakpointManager, "a.js"); 458 window.setBreakpointCallback = step4.bind(this); 459 } 460 461 function step4() 462 { 463 resetBreakpointManager(breakpointManager, next); 464 } 345 465 }, 346 466 … … 354 474 var breakpointManager = createBreakpointManager(serializedBreakpoints); 355 475 var uiSourceCodeA = addUISourceCode(breakpointManager, "a.js"); 356 InspectorTest.addResult("\n Toggling source mapping."); 357 breakpointManager._debuggerModel.pushSourceMapping(shiftingMapping); 358 InspectorTest.addResult("\n Toggling source mapping back."); 359 breakpointManager._debuggerModel.disableSourceMapping(shiftingMapping); 360 resetBreakpointManager(breakpointManager, next); 476 window.setBreakpointCallback = step2.bind(this); 477 478 function step2() 479 { 480 window.setBreakpointCallback = step3.bind(this); 481 } 482 483 function step3() 484 { 485 InspectorTest.addResult("\n Toggling source mapping."); 486 breakpointManager._debuggerModel.pushSourceMapping(shiftingMapping); 487 InspectorTest.addResult("\n Toggling source mapping back."); 488 breakpointManager._debuggerModel.disableSourceMapping(shiftingMapping); 489 resetBreakpointManager(breakpointManager, next); 490 } 361 491 }, 362 492 … … 368 498 var breakpointManager = createBreakpointManager(serializedBreakpoints); 369 499 var uiSourceCode = addUISourceCode(breakpointManager, "a.js"); 370 breakpointManager._debuggerModel.reset(); 371 resetWorkspace(breakpointManager); 372 InspectorTest.addResult(" Resolving provisional breakpoint."); 373 addTemporaryUISourceCode(breakpointManager, "a.js") 374 var eventData = { breakpointId: "a.js:10", location: { scriptId: "a.js", lineNumber: 11, columnNumber: 5 }}; 375 breakpointManager._debuggerModel.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointResolved, eventData); 376 var breakpoints = breakpointManager._breakpoints.keys(); 377 InspectorTest.assertEquals(breakpoints.length, 1, "Exactly one breakpoint should be registered in breakpoint manager."); 378 InspectorTest.assertTrue(!breakpoints[0]._primaryUILocation, "_primaryUILocation field should be cleared for provisional breapoint."); 379 resetBreakpointManager(breakpointManager, next); 500 window.setBreakpointCallback = step2.bind(this); 501 502 function step2() 503 { 504 breakpointManager._debuggerModel.reset(); 505 resetWorkspace(breakpointManager); 506 InspectorTest.addResult(" Resolving provisional breakpoint."); 507 addTemporaryUISourceCode(breakpointManager, "a.js") 508 var eventData = { breakpointId: "a.js:10", location: { scriptId: "a.js", lineNumber: 11, columnNumber: 5 }}; 509 breakpointManager._debuggerModel.dispatchEventToListeners(WebInspector.DebuggerModel.Events.BreakpointResolved, eventData); 510 var breakpoints = breakpointManager._breakpoints.keys(); 511 InspectorTest.assertEquals(breakpoints.length, 1, "Exactly one breakpoint should be registered in breakpoint manager."); 512 InspectorTest.assertTrue(!breakpoints[0]._primaryUILocation, "_primaryUILocation field should be cleared for provisional breapoint."); 513 resetBreakpointManager(breakpointManager, next); 514 } 380 515 } 381 516 ]); -
trunk/Source/WebCore/ChangeLog
r146982 r146983 1 2013-03-27 Vsevolod Vlasov <vsevik@chromium.org> 2 3 Web Inspector: Breakpoint manager should restore breakpoints when uiSourceCode is added. 4 https://bugs.webkit.org/show_bug.cgi?id=113381 5 6 Reviewed by Pavel Feldman. 7 8 Breakpoint manager now restores breakpoints on UISourceCodeAdded event. 9 Breakpoint manager now only resets breakpoints in debugger when source mapping is changed to/from non identity one. 10 11 * inspector/front-end/BreakpointManager.js: 12 (WebInspector.BreakpointManager.prototype._uiSourceCodeAdded): 13 (WebInspector.BreakpointManager.prototype._resetBreakpoints): 14 (WebInspector.BreakpointManager.prototype._uiSourceCodeMappingChanged): 15 * inspector/front-end/CompilerScriptMapping.js: 16 (WebInspector.CompilerScriptMapping.prototype.get isIdentity): 17 * inspector/front-end/DefaultScriptMapping.js: 18 (WebInspector.DefaultScriptMapping.prototype.isIdentity): 19 * inspector/front-end/ResourceScriptMapping.js: 20 (WebInspector.ResourceScriptMapping.prototype.isIdentity): 21 * inspector/front-end/SASSSourceMapping.js: 22 (WebInspector.SASSSourceMapping.prototype.isIdentity): 23 * inspector/front-end/ScriptSnippetModel.js: 24 (WebInspector.SnippetScriptMapping.prototype.isIdentity): 25 * inspector/front-end/SourceMapping.js: 26 (WebInspector.SourceMapping.prototype.isIdentity): 27 * inspector/front-end/StylesSourceMapping.js: 28 (WebInspector.StylesSourceMapping.prototype.isIdentity): 29 * inspector/front-end/UISourceCode.js: 30 (WebInspector.UISourceCode.prototype.setSourceMapping): 31 1 32 2013-03-27 Yury Semikhatsky <yurys@chromium.org> 2 33 -
trunk/Source/WebCore/inspector/front-end/BreakpointManager.js
r146973 r146983 92 92 { 93 93 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.data); 94 this._restoreBreakpoints(uiSourceCode); 94 95 if (uiSourceCode.contentType() === WebInspector.resourceTypes.Script || uiSourceCode.contentType() === WebInspector.resourceTypes.Document) { 95 96 uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.SourceMappingChanged, this._uiSourceCodeMappingChanged, this); … … 108 109 109 110 /** 111 * @param {WebInspector.UISourceCode} uiSourceCode 112 */ 113 _resetBreakpoints: function(uiSourceCode) 114 { 115 var sourceFileId = WebInspector.BreakpointManager.sourceFileId(uiSourceCode); 116 var breakpoints = this._breakpoints.keys(); 117 for (var i = 0; i < breakpoints.length; ++i) { 118 var breakpoint = breakpoints[i]; 119 if (breakpoint._sourceFileId !== sourceFileId) 120 return; 121 if (breakpoint.enabled()) { 122 breakpoint._removeFromDebugger(); 123 breakpoint._setInDebugger(); 124 } 125 } 126 }, 127 128 /** 110 129 * @param {WebInspector.Event} event 111 130 */ 112 131 _uiSourceCodeMappingChanged: function(event) 113 132 { 133 var identityHasChanged = /** @type {boolean} */ (event.data.identityHasChanged); 134 if (!identityHasChanged) 135 return; 114 136 var uiSourceCode = /** @type {WebInspector.UISourceCode} */ (event.target); 115 this._res toreBreakpoints(uiSourceCode);137 this._resetBreakpoints(uiSourceCode); 116 138 }, 117 139 … … 273 295 this._breakpointsForUISourceCode.remove(uiSourceCode); 274 296 275 varbreakpoints = this.breakpointsForUISourceCode(uiSourceCode);297 breakpoints = this.breakpointsForUISourceCode(uiSourceCode); 276 298 for (var j = 0; j < breakpoints.length; ++j) { 277 299 var breakpoint = breakpoints[j]; … … 483 505 _setInDebugger: function() 484 506 { 507 console.assert(!this._debuggerId); 485 508 var rawLocation = this._primaryUILocation.uiLocationToRawLocation(); 486 509 var debuggerModelLocation = /** @type {WebInspector.DebuggerModel.Location} */ (rawLocation); -
trunk/Source/WebCore/inspector/front-end/CompilerScriptMapping.js
r143448 r146983 86 86 var entry = sourceMap.findEntryReversed(uiSourceCode.url, lineNumber); 87 87 return WebInspector.debuggerModel.createRawLocation(this._scriptForSourceMap.get(sourceMap), entry[0], entry[1]); 88 }, 89 90 /** 91 * @return {boolean} 92 */ 93 isIdentity: function() 94 { 95 return false; 88 96 }, 89 97 -
trunk/Source/WebCore/inspector/front-end/DefaultScriptMapping.js
r146191 r146983 69 69 var script = WebInspector.debuggerModel.scriptForId(scriptId); 70 70 return WebInspector.debuggerModel.createRawLocation(script, lineNumber, columnNumber); 71 }, 72 73 /** 74 * @return {boolean} 75 */ 76 isIdentity: function() 77 { 78 return true; 71 79 }, 72 80 -
trunk/Source/WebCore/inspector/front-end/ResourceScriptMapping.js
r146112 r146983 74 74 75 75 /** 76 * @return {boolean} 77 */ 78 isIdentity: function() 79 { 80 return true; 81 }, 82 83 /** 76 84 * @param {WebInspector.Script} script 77 85 */ -
trunk/Source/WebCore/inspector/front-end/SASSSourceMapping.js
r144434 r146983 273 273 }, 274 274 275 /** 276 * @return {boolean} 277 */ 278 isIdentity: function() 279 { 280 return false; 281 }, 282 275 283 _reset: function() 276 284 { -
trunk/Source/WebCore/inspector/front-end/ScriptSnippetModel.js
r144463 r146983 488 488 489 489 /** 490 * @return {boolean} 491 */ 492 isIdentity: function() 493 { 494 return true; 495 }, 496 497 /** 490 498 * @param {string} sourceURL 491 499 * @return {string|null} -
trunk/Source/WebCore/inspector/front-end/SourceMapping.js
r135142 r146983 49 49 * @return {WebInspector.RawLocation} 50 50 */ 51 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) { } 51 uiLocationToRawLocation: function(uiSourceCode, lineNumber, columnNumber) { }, 52 53 /** 54 * @return {boolean} 55 */ 56 isIdentity: function() { } 52 57 } 53 58 -
trunk/Source/WebCore/inspector/front-end/StylesSourceMapping.js
r143448 r146983 70 70 }, 71 71 72 /** 73 * @return {boolean} 74 */ 75 isIdentity: function() 76 { 77 return true; 78 }, 79 72 80 _resourceAdded: function(event) 73 81 { -
trunk/Source/WebCore/inspector/front-end/UISourceCode.js
r145543 r146983 664 664 setSourceMapping: function(sourceMapping) 665 665 { 666 var wasIdentity = this._sourceMapping ? this._sourceMapping.isIdentity() : true; 666 667 this._sourceMapping = sourceMapping; 667 this.dispatchEventToListeners(WebInspector.UISourceCode.Events.SourceMappingChanged, null); 668 var data = {} 669 data.isIdentity = sourceMapping ? sourceMapping.isIdentity() : true; 670 data.identityHasChanged = data.isIdentity !== wasIdentity; 671 this.dispatchEventToListeners(WebInspector.UISourceCode.Events.SourceMappingChanged, data); 668 672 }, 669 673
Note: See TracChangeset
for help on using the changeset viewer.