Title: [187403] trunk/Source/WebInspectorUI
Revision
187403
Author
[email protected]
Date
2015-07-25 23:19:48 -0700 (Sat, 25 Jul 2015)

Log Message

Web Inspector: Start using Node.prototype.replaceWith
https://bugs.webkit.org/show_bug.cgi?id=147303

Reviewed by Timothy Hatcher.

* UserInterface/Views/Popover.js:
(WebInspector.Popover.prototype._update):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (187402 => 187403)


--- trunk/Source/WebInspectorUI/ChangeLog	2015-07-26 05:46:30 UTC (rev 187402)
+++ trunk/Source/WebInspectorUI/ChangeLog	2015-07-26 06:19:48 UTC (rev 187403)
@@ -1,5 +1,15 @@
 2015-07-25  Nikita Vasilyev  <[email protected]>
 
+        Web Inspector: Start using Node.prototype.replaceWith
+        https://bugs.webkit.org/show_bug.cgi?id=147303
+
+        Reviewed by Timothy Hatcher.
+
+        * UserInterface/Views/Popover.js:
+        (WebInspector.Popover.prototype._update):
+
+2015-07-25  Nikita Vasilyev  <[email protected]>
+
         Web Inspector: Start using Node.prototype.append
         https://bugs.webkit.org/show_bug.cgi?id=147301
 

Modified: trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js (187402 => 187403)


--- trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js	2015-07-26 05:46:30 UTC (rev 187402)
+++ trunk/Source/WebInspectorUI/UserInterface/Views/Popover.js	2015-07-26 06:19:48 UTC (rev 187403)
@@ -193,7 +193,7 @@
                 this._element.classList.remove(this._cssClassNameForEdge());
 
             // Add the content in place of the wrapper to get the raw metrics.
-            this._element.replaceChild(this._content, this._container);
+            this._container.replaceWith(this._content);
 
             // Get the ideal size for the popover to fit its content.
             var popoverBounds = this._element.getBoundingClientRect();
@@ -280,7 +280,7 @@
         // Wrap the content in the container so that it's located correctly.
         if (this._contentNeedsUpdate) {
             this._container.textContent = "";
-            this._element.replaceChild(this._container, this._content);
+            this._content.replaceWith(this._container);
             this._container.appendChild(this._content);
         }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to