Title: [235240] trunk/Source/WebInspectorUI
Revision
235240
Author
[email protected]
Date
2018-08-23 13:06:14 -0700 (Thu, 23 Aug 2018)

Log Message

Web Inspector: REGRESSION: InspectorStyleSheet not visible in the resources sidebar
https://bugs.webkit.org/show_bug.cgi?id=188819
<rdar://problem/43579039>

Reviewed by Brian Burg.

* UserInterface/Models/ResourceCollection.js:
(WI.ResourceCollection.prototype.objectIsRequiredType):

Modified Paths

Diff

Modified: trunk/Source/WebInspectorUI/ChangeLog (235239 => 235240)


--- trunk/Source/WebInspectorUI/ChangeLog	2018-08-23 19:58:30 UTC (rev 235239)
+++ trunk/Source/WebInspectorUI/ChangeLog	2018-08-23 20:06:14 UTC (rev 235240)
@@ -1,3 +1,14 @@
+2018-08-23  Devin Rousso  <[email protected]>
+
+        Web Inspector: REGRESSION: InspectorStyleSheet not visible in the resources sidebar
+        https://bugs.webkit.org/show_bug.cgi?id=188819
+        <rdar://problem/43579039>
+
+        Reviewed by Brian Burg.
+
+        * UserInterface/Models/ResourceCollection.js:
+        (WI.ResourceCollection.prototype.objectIsRequiredType):
+
 2018-08-23  Joseph Pecoraro  <[email protected]>
 
         JSContext Inspector: Scripts not showing up in Resources tab

Modified: trunk/Source/WebInspectorUI/UserInterface/Models/ResourceCollection.js (235239 => 235240)


--- trunk/Source/WebInspectorUI/UserInterface/Models/ResourceCollection.js	2018-08-23 19:58:30 UTC (rev 235239)
+++ trunk/Source/WebInspectorUI/UserInterface/Models/ResourceCollection.js	2018-08-23 20:06:14 UTC (rev 235240)
@@ -47,6 +47,9 @@
 
     objectIsRequiredType(object)
     {
+        if (this._resourceType === WI.Resource.Type.Stylesheet && object instanceof WI.CSSStyleSheet)
+            return true;
+
         if (!(object instanceof WI.Resource))
             return false;
 
@@ -53,9 +56,6 @@
         if (!this._resourceType)
             return true;
 
-        if (this._resourceType === WI.Resource.Type.Stylesheet && object instanceof WI.CSSStyleSheet)
-            return true;
-
         return object.type === this._resourceType;
     }
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to