Web Inspector: save and restore source positions in back/forward history
[WebKit-https.git] / Source / WebInspectorUI / UserInterface / ContentBrowser.js
index 37f50af7abb5af75f52cc2702d384a4de1f39a52..db987a8b20b45b013057ff2535dcc274d0bfab72 100644 (file)
@@ -157,9 +157,9 @@ WebInspector.ContentBrowser.prototype = {
         return this._contentViewContainer.showContentViewForRepresentedObject(representedObject);
     },
 
-    showContentView: function(contentView)
+    showContentView: function(contentView, cookie, restoreCallback)
     {
-        return this._contentViewContainer.showContentView(contentView);
+        return this._contentViewContainer.showContentView(contentView, cookie, restoreCallback);
     },
 
     contentViewForRepresentedObject: function(representedObject, onlyExisting)
@@ -411,7 +411,7 @@ WebInspector.ContentBrowser.prototype = {
 
         // Go through each of the items of the new content view and add a divider before them.
         currentContentView.navigationItems.forEach(function(navigationItem, index) {
-            // Add dividers before items unless it's the first item and not a button. 
+            // Add dividers before items unless it's the first item and not a button.
             if (index !== 0 || navigationItem instanceof WebInspector.ButtonNavigationItem) {
                 var divider = new WebInspector.DividerNavigationItem;
                 navigationBar.insertNavigationItem(divider, insertionIndex++);
@@ -433,7 +433,7 @@ WebInspector.ContentBrowser.prototype = {
             this._findBanner.numberOfResults = null;
             return;
         }
-        
+
         this._findBanner.targetElement = currentContentView.element;
         this._findBanner.numberOfResults = currentContentView.hasPerformedSearch ? currentContentView.numberOfSearchResults : null;