Changeset 50881 in webkit
- Timestamp:
- Nov 12, 2009 9:08:01 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r50880 r50881 1 2009-11-12 Patrick Mueller <Patrick_Mueller@us.ibm.com> 2 3 Reviewed by Timothy Hatcher. 4 5 Web Inspector: breakpoint sidebar entries should allow click over entire list item 6 https://bugs.webkit.org/show_bug.cgi?id=31411 7 8 No new tests; no new functionality, small usability change. 9 10 * inspector/front-end/BreakpointsSidebarPane.js: 11 (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement): 12 (WebInspector.BreakpointsSidebarPane.prototype._appendBreakpointElement.breakpointClicked): 13 1 14 2009-11-12 Patrick Mueller <Patrick_Mueller@us.ibm.com> 2 15 -
trunk/WebCore/inspector/front-end/BreakpointsSidebarPane.js
r47919 r50881 68 68 _appendBreakpointElement: function(breakpoint) 69 69 { 70 function checkboxClicked( )70 function checkboxClicked(event) 71 71 { 72 72 breakpoint.enabled = !breakpoint.enabled; 73 74 // without this, we'd switch to the source of the clicked breakpoint 75 event.stopPropagation(); 73 76 } 74 77 75 function labelClicked()78 function breakpointClicked() 76 79 { 77 80 var script = WebInspector.panels.scripts.scriptOrResourceForID(breakpoint.sourceID); … … 83 86 breakpoint._breakpointListElement = breakpointElement; 84 87 breakpointElement._breakpointObject = breakpoint; 88 breakpointElement.addEventListener("click", breakpointClicked, false); 85 89 86 90 var checkboxElement = document.createElement("input"); … … 91 95 breakpointElement.appendChild(checkboxElement); 92 96 93 var labelElement = document.createElement("a"); 94 labelElement.textContent = breakpoint.label; 95 labelElement.addEventListener("click", labelClicked, false); 97 var labelElement = document.createTextNode(breakpoint.label); 96 98 breakpointElement.appendChild(labelElement); 97 99
Note: See TracChangeset
for help on using the changeset viewer.