Web Inspector: Changes are not applied in CSS sidebar when switching to Resources...
[WebKit-https.git] / Source / WebInspectorUI / ChangeLog
index 1028557..c67a173 100644 (file)
@@ -1,3 +1,147 @@
+2017-05-22  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: Changes are not applied in CSS sidebar when switching to Resources tab without blurring editor
+        https://bugs.webkit.org/show_bug.cgi?id=172388
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Views/CSSStyleDeclarationSection.js:
+        (WebInspector.CSSStyleDeclarationSection.prototype.refreshEditor):
+        * UserInterface/Views/RulesStyleDetailsPanel.js:
+        (WebInspector.RulesStyleDetailsPanel.prototype.cssStyleDeclarationSectionEditorFocused):
+        (WebInspector.RulesStyleDetailsPanel.prototype.shown):
+        When showing the StyleDetailsPanel, if there is an active editor, which is now saved each
+        time one becomes focused, force an update of that editor's content.
+
+2017-05-22  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Web Inspector: New Tab contents not centered vertically
+        https://bugs.webkit.org/show_bug.cgi?id=172486
+
+        Reviewed by Devin Rousso.
+
+        * UserInterface/Views/NewTabContentView.css:
+        (.new-tab.tab.content-view):
+        Use align-items instead of align-content.
+
+2017-05-22  Devin Rousso  <drousso@apple.com>
+
+        Web Inspector: New CSS Rules should go into a new Stylesheet Resource that can be viewed/edited/saved
+        https://bugs.webkit.org/show_bug.cgi?id=138810
+
+        Reviewed by Joseph Pecoraro.
+
+        * Localizations/en.lproj/localizedStrings.js:
+
+        * UserInterface/Controllers/CSSStyleManager.js:
+        (WebInspector.CSSStyleManager):
+        (WebInspector.CSSStyleManager.prototype.preferredInspectorStyleSheetForFrame):
+        (WebInspector.CSSStyleManager.prototype._updateResourceContent.fetchedStyleSheetContent):
+        Manually dispatch a change event for modifications to CSSStyleSheet objects since they are
+        not covered by the listener for Resource changes.
+
+        * UserInterface/Main.html:
+        Include WebInspector.CSSStyleSheetTreeElement.
+
+        * UserInterface/Models/Collection.js:
+        (WebInspector.Collection.TypeVerifier):
+        * UserInterface/Models/ResourceCollection.js:
+        (WebInspector.ResourceCollection.TypeVerifier.Stylesheet):
+        Add TypeVerifier for CSSStyleSheet.
+
+        * UserInterface/Models/DOMNodeStyles.js:
+        (WebInspector.DOMNodeStyles.prototype._parseRulePayload):
+        Manually create a SourceCodeLocation object for Inspector Style Sheets.
+
+        * UserInterface/Views/CSSStyleSheetTreeElement.js: Added.
+        (WebInspector.CSSStyleSheetTreeElement):
+
+        * UserInterface/Views/ResourceIcons.css:
+        (:matches(.resource-icon.resource-type-stylesheet, .stylessheet-icon) .icon):
+
+        * UserInterface/Views/FrameTreeElement.js:
+        (WebInspector.FrameTreeElement.forwardingConstructor):
+        (WebInspector.FrameTreeElement):
+        (WebInspector.FrameTreeElement.prototype.onattach):
+        (WebInspector.FrameTreeElement.prototype.ondetach):
+        (WebInspector.FrameTreeElement.prototype.onpopulate):
+        (WebInspector.FrameTreeElement.prototype._styleSheetAdded):
+        * UserInterface/Views/ResourceSidebarPanel.js:
+        (WebInspector.ResourceSidebarPanel):
+        (WebInspector.ResourceSidebarPanel.prototype._styleSheetAdded):
+        (WebInspector.ResourceSidebarPanel.prototype._treeSelectionDidChange):
+        Listen for the creation of CSSStyleSheet objects and add them to the sidebar if they are an
+        Inspector Style Sheet.  Regular style sheets are added via their respective resources.
+
+        * UserInterface/Views/NavigationSidebarPanel.js:
+        (WebInspector.NavigationSidebarPanel.prototype._isTreeElementWithoutRepresentedObject):
+        Prevent CSSStyleSheetTreeElement instances from attempting to save state to a cookie.
+
+        * UserInterface/Base/Main.js:
+        (WebInspector.tabContentViewClassForRepresentedObject):
+        (WebInspector.createSourceCodeLocationLink):
+        * UserInterface/Views/ContentView.js:
+        (WebInspector.ContentView.createFromRepresentedObject):
+        (WebInspector.ContentView.isViewable):
+        * UserInterface/Views/CSSStyleDeclarationSection.js:
+        (WebInspector.CSSStyleDeclarationSection.prototype.refresh):
+        * UserInterface/Views/ResourcesTabContentView.js:
+        (WebInspector.ResourcesTabContentView.prototype.canShowRepresentedObject):
+        * UserInterface/Views/ResourceContentView.js:
+        (WebInspector.ResourceContentView):
+        * UserInterface/Views/SourceCodeTextEditor.js:
+        (WebInspector.SourceCodeTextEditor.prototype._prepareEditorForInitialContent):
+        (WebInspector.SourceCodeTextEditor.prototype._looselyMatchesSourceCodeLocation):
+        (WebInspector.SourceCodeTextEditor.prototype._matchesSourceCodeLocation):
+        * UserInterface/Views/TextResourceContentView.js:
+        (WebInspector.TextResourceContentView):
+        (WebInspector.TextResourceContentView.prototype.get supportsSave):
+        (WebInspector.TextResourceContentView.prototype.get saveData):
+        (WebInspector.TextResourceContentView.prototype._contentWillPopulate):
+        (WebInspector.TextResourceContentView.prototype._shouldBeEditable):
+        Support editing and saving an Inspector Style Sheet via its CSSStyleSheet object.
+
+2017-05-22  Brian Burg  <bburg@apple.com>
+
+        Web Inspector: webkit reload policy should match default behavior
+        https://bugs.webkit.org/show_bug.cgi?id=171385
+        <rdar://problem/31871515>
+
+        Reviewed by Joseph Pecoraro.
+
+        * UserInterface/Base/Main.js:
+        Use PageAgent.reload.invoke to make the reload options more explicit.
+
+        * UserInterface/Test/FrontendTestHarness.js:
+        (FrontendTestHarness.prototype.reloadPage):
+        Convert this method to take an options dictionary rather than positional
+        boolean arguments. Update call sites to pass correct options.
+
+        When running tests, we want to revalidate unexpired resources, as there
+        does not seem to be another reliable way to trigger revalidated cached
+        resources from a Web Inspector layout test. Make this behavior the default.
+
+2017-05-22  Simon Fraser  <simon.fraser@apple.com>
+
+        Support transform-box to switch sizing box in SVG
+        https://bugs.webkit.org/show_bug.cgi?id=145783
+
+        Reviewed by Dean Jackson.
+
+        Add transform-box to the list of autocompletions.
+
+        * UserInterface/External/CodeMirror/css.js:
+
+2017-05-22  Brian Burg  <bburg@apple.com>
+
+        Web Inspector: RTL: In Timelines > JavaScript & Events, digits for sample count are not localized
+        https://bugs.webkit.org/show_bug.cgi?id=171819
+
+        Reviewed by Matt Baker.
+
+        * UserInterface/Views/ScriptTimelineDataGridNode.js:
+        (WebInspector.ScriptTimelineDataGridNode.prototype.createCellContent):
+
 2017-05-22  Nikita Vasilyev  <nvasilyev@apple.com>
 
         Web Inspector: RTL: Text in autocomplete popover should be aligned left