diff --git a/front_end/sources/JavaScriptBreakpointsSidebarPane.js b/front_end/sources/JavaScriptBreakpointsSidebarPane.js index 855c3a318b..3b89d5674b 100644 --- a/front_end/sources/JavaScriptBreakpointsSidebarPane.js +++ b/front_end/sources/JavaScriptBreakpointsSidebarPane.js @@ -524,6 +524,12 @@ class BreakpointItem { } export const locationSymbol = Symbol('location'); +/** + * @param {!Element} element + */ +export function retrieveLocationForElement(element) { + return element[locationSymbol]; +} export const checkboxLabelSymbol = Symbol('checkbox-label'); export const snippetElementSymbol = Symbol('snippet-element'); export const breakpointLocationsSymbol = Symbol('locations'); diff --git a/front_end/sources/sources-legacy.js b/front_end/sources/sources-legacy.js index f62a63a1f9..b5a61e4f42 100644 --- a/front_end/sources/sources-legacy.js +++ b/front_end/sources/sources-legacy.js @@ -89,6 +89,8 @@ Sources.InplaceFormatterEditorAction = SourcesModule.InplaceFormatterEditorActio Sources.JavaScriptBreakpointsSidebarPane = SourcesModule.JavaScriptBreakpointsSidebarPane.JavaScriptBreakpointsSidebarPane; +Sources.JavaScriptBreakpointsSidebarPane.retrieveLocationForElement = + SourcesModule.JavaScriptBreakpointsSidebarPane.retrieveLocationForElement; Sources.JavaScriptBreakpointsSidebarPane._locationSymbol = SourcesModule.JavaScriptBreakpointsSidebarPane.locationSymbol; Sources.JavaScriptBreakpointsSidebarPane._checkboxLabelSymbol =