OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple 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 | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1059 WebInspector.DOMPresentationUtils.createSpansForNodeTitle(valueElement,
description); | 1059 WebInspector.DOMPresentationUtils.createSpansForNodeTitle(valueElement,
description); |
1060 valueElement.addEventListener("click", mouseClick, false); | 1060 valueElement.addEventListener("click", mouseClick, false); |
1061 valueElement.addEventListener("mousemove", mouseMove, false); | 1061 valueElement.addEventListener("mousemove", mouseMove, false); |
1062 valueElement.addEventListener("mouseleave", mouseLeave, false); | 1062 valueElement.addEventListener("mouseleave", mouseLeave, false); |
1063 } else { | 1063 } else { |
1064 valueElement.title = description || ""; | 1064 valueElement.title = description || ""; |
1065 } | 1065 } |
1066 | 1066 |
1067 if (type === "object" && subtype === "internal#location") { | 1067 if (type === "object" && subtype === "internal#location") { |
1068 var rawLocation = value.debuggerModel().createRawLocationByScriptId(valu
e.value.scriptId, value.value.lineNumber, value.value.columnNumber); | 1068 var rawLocation = value.debuggerModel().createRawLocationByScriptId(valu
e.value.scriptId, value.value.lineNumber, value.value.columnNumber); |
1069 if (rawLocation && linkifier) | 1069 if (rawLocation && linkifier) { |
1070 return linkifier.linkifyRawLocation(rawLocation, ""); | 1070 var anchor = linkifier.linkifyRawLocation(rawLocation, ""); |
1071 else | 1071 if (anchor) |
1072 valueElement.textContent = "<unknown>"; | 1072 return anchor; |
| 1073 } |
| 1074 valueElement.textContent = "<unknown>"; |
1073 } | 1075 } |
1074 | 1076 |
1075 function mouseMove() | 1077 function mouseMove() |
1076 { | 1078 { |
1077 WebInspector.DOMModel.highlightObjectAsDOMNode(value); | 1079 WebInspector.DOMModel.highlightObjectAsDOMNode(value); |
1078 } | 1080 } |
1079 | 1081 |
1080 function mouseLeave() | 1082 function mouseLeave() |
1081 { | 1083 { |
1082 WebInspector.DOMModel.hideDOMNodeHighlight(); | 1084 WebInspector.DOMModel.hideDOMNodeHighlight(); |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1261 | 1263 |
1262 result = currentName + (result ? "." + result : ""); | 1264 result = currentName + (result ? "." + result : ""); |
1263 current = current.parent; | 1265 current = current.parent; |
1264 } | 1266 } |
1265 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie
sSectionExpandController._treeOutlineId]; | 1267 var treeOutlineId = treeElement.treeOutline[WebInspector.ObjectPropertie
sSectionExpandController._treeOutlineId]; |
1266 result = treeOutlineId + (result ? ":" + result : ""); | 1268 result = treeOutlineId + (result ? ":" + result : ""); |
1267 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached
PathSymbol] = result; | 1269 treeElement[WebInspector.ObjectPropertiesSectionExpandController._cached
PathSymbol] = result; |
1268 return result; | 1270 return result; |
1269 } | 1271 } |
1270 } | 1272 } |
OLD | NEW |