2016-01-02 Alberto Garcia [GTK] webkit 2.3.5 build failure with python 3.3.4 https://bugs.webkit.org/show_bug.cgi?id=128971 Reviewed by Michael Catanzaro. Make sure that the stdin encoding is 'UTF-8' if using Python 3, otherwise the build will break. * Scripts/cssmin.py: 2015-10-01 Andres Gomez [GTK] Web Inspector: Add GTK+ icons for the numerical input and slider based Visual editors for CSS properties https://bugs.webkit.org/show_bug.cgi?id=147847 Reviewed by Carlos Garcia Campos. * UserInterface/Images/gtk/VisualStylePropertyLinked.svg: Added. * UserInterface/Images/gtk/VisualStylePropertyUnlinked.svg: Added. 2015-10-01 Andres Gomez [GTK] Web Inspector: Add GTK+ icons for the different types of non-numerical Visual editors for CSS properties https://bugs.webkit.org/show_bug.cgi?id=147846 Reviewed by Carlos Garcia Campos. * UserInterface/Images/gtk/AUTHORS: Updated. * UserInterface/Images/gtk/ClearBoth.svg: Added. * UserInterface/Images/gtk/ClearLeft.svg: Added. * UserInterface/Images/gtk/ClearRight.svg: Added. * UserInterface/Images/gtk/CubicBezier.svg: Updated. * UserInterface/Images/gtk/FloatLeft.svg: Added. * UserInterface/Images/gtk/FloatRight.svg: Added. * UserInterface/Images/gtk/FontStyleItalic.svg: Added. * UserInterface/Images/gtk/FontStyleNormal.svg: Added. * UserInterface/Images/gtk/FontVariantSmallCaps.svg: Added. * UserInterface/Images/gtk/TextAlignCenter.svg: Added. * UserInterface/Images/gtk/TextAlignJustify.svg: Added. * UserInterface/Images/gtk/TextAlignLeft.svg: Added. * UserInterface/Images/gtk/TextAlignRight.svg: Added. * UserInterface/Images/gtk/TextDecorationLineThrough.svg: Added. * UserInterface/Images/gtk/TextDecorationOverline.svg: Added. * UserInterface/Images/gtk/TextDecorationUnderline.svg: Added. * UserInterface/Images/gtk/TextTransformCapitalize.svg: Added. * UserInterface/Images/gtk/TextTransformLowercase.svg: Added. * UserInterface/Images/gtk/TextTransformUppercase.svg: Added. * UserInterface/Images/gtk/VisualStyleNone.svg: Added. 2015-09-30 Andres Gomez [GTK] Web Inspector: Add GTK+ icon for the Bezier curve visual editor https://bugs.webkit.org/show_bug.cgi?id=147681 Reviewed by Joseph Pecoraro. * UserInterface/Images/gtk/CubicBezier.svg: Added. 2015-08-19 Joseph Pecoraro Web Inspector: Uncaught exception in inspector page while handling event DOMStorage.domStorageItemRemoved https://bugs.webkit.org/show_bug.cgi?id=148191 Reviewed by Brian Burg. * UserInterface/Controllers/StorageManager.js: (WebInspector.StorageManager.prototype.itemsCleared): (WebInspector.StorageManager.prototype.itemRemoved): (WebInspector.StorageManager.prototype.itemAdded): (WebInspector.StorageManager.prototype.itemUpdated): Check if the DOMStorage for the identifier actually exists. Due to how the backend emits events, the page may have already navigated when we get a storage update for the previous page. In that case, we don't want to create a DOMStorage for the previous page if it doesn't exist. 2015-08-13 Nikita Vasilyev Web Inspector: Can't resize split console when window is too narrow https://bugs.webkit.org/show_bug.cgi?id=147924 Make some items inside of the navigation bar click-through to incsease the draggable area. Reviewed by Timothy Hatcher. * UserInterface/Views/Main.css: (#split-content-browser > .navigation-bar > :matches(.hierarchical-path, .log-search-bar, .log-scope-bar)): (#split-content-browser > .navigation-bar > :matches(.log-search-bar, .log-scope-bar) > :matches(li, input)): 2015-08-13 Devin Rousso Web Inspector: Flash DOM node attribute on change https://bugs.webkit.org/show_bug.cgi?id=147973 Reviewed by Timothy Hatcher. Whenever an attribute on a DOM node changes, flash the attribute value. If that value doesn't exist, flash the attribute name instead. * UserInterface/Views/DOMTreeElement.js: (WebInspector.DOMTreeElement): (WebInspector.DOMTreeElement.prototype.nodeChanged): (WebInspector.DOMTreeElement.prototype._buildAttributeDOM): If the node has been marked with a general change, mark the attribute element for animation. (WebInspector.DOMTreeElement.prototype._markNodeChanged.animationEnd): (WebInspector.DOMTreeElement.prototype._markNodeChanged): Adds a class to the given element that applies a simple background flash animation. (WebInspector.DOMTreeElement.prototype._fireDidChange): Add the animation class once all building of the represented DOM object for that node is done. * UserInterface/Views/DOMTreeOutline.css: (@keyframes node-state-changed): Applies a semi-transparent background that fades to default. (.node-state-changed): * UserInterface/Views/DOMTreeUpdater.js: (WebInspector.DOMTreeUpdater.prototype._attributesUpdated): Now passes along the name of the modified attribute. (WebInspector.DOMTreeUpdater.prototype._updateModifiedNodes): If the modified node object has an attribute member, mark the node as being generally changed. 2015-08-13 Devin Rousso REGRESSION (r184000): Web Inspector: Stripped whitespace after editing CSS in Styles sidebar https://bugs.webkit.org/show_bug.cgi?id=145679 Reviewed by Timothy Hatcher. The formatter will now calculate the number of beginning spaces before the first line in a rule and duplicate them in front of every other line. If there is no new line at the beginning or are no spaces, assume 4 spaces and a new line for each property. Also cleaned up the code for _resetContent a bit. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor): (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update.set get this): (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update.get this): (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent): 2015-08-13 Matt Baker Web Inspector: Skip rendering frame records without children https://bugs.webkit.org/show_bug.cgi?id=147993 Reviewed by Reviewed by Joseph Pecoraro. This became an issue for frames which include an IndexedDB "success" event. This caused the payload to pass the "has children" test, but resulted in model objects with no child records. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.eventRecorded): Fixed record type check and moved rendering frame index assignment. * UserInterface/Models/RenderingFrameTimelineRecord.js: (WebInspector.RenderingFrameTimelineRecord): (WebInspector.RenderingFrameTimelineRecord.prototype.setupFrameIndex): Frame index is now set externally, and can only be set once. * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView.prototype._renderingFrameTimelineRecordAdded): Added assertion. 2015-08-13 Joseph Pecoraro Web Inspector: Watch Expressions https://bugs.webkit.org/show_bug.cgi?id=147904 Reviewed by Brian Burg. * UserInterface/Protocol/RemoteObject.js: (WebInspector.RemoteObject): A RemoteObject's description string is optional, but we always assume it exists and is a string, so default to the empty string. * UserInterface/Controllers/RuntimeManager.js: (WebInspector.RuntimeManager.prototype.evaluateInInspectedWindow.evalCallback): Include the object group in the DidEvaluate event. (WebInspector.RemoteObject.fakeRemoteObject): (WebInspector.RemoteObject.prototype.getDisplayablePropertyDescriptors): (WebInspector.RemoteObject.prototype.deprecatedGetDisplayableProperties.get return): (WebInspector.RemoteObject.prototype.deprecatedGetDisplayableProperties): (WebInspector.RemoteObject.prototype._isFakeObject): (WebInspector.RemoteObject.prototype._getPropertyDescriptors): (WebInspector.RemoteObject.prototype._deprecatedGetProperties): Support a fake RemoteObject. We use this fake RemoteObject to back a ObjectTreeView where we add custom Properties which are of the form "Expressions => RemoteObject" instead of "Object Property => RemoteObject". Ensure a fake remote object is not used in unexpected ways. * UserInterface/Views/Popover.js: (WebInspector.Popover.prototype.update): Default a popover update to animate, but allow not animating. (WebInspector.Popover.prototype.handleEvent): Vend a class that other content can use so that the Popover won't dismiss if content with that class is scrolled. For example, a completions list may be showing over a popover, if that scrolls it should not dismiss the popover. * UserInterface/Views/CompletionSuggestionsView.js: (WebInspector.CompletionSuggestionsView): Adopt the Popover ignore class so a popover won't dismiss if the completion suggestions view is scrolled. * UserInterface/Views/ObjectTreeBaseTreeElement.js: (WebInspector.ObjectTreeBaseTreeElement.prototype.createGetterElement.get return): (WebInspector.ObjectTreeBaseTreeElement.prototype.createGetterElement): Allow modifying the context menu on an ObjectTreeView by looking for a delegate on the TreeOutline. * UserInterface/Views/ScopeChainDetailsSidebarPanel.css: Added. (.details-section.watch-expressions .options > *): (.details-section.watch-expressions .options > *:active): (.details-section.watch-expressions .options > .watch-expression-add): (.details-section.watch-expressions .options > .watch-expression-clear): (.details-section.watch-expressions .options > .watch-expression-refresh): (.popover .watch-expression): (.watch-expression-editor): (.watch-expression-editor > .CodeMirror): (.watch-expression-editor > .CodeMirror-scroll): Styles for the new Watch Expressions section, buttons, popover, and editor. * UserInterface/Views/ScopeChainDetailsSidebarPanel.js: (WebInspector.ScopeChainDetailsSidebarPanel): (WebInspector.ScopeChainDetailsSidebarPanel.prototype.inspect): (WebInspector.ScopeChainDetailsSidebarPanel.prototype.refresh): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._generateCallFramesSection): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._generateWatchExpressionsSection): Because we update the UI after a delay, to allow ObjectTreeView's to asynchronously expand and fetch their list of properties, we convert updating the watch expression and call frame sections asynchronously and return a promise. This lets us visually update the UI after both sections have updated. (WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpression): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._removeWatchExpression): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._clearAllWatchExpressions): Modify the saved list of watch expressions. (WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked.presentPopoverOverTargetElement): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked.this._codeMirror.addKeyMap): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._addWatchExpressionButtonClicked): (WebInspector.ScopeChainDetailsSidebarPanel.prototype.willDismissPopover): Handle presenting and dismissing the add watch expression popover. (WebInspector.ScopeChainDetailsSidebarPanel.prototype._refreshAllWatchExpressionsButtonClicked): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._clearAllWatchExpressionsButtonClicked): Other button handlers. (WebInspector.ScopeChainDetailsSidebarPanel.prototype._mainResourceDidChange): Refresh the sidebar on navigation, as the watch expressions may change value (`location.href`). (WebInspector.ScopeChainDetailsSidebarPanel.prototype._objectTreeElementAddContextMenuItems): Add our own context menu items to watch expression ObjectTreeView tree elements to allow removing a watch expression. (WebInspector.ScopeChainDetailsSidebarPanel.prototype._propertyPathIdentifierForTreeElement): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._objectTreeAddHandler): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._objectTreeExpandHandler): (WebInspector.ScopeChainDetailsSidebarPanel.prototype._objectTreeCollapseHandler): Convert code to use `let`. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Main.html: Misc. changes. 2015-08-13 Joseph Pecoraro Web Inspector: A {Map, WeakMap, Set, WeakSet} object contains itself will hang the console https://bugs.webkit.org/show_bug.cgi?id=147966 Reviewed by Timothy Hatcher. * UserInterface/Views/ObjectPreviewView.js: (WebInspector.ObjectPreviewView.prototype._appendEntryPreviews): (WebInspector.ObjectPreviewView.prototype._appendPropertyPreviews): For empty overflow previews, don't show ", ..." if we didn't show any values; just show "..." in these cases. 2015-08-13 Matt Baker Web Inspector: Hide child rows for filtered tasks in the Rendering Frames data grid https://bugs.webkit.org/show_bug.cgi?id=147960 Reviewed by Timothy Hatcher. * UserInterface/Models/RenderingFrameTimelineRecord.js: (WebInspector.RenderingFrameTimelineRecord.taskTypeForTimelineRecord): New static method for mapping TimelineRecords to rendering frame tasks. (WebInspector.RenderingFrameTimelineRecord.prototype.durationForTask): Refactored to use taskTypeForTimelineRecord. * UserInterface/Views/TimelineSidebarPanel.js: (WebInspector.TimelineSidebarPanel.prototype.matchTreeElementAgainstCustomFilters): Task filtering is applied to children of the frame record only. Parent frame record is hidden by default, and visible by virtue of having unfiltered children. 2015-08-13 Matt Baker Web Inspector: Clearing frames timeline doesn't remove current time marker https://bugs.webkit.org/show_bug.cgi?id=147650 Reviewed by Timothy Hatcher. The rendering frames timeline offsets all markers by 1px to align them on frame boundaries, which causes the current time marker to be visible even with left: 0px. We can exclude the current time marker without it being noticable during recording. * UserInterface/Views/TimelineOverview.css: 2015-08-13 Nikita Vasilyev REGRESSION (r188325): Web Inspector: Fix vertical spacing in CodeMirror https://bugs.webkit.org/show_bug.cgi?id=147971 r188325 inceased line-height by 2px. Remove top and bottom 1px padding to compensate for line-height changes. In the feature we may highlight the backgroud of text tokens (e.g. for the heatmap profiler) so we would want to get rid of the gaps between the lines (caused by the paddind) regardless of this regression. Reviewed by Timothy Hatcher. * UserInterface/Views/CodeMirrorOverrides.css: (.CodeMirror pre): 2015-08-12 Joseph Pecoraro Web Inspector: Sometimes CSS resources don't update after editing via Styles panel https://bugs.webkit.org/show_bug.cgi?id=143244 Reviewed by Timothy Hatcher. * UserInterface/Models/SourceCode.js: (WebInspector.SourceCode.prototype._processContent): This code is brittle and we should move off of putting the possibly stale content in the Promise result. * UserInterface/Views/ResourceContentView.js: (WebInspector.ResourceContentView.prototype._contentAvailable): * UserInterface/Views/SourceCodeTextEditor.js: (WebInspector.SourceCodeTextEditor.prototype._contentAvailable): * UserInterface/Models/Script.js: (WebInspector.Script.prototype.requestScriptSyntaxTree): Use the current source code's content. 2015-08-12 Joseph Pecoraro Web Inspector: Fix Poor Class Names https://bugs.webkit.org/show_bug.cgi?id=147958 Reviewed by Timothy Hatcher. * UserInterface/Views/ClusterContentView.js: * UserInterface/Views/ResourceContentView.js: 2015-08-12 Devin Rousso Web Inspector: Opening the Elements tab without a selected sidebar panel causes a crash https://bugs.webkit.org/show_bug.cgi?id=147965 Reviewed by Timothy Hatcher. * UserInterface/Views/CSSStyleDetailsSidebarPanel.js: (WebInspector.CSSStyleDetailsSidebarPanel): If the saved setting for the selectedPanel does not exist, default to the rules panel. (WebInspector.CSSStyleDetailsSidebarPanel.prototype._switchPanels): Only save the new navigationItem info if the selectedPanel exists. 2015-08-12 Matt Baker Web Inspector: Remove clamp and adopt Number.constrain https://bugs.webkit.org/show_bug.cgi?id=147952 Reviewed by Timothy Hatcher. * UserInterface/Base/Utilities.js: Removed clamp function. * UserInterface/Views/BezierEditor.js: (WebInspector.BezierEditor.prototype._updateControlPointsForMouseEvent): * UserInterface/Views/ProfileNodeDataGridNode.js: (WebInspector.ProfileNodeDataGridNode.prototype.updateRangeTimes): * UserInterface/Views/ScriptTimelineDataGridNode.js: (WebInspector.ScriptTimelineDataGridNode.prototype.updateRangeTimes): * UserInterface/Views/TimelineRuler.js: (WebInspector.TimelineRuler.prototype._updateSelection): Replaced instances of clamp with Number.constrain. 2015-08-12 Joseph Pecoraro Web Inspector: DOM Node should have context menu to scroll it into view on the inspected page https://bugs.webkit.org/show_bug.cgi?id=147913 Reviewed by Timothy Hatcher. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Views/DOMTreeElement.js: (WebInspector.DOMTreeElement.prototype._updateChildren.set continue): (WebInspector.DOMTreeElement.prototype._populateNodeContextMenu): Add a context menu item to scroll into view for element nodes. (WebInspector.DOMTreeElement.prototype._scrollIntoView.resolvedNode.scrollIntoView): (WebInspector.DOMTreeElement.prototype._scrollIntoView.resolvedNode): (WebInspector.DOMTreeElement.prototype._scrollIntoView): Call scrollIntoViewIfNeeded on the real Node. * UserInterface/Views/DOMTreeOutline.js: (WebInspector.DOMTreeOutline.prototype.populateContextMenu): Remove unused parameter. * UserInterface/Views/ObjectTreeBaseTreeElement.js: (WebInspector.ObjectTreeBaseTreeElement.prototype._appendMenusItemsForObject): Add context menu for Nodes in ObjectTrees. 2015-08-12 Dan Bernstein Removed the executable bit from non-executable source. * UserInterface/External/CodeMirror/LICENSE: Removed property svn:executable. * UserInterface/External/CodeMirror/clojure.js: Removed property svn:executable. * UserInterface/External/CodeMirror/closebrackets.js: Removed property svn:executable. * UserInterface/External/CodeMirror/codemirror.css: Removed property svn:executable. * UserInterface/External/CodeMirror/codemirror.js: Removed property svn:executable. * UserInterface/External/CodeMirror/coffeescript.js: Removed property svn:executable. * UserInterface/External/CodeMirror/comment.js: Removed property svn:executable. * UserInterface/External/CodeMirror/css.js: Removed property svn:executable. * UserInterface/External/CodeMirror/htmlmixed.js: Removed property svn:executable. * UserInterface/External/CodeMirror/javascript.js: Removed property svn:executable. * UserInterface/External/CodeMirror/livescript.js: Removed property svn:executable. * UserInterface/External/CodeMirror/matchbrackets.js: Removed property svn:executable. * UserInterface/External/CodeMirror/overlay.js: Removed property svn:executable. * UserInterface/External/CodeMirror/placeholder.js: Removed property svn:executable. * UserInterface/External/CodeMirror/runmode.js: Removed property svn:executable. * UserInterface/External/CodeMirror/sass.js: Removed property svn:executable. * UserInterface/External/CodeMirror/searchcursor.js: Removed property svn:executable. * UserInterface/External/CodeMirror/sql.js: Removed property svn:executable. * UserInterface/External/CodeMirror/xml.js: Removed property svn:executable. 2015-08-11 Matt Baker Web Inspector: TimelineView data not cleared when recording is reset https://bugs.webkit.org/show_bug.cgi?id=147916 Reviewed by Timothy Hatcher. Each derived timeline view maintains a separate array of timeline records. These weren't cleared on reset, so switching to a timeline view after clearing the recording caused the view to populate its tree outline. * UserInterface/Views/LayoutTimelineView.js: (WebInspector.LayoutTimelineView.set columns): (WebInspector.LayoutTimelineView): * UserInterface/Views/NetworkTimelineView.js: (WebInspector.NetworkTimelineView.set columns): (WebInspector.NetworkTimelineView): * UserInterface/Views/OverviewTimelineView.js: (WebInspector.OverviewTimelineView.prototype.reset): (WebInspector.OverviewTimelineView.prototype._processPendingRepresentedObjects): * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView.prototype.reset): * UserInterface/Views/ScriptTimelineView.js: (WebInspector.ScriptTimelineView.prototype.reset): 2015-08-11 Matt Baker Web Inspector: Dragging a timeline ruler handle when both handles clamped is broken https://bugs.webkit.org/show_bug.cgi?id=147912 Reviewed by Timothy Hatcher. When clamped handles overlap, the handle nearest in time to the ruler's edge should be visible and clickable, and the other should be hidden. This change ensures that clicking and dragging a ruler handle to modify a selection outside the visible area works correctly. * UserInterface/Views/TimelineOverview.css: (.timeline-overview.frames > .timeline-ruler:not(.both-handles-clamped) > .selection-handle.right): Style adjustment for rendering frames, which offsets the right handle by 5px instead of 4px. (.timeline-overview.frames > .timeline-ruler:not(.both-handles-clamped) > .shaded-area.right): Style adjustment for rendering frames, which offsets the right shaded area by 1px. (.timeline-overview.frames > .timeline-ruler > .selection-handle.right): Deleted. (.timeline-overview.frames > .timeline-ruler > .shaded-area.right): Deleted. * UserInterface/Views/TimelineRuler.css: (.timeline-ruler.both-handles-clamped > .selection-handle): Updated handle style when both are clamped. (.timeline-ruler > .selection-handle.clamped.hidden): Hide the clamped handle that is beneath the other clamped handle. * UserInterface/Views/TimelineRuler.js: (WebInspector.TimelineRuler.prototype._updateSelection): 2015-08-11 Devin Rousso Web Inspector: Disabling attribute styles should not be possible https://bugs.webkit.org/show_bug.cgi?id=147922 Reviewed by Timothy Hatcher. * UserInterface/Views/CSSStyleDeclarationSection.js: (WebInspector.CSSStyleDeclarationSection): Increases the specificity of the if statement that adds rule disable state toggling to the icon. 2015-08-11 Devin Rousso Web Inspector: Update to CodeMirror 5.5 or later https://bugs.webkit.org/show_bug.cgi?id=147109 Reviewed by Timothy Hatcher. Updated CodeMirror to version 5.5, as well as the extension files for CodeMirror that are currently used in WebInspector. * Localizations/en.lproj/localizedStrings.js: * Tools/PrettyPrinting/FormatterDebug.js: Added WebInspector namespace for formatters. * Tools/PrettyPrinting/index.html: Added WebInspector namespace for formatters. * UserInterface/External/CodeMirror/LICENSE: * UserInterface/External/CodeMirror/clojure.js: * UserInterface/External/CodeMirror/closebrackets.js: * UserInterface/External/CodeMirror/codemirror.css: * UserInterface/External/CodeMirror/codemirror.js: * UserInterface/External/CodeMirror/coffeescript.js: * UserInterface/External/CodeMirror/comment.js: * UserInterface/External/CodeMirror/css.js: * UserInterface/External/CodeMirror/htmlmixed.js: * UserInterface/External/CodeMirror/javascript.js: * UserInterface/External/CodeMirror/livescript.js: * UserInterface/External/CodeMirror/matchbrackets.js: * UserInterface/External/CodeMirror/overlay.js: * UserInterface/External/CodeMirror/sass.js: * UserInterface/External/CodeMirror/searchcursor.js: * UserInterface/External/CodeMirror/sql.js: * UserInterface/External/CodeMirror/xml.js: * UserInterface/Views/CodeMirrorFormatters.js: Now uses the new token in CodeMirror for media query parenthesis. * UserInterface/Views/CSSStyleDeclarationTextEditor.css: (.css-style-text-editor > .CodeMirror pre): Removed the additional vertical padding. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleMouseDown): (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleMouseUp): Clicking on the end of a line in a style will now correctly insert a new line. * UserInterface/Views/ComputedStyleDetailsPanel.css: (.details-section > .content > .group > .row .CodeMirror-code pre .go-to-arrow): The go-to arrow now has the proper dimensions. * UserInterface/Views/HoverMenu.css: (.hover-menu > img): * UserInterface/Views/SourceCodeTextEditor.css: (.hover-menu.color > img): 2015-08-11 Matt Baker Web Inspector: Add the ability to filter out tasks in the Rendering Frames timeline https://bugs.webkit.org/show_bug.cgi?id=147389 Reviewed by Timothy Hatcher. Added filtering by task type to the Rendering Frames timeline view. Legend item checkboxes in the timeline sidebar toggle filtering for the corresponding task. The "Other" category cannot be filtered, since all rendering frame records include some "other" time in addition to child records from at least one additional task type. A row is filtered (hidden) from the data grid when the corresponding rendering frame has no unfiltered child records. * UserInterface/Base/Main.js: (WebInspector._windowFocused): (WebInspector._windowBlurred): Added inactive style for docked window. * UserInterface/Views/ChartDetailsSectionRow.css: (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > label > .color-key): (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > label): (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > label > input[type=checkbox]): (body.window-inactive .details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > label > input[type=checkbox]): (.details-section > .content > .group > .row.chart > .defs-only): (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > .label > .color-swatch): Deleted. (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > .label): Deleted. Switched to label elements, added checkbox styles, and updated color swatch style for non-checkbox items. * UserInterface/Views/ChartDetailsSectionRow.js: (WebInspector.ChartDetailsSectionRow): Added svg filter container and style sheet element. (WebInspector.ChartDetailsSectionRow.prototype.set data): (WebInspector.ChartDetailsSectionRow.prototype._createLegend.createGammaPrimitive): (WebInspector.ChartDetailsSectionRow.prototype._createLegend.createCheckboxFilterElement): Helper function to create an svg:filter to blend legend key color over the native checkbox element. Filter assumes grayscale input, and each checkbox requires a separate filter. (WebInspector.ChartDetailsSectionRow.prototype._createLegend): Creates legend items, svg filters, and checkbox style sheet. (WebInspector.ChartDetailsSectionRow.prototype._legendItemCheckboxValueChanged): Repackage and forward checkbox changed event. (WebInspector.ChartDetailsSectionRow.prototype._createLegendItem): Deleted. Logic moved to WebInspector.ChartDetailsSectionRow.prototype._createLegend. * UserInterface/Views/TimelineSidebarPanel.js: Added set of rendering frame task types against which tree elements can be filtered. (WebInspector.TimelineSidebarPanel.prototype.matchTreeElementAgainstCustomFilters): If filter is not empty, check ancestor rendering frame record for unfiltered data. (WebInspector.TimelineSidebarPanel.prototype._frameSelectionLegendItemChecked): Update task filter in response when legend items are checked/unchecked. 2015-08-11 Brent Fulgham [Win] Switch Windows build to Visual Studio 2015 https://bugs.webkit.org/show_bug.cgi?id=147887 Reviewed by Alex Christensen. Update Visual Studio project file settings to use the current Visual Studio and compiler. Continue targeting binaries to run on our minimum supported configuration of Windows 7. * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: 2015-08-11 Brian Burg Web Inspector: Agent commands do not actually return a promise when expected https://bugs.webkit.org/show_bug.cgi?id=138665 Reviewed by Timothy Hatcher. This patch unifies the handling of different invocation and dispatch modes in the InspectorBackend protocol system. Command responses are dispatched to a provided callback function; if no function was provided, then the command returns a promise. Rather than awkwardly converting between promises and callbacks at invocation and response dispatch time, the backend now stores the callback or promise thunks and knows how to invoke each when the response comes. This mirrors how response handling works in ProtocolTestStub.js. InspectorBackend includes more machinery to support Agent objects and various debug flags. Performanace impact is expected to be negligible, because there are relatively few commands issued by the inspector frontend and returned promises are short-lived. Remove all uses of Command.prototype.promise, since it is no longer necessary. * UserInterface/Base/Test.js: (InspectorTest.reloadPage): * UserInterface/Controllers/ReplayManager.js: (WebInspector.ReplayManager.prototype.getSession.get var): (WebInspector.ReplayManager.getSegment.get var): * UserInterface/Models/ReplaySession.js: (WebInspector.ReplaySession.prototype.segmentsChanged): * UserInterface/Models/Resource.js: (WebInspector.Resource.prototype.requestContentFromBackend): * UserInterface/Models/Script.js: (WebInspector.Script.prototype.requestContentFromBackend): * UserInterface/Models/SourceMapResource.js: (WebInspector.SourceMapResource.prototype.requestContentFromBackend): * UserInterface/Protocol/InspectorBackend.js: (InspectorBackendClass): (InspectorBackendClass.prototype.dispatch): (InspectorBackendClass.prototype.runAfterPendingDispatches): (InspectorBackendClass.prototype._sendCommandToBackendWithCallback.set this): (InspectorBackendClass.set this): (InspectorBackendClass.prototype._sendCommandToBackendWithCallback): (InspectorBackendClass.prototype._dispatchResponseToCallback): (InspectorBackendClass.prototype._dispatchResponseToPromise): (InspectorBackendClass.prototype._flushPendingScripts): (InspectorBackend.Command.prototype.invoke): (InspectorBackend.Command.prototype._invokeWithArguments): (InspectorBackendClass.prototype._willSendMessageToBackend.set return): Deleted. (InspectorBackendClass._dispatchCallback.get if): Deleted. (InspectorBackendClass.prototype._willSendMessageToBackend): Deleted. (InspectorBackendClass.prototype._invokeCommand): Deleted. (.callable): Deleted. (InspectorBackend.Command.create): Deleted. (InspectorBackend.Command.prototype.promise): Deleted. 2015-08-11 Devin Rousso Web Inspector: Hovering over an element in the Elements tab should highlight the whole line https://bugs.webkit.org/show_bug.cgi?id=147855 Reviewed by Brian Burg. * UserInterface/Views/DOMTreeOutline.css: (.dom-tree-outline li.hovered:not(.selected) .selection): Removed the horizontal positioning and border radius. 2015-08-10 Devin Rousso Web Inspector: Add numerical input and slider based Visual editors for CSS properties https://bugs.webkit.org/show_bug.cgi?id=147712 Reviewed by Brian Burg. Added editors for CSS properties with numerical values for use in the Visual style details panel in the CSS sidebar, in the form of a combined select and input or an input range. Also added optional visual linkages to sync values between multiple editors of this type. * UserInterface/Images/VisualStylePropertyLinked.svg: Added. * UserInterface/Images/VisualStylePropertyUnlinked.svg: Added. * UserInterface/Views/VisualStyleNumberInputBox.css: Added. (.visual-style-property-container > .visual-style-property-value-container.focused > .focus-ring): (.visual-style-property-container > .visual-style-property-value-container > .number-input-keyword-select): (.visual-style-property-container > .visual-style-property-value-container > .number-input-container): (.visual-style-property-container > .visual-style-property-value-container:not(.number-input-editable) > .number-input-container): (.visual-style-property-container > .visual-style-property-value-container > .number-input-container > .number-input-value): (.visual-style-property-container > .visual-style-property-value-container > .number-input-container > span): * UserInterface/Views/VisualStyleNumberInputBox.js: Added. (WebInspector.VisualStyleNumberInputBox): (WebInspector.VisualStyleNumberInputBox.prototype.get value): (WebInspector.VisualStyleNumberInputBox.prototype.set value): (WebInspector.VisualStyleNumberInputBox.prototype.get units): (WebInspector.VisualStyleNumberInputBox.prototype.set units): (WebInspector.VisualStyleNumberInputBox.prototype.get placeholder): (WebInspector.VisualStyleNumberInputBox.prototype.set placeholder): (WebInspector.VisualStyleNumberInputBox.prototype.get synthesizedValue): (WebInspector.VisualStyleNumberInputBox.prototype.get numberInputEditable): (WebInspector.VisualStyleNumberInputBox.prototype.updateValueFromText): (WebInspector.VisualStyleNumberInputBox.prototype.parseValue): (WebInspector.VisualStyleNumberInputBox.prototype._keywordChanged): (WebInspector.VisualStyleNumberInputBox.prototype._valueNumberInputKeyDown.shiftValue): (WebInspector.VisualStyleNumberInputBox.prototype._valueNumberInputKeyDown): (WebInspector.VisualStyleNumberInputBox.prototype._numberInputChanged): (WebInspector.VisualStyleNumberInputBox.prototype._keywordSelectMouseDown): (WebInspector.VisualStyleNumberInputBox.prototype._createValueOptions): (WebInspector.VisualStyleNumberInputBox.prototype._createUnitOptions): (WebInspector.VisualStyleNumberInputBox.prototype._addAdvancedUnits): (WebInspector.VisualStyleNumberInputBox.prototype._removeAdvancedUnits): (WebInspector.VisualStyleNumberInputBox.prototype._focusContentElement): (WebInspector.VisualStyleNumberInputBox.prototype._blurContentElement): (WebInspector.VisualStyleNumberInputBox.prototype._toggleTabbingOfSelectableElements): * UserInterface/Views/VisualStylePropertyEditorLink.css: Added. (.visual-style-property-editor-link): (.visual-style-property-editor-link.disabled): (.visual-style-property-editor-link.link-all): (.visual-style-property-editor-link.link-all.linked): (.visual-style-property-editor-link > .visual-style-property-editor-link-border): (.visual-style-property-editor-link.link-all.linked > .visual-style-property-editor-link-icon:hover + .visual-style-property-editor-link-border.right): (.visual-style-property-editor-link.link-all.linked > .visual-style-property-editor-link-border.left): (.visual-style-property-editor-link.link-all.linked > .visual-style-property-editor-link-border.right): (.visual-style-property-editor-link.linked > .visual-style-property-editor-link-border): (.visual-style-property-editor-link > .visual-style-property-editor-link-border.left): (.visual-style-property-editor-link > .visual-style-property-editor-link-border.right): (.visual-style-property-editor-link:not(.link-all) > .visual-style-property-editor-link-border): (.visual-style-property-editor-link:not(.link-all).linked > .visual-style-property-editor-link-border): (.visual-style-property-editor-link > .visual-style-property-editor-link-icon): (.visual-style-property-editor-link > .visual-style-property-editor-link-icon > .unlinked-icon): (.visual-style-property-editor-link > .visual-style-property-editor-link-icon > .unlinked-icon svg .filled): (.visual-style-property-editor-link > .visual-style-property-editor-link-icon > .unlinked-icon svg .stroked): (.visual-style-property-editor-link:not(.link-all) > .visual-style-property-editor-link-icon): (.visual-style-property-editor-link.link-all > .visual-style-property-editor-link-icon): * UserInterface/Views/VisualStylePropertyEditorLink.js: Added. (WebInspector.VisualStylePropertyEditorLink): (WebInspector.VisualStylePropertyEditorLink.prototype.get element): (WebInspector.VisualStylePropertyEditorLink.prototype.set disabled): (WebInspector.VisualStylePropertyEditorLink.prototype._linkedPropertyValueChanged): (WebInspector.VisualStylePropertyEditorLink.prototype._updateLinkedEditors): (WebInspector.VisualStylePropertyEditorLink.prototype._iconMouseover): (WebInspector.VisualStylePropertyEditorLink.prototype._iconMouseout): (WebInspector.VisualStylePropertyEditorLink.prototype._iconClicked): * UserInterface/Views/VisualStyleRelativeNumberSlider.css: Added. (.visual-style-property-container.number-input-box.relative-number-slider > .visual-style-property-title): (.visual-style-property-container.number-input-box.relative-number-slider > .visual-style-property-value-container): (.visual-style-property-container.number-input-box.relative-number-slider.disabled > .relative-slider): (.visual-style-property-container.number-input-box.relative-number-slider > .visual-style-property-value-container.no-values.no-units): (.visual-style-property-container.number-input-box.relative-number-slider > .relative-slider): * UserInterface/Views/VisualStyleRelativeNumberSlider.js: Added. (WebInspector.VisualStyleRelativeNumberSlider): (WebInspector.VisualStyleRelativeNumberSlider.prototype.set scale): (WebInspector.VisualStyleRelativeNumberSlider.prototype.updateEditorValues): (WebInspector.VisualStyleRelativeNumberSlider.prototype._resetSlider): (WebInspector.VisualStyleRelativeNumberSlider.prototype._sliderChanged): (WebInspector.VisualStyleRelativeNumberSlider.prototype._numberInputChanged): 2015-08-10 Devin Rousso Web Inspector: Add different types of non-numerical Visual editors for CSS properties https://bugs.webkit.org/show_bug.cgi?id=147711 Added editors for keyword based CSS properties for use in the Visual style details panel in the CSS sidebar. Also added images for keyword values that are simple enough to be conveyed in an image. Reviewed by Brian Burg. * UserInterface/Images/ClearBoth.svg: Added. * UserInterface/Images/ClearLeft.svg: Added. * UserInterface/Images/ClearRight.svg: Added. * UserInterface/Images/FloatLeft.svg: Added. * UserInterface/Images/FloatRight.svg: Added. * UserInterface/Images/FontStyleItalic.svg: Added. * UserInterface/Images/FontStyleNormal.svg: Added. * UserInterface/Images/FontVariantSmallCaps.svg: Added. * UserInterface/Images/TextAlignCenter.svg: Added. * UserInterface/Images/TextAlignJustify.svg: Added. * UserInterface/Images/TextAlignLeft.svg: Added. * UserInterface/Images/TextAlignRight.svg: Added. * UserInterface/Images/TextDecorationLineThrough.svg: Added. * UserInterface/Images/TextDecorationOverline.svg: Added. * UserInterface/Images/TextDecorationUnderline.svg: Added. * UserInterface/Images/TextTransformCapitalize.svg: Added. * UserInterface/Images/TextTransformLowercase.svg: Added. * UserInterface/Images/TextTransformUppercase.svg: Added. * UserInterface/Images/VisualStyleNone.svg: Added. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches): Changed color swatch title. * UserInterface/Views/Slider.js: (WebInspector.Slider): (WebInspector.Slider.prototype.set value): (WebInspector.Slider.prototype.set knobX): (WebInspector.Slider.prototype.get maxX): If the given value is below 0, reset it to 0. (WebInspector.Slider.prototype._handleMousedown): (WebInspector.Slider.prototype._handleMousemove): (WebInspector.Slider.prototype.get _maxX): Deleted. * UserInterface/Views/VisualStyleColorPicker.css: Added. (.visual-style-property-container.input-color-picker > .visual-style-property-value-container): (.visual-style-property-container.input-color-picker > .visual-style-property-value-container > .visual-style-special-property-placeholder): (.visual-style-property-container.input-color-picker > .visual-style-property-value-container > .color-swatch): (.visual-style-property-container.input-color-picker > .visual-style-property-value-container > .color-swatch:hover): (.visual-style-property-container.input-color-picker > .visual-style-property-value-container > .color-swatch:active): (.visual-style-property-container.input-color-picker > .visual-style-property-value-container > .color-swatch > span): (.visual-style-property-container.input-color-picker > .visual-style-property-value-container > input): (.visual-style-property-container.input-color-picker.multiple > .visual-style-property-value-container > .visual-style-multiple-property-placeholder): * UserInterface/Views/VisualStyleColorPicker.js: Added. (WebInspector.VisualStyleColorPicker): (WebInspector.VisualStyleColorPicker.prototype.get value): (WebInspector.VisualStyleColorPicker.prototype.set value): (WebInspector.VisualStyleColorPicker.prototype.get placeholder): (WebInspector.VisualStyleColorPicker.prototype.set placeholder): (WebInspector.VisualStyleColorPicker.prototype.get synthesizedValue): (WebInspector.VisualStyleColorPicker.prototype.get hasCompletions): (WebInspector.VisualStyleColorPicker.prototype.set completions): (WebInspector.VisualStyleColorPicker.prototype._updateColorSwatch): (WebInspector.VisualStyleColorPicker.prototype._colorSwatchClicked): (WebInspector.VisualStyleColorPicker.prototype._colorPickerColorDidChange): (WebInspector.VisualStyleColorPicker.prototype._completionClicked): (WebInspector.VisualStyleColorPicker.prototype._textInputKeyDown): (WebInspector.VisualStyleColorPicker.prototype._textInputKeyUp): (WebInspector.VisualStyleColorPicker.prototype._showCompletionsIfAble): (WebInspector.VisualStyleColorPicker.prototype._hideCompletions): (WebInspector.VisualStyleColorPicker.prototype._toggleTabbingOfSelectableElements): * UserInterface/Views/VisualStyleKeywordCheckbox.css: Added. (.visual-style-property-container.keyword-checkbox > .visual-style-property-value-container): (.visual-style-property-container.keyword-checkbox > .visual-style-property-value-container > input): (.visual-style-property-container.keyword-checkbox > .visual-style-property-value-container > div): * UserInterface/Views/VisualStyleKeywordCheckbox.js: Added. (WebInspector.VisualStyleKeywordCheckbox): (WebInspector.VisualStyleKeywordCheckbox.prototype.get value): (WebInspector.VisualStyleKeywordCheckbox.prototype.set value): (WebInspector.VisualStyleKeywordCheckbox.prototype.get synthesizedValue): (WebInspector.VisualStyleKeywordCheckbox.prototype._toggleTabbingOfSelectableElements): * UserInterface/Views/VisualStyleKeywordIconList.css: Added. (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon:first-child): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon:last-child): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon:matches(.computed, .selected)): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon.selected): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon.selected svg .stroked): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon.selected svg .filled): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon:matches(.computed, .selected) + .keyword-icon): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon > div): (.visual-style-property-container.keyword-icon-list > .visual-style-property-value-container > .keyword-icon-list-container > .keyword-icon:not(.selected) > div): * UserInterface/Views/VisualStyleKeywordIconList.js: Added. (WebInspector.VisualStyleKeywordIconList.dashToCapital): (WebInspector.VisualStyleKeywordIconList.createListItem): (WebInspector.VisualStyleKeywordIconList): (WebInspector.VisualStyleKeywordIconList.prototype.get value): (WebInspector.VisualStyleKeywordIconList.prototype.set value): (WebInspector.VisualStyleKeywordIconList.prototype.get synthesizedValue): (WebInspector.VisualStyleKeywordIconList.prototype._handleKeywordChanged): * UserInterface/Views/VisualStyleKeywordPicker.js: Added. (WebInspector.VisualStyleKeywordPicker): (WebInspector.VisualStyleKeywordPicker.prototype.get value): (WebInspector.VisualStyleKeywordPicker.prototype.set value): (WebInspector.VisualStyleKeywordPicker.prototype.set placeholder): (WebInspector.VisualStyleKeywordPicker.prototype.get synthesizedValue): (WebInspector.VisualStyleKeywordPicker.prototype.updateEditorValues): (WebInspector.VisualStyleKeywordPicker.prototype._handleKeywordChanged): (WebInspector.VisualStyleKeywordPicker.prototype._keywordSelectMouseDown): (WebInspector.VisualStyleKeywordPicker.prototype._addValues): (WebInspector.VisualStyleKeywordPicker.prototype._addAdvancedValues): (WebInspector.VisualStyleKeywordPicker.prototype._removeAdvancedValues): (WebInspector.VisualStyleKeywordPicker.prototype._toggleTabbingOfSelectableElements): * UserInterface/Views/VisualStylePropertyNameInput.js: Added. (WebInspector.VisualStylePropertyNameInput): (WebInspector.VisualStylePropertyNameInput.prototype.get value): (WebInspector.VisualStylePropertyNameInput.prototype.set value): (WebInspector.VisualStylePropertyNameInput.prototype.get synthesizedValue): (WebInspector.VisualStylePropertyNameInput.prototype.get hasCompletions): (WebInspector.VisualStylePropertyNameInput.prototype.set completions): (WebInspector.VisualStylePropertyNameInput.prototype._completionClicked): (WebInspector.VisualStylePropertyNameInput.prototype._inputKeyDown): (WebInspector.VisualStylePropertyNameInput.prototype._inputKeyUp): (WebInspector.VisualStylePropertyNameInput.prototype._hideCompletions): (WebInspector.VisualStylePropertyNameInput.prototype._toggleTabbingOfSelectableElements): * UserInterface/Views/VisualStyleURLInput.js: Added. (WebInspector.VisualStyleURLInput): (WebInspector.VisualStyleURLInput.prototype.set get value): (WebInspector.VisualStyleURLInput.prototype.parseValue): * UserInterface/Views/VisualStyleUnitSlider.css: Added. (.visual-style-property-container.unit-slider > .visual-style-property-value-container > .slider): (.visual-style-property-container.unit-slider > .visual-style-property-value-container > .slider > img): (.visual-style-property-container.unit-slider.opacity > .visual-style-property-value-container > .slider): * UserInterface/Views/VisualStyleUnitSlider.js: Added. (WebInspector.VisualStyleUnitSlider): (WebInspector.VisualStyleUnitSlider.prototype.set value): (WebInspector.VisualStyleUnitSlider.prototype.get value): (WebInspector.VisualStyleUnitSlider.prototype.get synthesizedValue): (WebInspector.VisualStyleUnitSlider.prototype.sliderValueDidChange): 2015-08-10 Devin Rousso Web Inspector: Add VisualStyleSelectorSection https://bugs.webkit.org/show_bug.cgi?id=147572 Reviewed by Brian Burg. Adds a section to the new Visual style sidebar panel that contains the list of styles for the currently selected node. * UserInterface/Models/CSSRule.js: (WebInspector.CSSRule.prototype.get mediaText): Returns a string containing the list of media queries. * UserInterface/Models/CSSStyleDeclaration.js: (WebInspector.CSSStyleDeclaration): (WebInspector.CSSStyleDeclaration.prototype.set text): (WebInspector.CSSStyleDeclaration.prototype.get modified): (WebInspector.CSSStyleDeclaration.prototype.resetText): (WebInspector.CSSStyleDeclaration.prototype.generateCSSRuleString): Generates a formatted string of the style text. * UserInterface/Views/CSSStyleDeclarationSection.js: (WebInspector.CSSStyleDeclarationSection.prototype._handleContextMenuEvent): (WebInspector.CSSStyleDeclarationSection.prototype._generateCSSRuleString): Deleted. * UserInterface/Views/VisualStyleSelectorSection.css: Added. (.details-section.visual-style-selector-section > .header): (.details-section.visual-style-selector-section:not(.collapsed) > .header): (@media (-webkit-min-device-pixel-ratio: 2)): (.details-section.visual-style-selector-section > .header > .current-selector): (.visual-style-selector-section.details-section:not(.collapsed) > .header > .current-selector): (.details-section.visual-style-selector-section > .header > .current-selector > .icon): (.details-section.visual-style-selector-section > .header > .current-selector > span): (.details-section.visual-style-selector-section > .header > .controls): (.details-section.visual-style-selector-section.collapsed > .header > .controls): (.details-section.visual-style-selector-section > .header > .controls > .visual-style-selector-section-add-rule): (.details-section.visual-style-selector-section > .content > .selectors): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .visual-style-selector-item:nth-child(odd)): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider > .icon): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider > :matches(.disclosure-button, .icon)): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider > .titles > .title): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider ~ .visual-style-selector-item:nth-child(even)): (.details-section.visual-style-selector-section > .content > .selectors > .selector-list > .section-divider ~ .visual-style-selector-item:nth-child(odd)): * UserInterface/Views/VisualStyleSelectorSection.js: Added. (WebInspector.VisualStyleSelectorSection): (WebInspector.VisualStyleSelectorSection.prototype.update.createSelectorItem): (WebInspector.VisualStyleSelectorSection.prototype.update.uniqueOrderedRules): (WebInspector.VisualStyleSelectorSection.prototype.update.insertAllMatchingPseudoRules): (WebInspector.VisualStyleSelectorSection.prototype.update): (WebInspector.VisualStyleSelectorSection.prototype.currentStyle): (WebInspector.VisualStyleSelectorSection.prototype._selectorChanged): (WebInspector.VisualStyleSelectorSection.prototype._styleTextReset): (WebInspector.VisualStyleSelectorSection.prototype._addNewRule): (WebInspector.VisualStyleSelectorSection.prototype._treeElementCheckboxToggled): (WebInspector.VisualStyleSelectorSection.prototype._handleMouseOver): (WebInspector.VisualStyleSelectorSection.prototype._handleMouseOut): * UserInterface/Views/VisualStyleSelectorTreeItem.css: (.item.visual-style-selector-item): (.item.visual-style-selector-item.selected): (.item.visual-style-selector-item > .disclosure-button): (.item.visual-style-selector-item > input[type="checkbox"]): (.item.visual-style-selector-item > .icon): (.item.visual-style-selector-item.modified > .icon): (.item.visual-style-selector-item.selector-invalid > .icon): (.item.visual-style-selector-item.selector-invalid > .titles > .title): (.item.visual-style-selector-item.selector-invalid > .titles > .title::before): (.item.visual-style-selector-item > .titles): (.item.visual-style-selector-item:not(.dom-element-icon) > .titles > .title): (.item.visual-style-selector-item:not(.dom-element-icon).editable > .titles > .title): (.item.visual-style-selector-item:not(.dom-element-icon).editable > .titles > .title:focus): (.item.visual-style-selector-item > .titles > .subtitle::before): (.item.visual-style-selector-item > .titles > .subtitle): * UserInterface/Views/VisualStyleSelectorTreeItem.js: (WebInspector.VisualStyleSelectorTreeItem): (WebInspector.VisualStyleSelectorTreeItem.prototype.get iconClassName): (WebInspector.VisualStyleSelectorTreeItem.prototype.get selectorText): (WebInspector.VisualStyleSelectorTreeItem.prototype.onattach): (WebInspector.VisualStyleSelectorTreeItem.prototype.ondeselect): (WebInspector.VisualStyleSelectorTreeItem.prototype._highlightNodesWithSelector): (WebInspector.VisualStyleSelectorTreeItem.prototype._hideDOMNodeHighlight): (WebInspector.VisualStyleSelectorTreeItem.prototype._handleContextMenuEvent): (WebInspector.VisualStyleSelectorTreeItem.prototype._handleCheckboxChanged): (WebInspector.VisualStyleSelectorTreeItem.prototype._updateCheckboxTitle): (WebInspector.VisualStyleSelectorTreeItem.prototype._handleMainTitleMouseDown): (WebInspector.VisualStyleSelectorTreeItem.prototype._handleMainTitleKeyDown): (WebInspector.VisualStyleSelectorTreeItem.prototype._commitSelector): (WebInspector.VisualStyleSelectorTreeItem.prototype._styleTextModified): (WebInspector.VisualStyleSelectorTreeItem.prototype._selectorChanged): 2015-08-10 Joseph Pecoraro Web Inspector: TDZ in ProbeSetDataGrid construction https://bugs.webkit.org/show_bug.cgi?id=147834 Reviewed by Timothy Hatcher. * UserInterface/Views/ProbeSetDataGrid.js: (WebInspector.ProbeSetDataGrid): Do not use "this" before calling super. 2015-08-08 Devin Rousso Web Inspector: Timeline ruler handle tooltip shows wrong value when handles overlap https://bugs.webkit.org/show_bug.cgi?id=147652 Reviewed by Timothy Hatcher. * UserInterface/Views/TimelineRuler.js: (WebInspector.TimelineRuler.prototype._updateSelection): Now changes the title depending on whether the selection start/end is clamped. 2015-08-08 Devin Rousso Web Inspector: Don't show "No Filter Results" when timeline is empty https://bugs.webkit.org/show_bug.cgi?id=147662 Reviewed by Timothy Hatcher. * UserInterface/Views/TimelineView.js: (WebInspector.TimelineView.prototype.reset): Now hides the empty content placeholder on timeline clear. 2015-08-07 Devin Rousso Web Inspector: Decrease the padding of each rule in the Rules sidebar to allow more content to show https://bugs.webkit.org/show_bug.cgi?id=147360 Reviewed by Timothy Hatcher. Generally tightened the padding around each section in the rules panel, as well as the content inside each section. Also moved the new rule button to be next to the filter bar. * UserInterface/Views/CSSStyleDeclarationSection.css: (.style-declaration-section): (.style-declaration-section.last-in-group): (.style-declaration-section.last-in-group + .style-declaration-section): Deleted. * UserInterface/Views/CSSStyleDeclarationTextEditor.css: (.css-style-text-editor): * UserInterface/Views/CSSStyleDetailsSidebarPanel.css: (.sidebar > .panel.details.css-style > .content > .pseudo-classes): (.sidebar > .panel.details.css-style > .content + .options-container): (.sidebar > .panel.details.css-style > .content:not(.supports-new-rule, .has-filter-bar) + .options-container): (.sidebar > .panel.details.css-style > .content + .options-container > .new-rule): (.sidebar > .panel.details.css-style > .content + .options-container > .filter-bar): (.sidebar > .panel.details.css-style > .content:not(.has-filter-bar) + .options-container > .filter-bar): (.sidebar > .panel.details.css-style > .content.has-filter-bar + .filter-bar): Deleted. (.sidebar > .panel.details.css-style > .content:not(.has-filter-bar) + .filter-bar): Deleted. * UserInterface/Views/CSSStyleDetailsSidebarPanel.js: (WebInspector.CSSStyleDetailsSidebarPanel): (WebInspector.CSSStyleDetailsSidebarPanel.prototype._switchPanels): (WebInspector.CSSStyleDetailsSidebarPanel.prototype._newRuleButtonClicked): * UserInterface/Views/RulesStyleDetailsPanel.css: (.sidebar > .panel.details.css-style .rules .label): * UserInterface/Views/RulesStyleDetailsPanel.js: (WebInspector.RulesStyleDetailsPanel.prototype.refresh.insertMediaOrInheritanceLabel): (WebInspector.RulesStyleDetailsPanel.prototype.newRuleButtonClicked): (WebInspector.RulesStyleDetailsPanel.prototype.refresh.addNewRuleButton): Deleted. (WebInspector.RulesStyleDetailsPanel.prototype.refresh): Deleted. (WebInspector.RulesStyleDetailsPanel.prototype._newRuleClicked): Deleted. 2015-08-07 Devin Rousso Web Inspector: Don't include zero-width space into a copied text from the console https://bugs.webkit.org/show_bug.cgi?id=147767 Reviewed by Timothy Hatcher. Now removes work break characters in generated javascript text when copying to the clipboard. Also replaced var with let in the modified functions. * UserInterface/Views/ConsoleCommandView.js: (WebInspector.ConsoleCommandView.prototype.toClipboardString): (WebInspector.ConsoleCommandView): * UserInterface/Views/ConsoleMessageView.js: (WebInspector.ConsoleMessageView.prototype.toClipboardString): 2015-08-07 Nikita Vasilyev Web Inspector: Simplify OS-specific CSS class names https://bugs.webkit.org/show_bug.cgi?id=147794 Replace "body:not(.el-capitan)" with ".legacy-mac". Replace "body.el-capitan" with ".latest-mac". Reviewed by Timothy Hatcher. * UserInterface/Base/Main.js: (WebInspector.contentLoaded): * UserInterface/Views/Toolbar.css: (body.legacy-mac .toolbar .dashboard-container): (body.legacy-mac .toolbar .search-bar > input[type="search"]): (body.legacy-mac .toolbar .search-bar > input[type="search"]:focus): (body.legacy-mac .toolbar .item.button:active): (body.window-inactive.legacy-mac .toolbar .dashboard-container): (body.latest-mac .toolbar .dashboard-container): (body.latest-mac .toolbar .search-bar > input[type="search"]): (body.latest-mac .toolbar .search-bar > input[type="search"]:focus): (@media (-webkit-min-device-pixel-ratio: 2)): (body.latest-mac .toolbar .item.button:active): (body.latest-mac.window-inactive .toolbar .dashboard-container): (body:not(.el-capitan) .toolbar .dashboard-container): Deleted. (body:not(.el-capitan) .toolbar .search-bar > input[type="search"]): Deleted. (body:not(.el-capitan) .toolbar .search-bar > input[type="search"]:focus): Deleted. (body:not(.el-capitan) .toolbar .item.button:active): Deleted. (body.window-inactive:not(.el-capitan) .toolbar .dashboard-container): Deleted. (body.el-capitan .toolbar .dashboard-container): Deleted. (body.el-capitan .toolbar .search-bar > input[type="search"]): Deleted. (body.el-capitan .toolbar .search-bar > input[type="search"]:focus): Deleted. (body.el-capitan .toolbar .item.button:active): Deleted. (body.el-capitan.window-inactive .toolbar .dashboard-container): Deleted. 2015-08-07 Devin Rousso Web Inspector: Option+Up/Down arrow keys should increment/decrement numbers in HTML and SVG attributes https://bugs.webkit.org/show_bug.cgi?id=147317 Reviewed by Timothy Hatcher. If the value under the cursor in an HTML element attribute is a number, pressing alt and up/down will increment/decrement the number value and apply that change to the element. * UserInterface/Views/BoxModelDetailsSectionRow.js: (WebInspector.BoxModelDetailsSectionRow.prototype._alteredFloatNumber): (WebInspector.BoxModelDetailsSectionRow.prototype._handleKeyDown): * UserInterface/Views/DOMTreeElement.js: (WebInspector.DOMTreeElement.prototype._startEditingAttribute): (WebInspector.DOMTreeElement.prototype._attributeEditingCommitted): (WebInspector.DOMTreeElement.prototype._attributeNumberEditingCommitted): * UserInterface/Views/EditingSupport.js: (WebInspector.EditingConfig.prototype.setNumberCommitHandler): (WebInspector.startEditing.defaultFinishHandler): (WebInspector.startEditing.handleEditingResult): 2015-08-05 Devin Rousso Web Inspector: Move the Metrics style sidebar panel into Computed https://bugs.webkit.org/show_bug.cgi?id=147715 Reviewed by Timothy Hatcher. Deleted the Metrics sidebar panel and moved its contents into the Computed sidebar panel. In addition, not hovering over the Metrics section will display the colors of each box. * UserInterface/Main.html: * UserInterface/Views/BoxModelDetailsSectionRow.css: (.details-section .row.box-model :matches(.position, .margin, .border, .padding, .content)): (.details-section .row.box-model .position): (.details-section .row.box-model .margin): (.details-section .row.box-model .border): (.details-section .row.box-model .padding): (.details-section .row.box-model :matches(.content span, .top, .right, .bottom, .left)): (.details-section .row.box-model :matches(.right, .left)): (.details-section .row.box-model .content): Deleted. (.details-section .row.box-model .content span): Deleted. (.details-section .row.box-model .left): Deleted. (.details-section .row.box-model .right): Deleted. (.details-section .row.box-model .top): Deleted. (.details-section .row.box-model .bottom): Deleted. * UserInterface/Views/BoxModelDetailsSectionRow.js: (WebInspector.BoxModelDetailsSectionRow.prototype._highlightDOMNode): If no metric box is hovered, apply a class to the entire section. * UserInterface/Views/CSSStyleDetailsSidebarPanel.js: (WebInspector.CSSStyleDetailsSidebarPanel): Removed the usage of MetricsStyleDetailsPanel. * UserInterface/Views/ComputedStyleDetailsPanel.css: (.details-section.style-box-model:not(.collapsed) > :matches(.header, .content)): Give the metrics section in the Computed panel a white background. * UserInterface/Views/ComputedStyleDetailsPanel.js: (WebInspector.ComputedStyleDetailsPanel): (WebInspector.ComputedStyleDetailsPanel.prototype.refresh): Don't refresh the content unless the change is significant (without this, you cannot edit metrics values using the arrow keys). * UserInterface/Views/MetricsStyleDetailsPanel.js: Removed. 2015-08-05 Devin Rousso Web Inspector: Bezier curve visual editor https://bugs.webkit.org/show_bug.cgi?id=134501 Reviewed by Timothy Hatcher. Added a visual Cubic Bezier curve editor that is usable in both the CSS sidebar and the resources panel. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Base/DOMUtilities.js: (createSVGElement): * UserInterface/Controllers/CodeMirrorBezierEditingController.js: (WebInspector.CodeMirrorBezierEditingController): (WebInspector.CodeMirrorBezierEditingController.prototype.get initialValue): (WebInspector.CodeMirrorBezierEditingController.prototype.get cssClassName): (WebInspector.CodeMirrorBezierEditingController.prototype.popoverWillPresent): (WebInspector.CodeMirrorBezierEditingController.prototype.popoverDidPresent): (WebInspector.CodeMirrorBezierEditingController.prototype._bezierEditorBezierChanged): * UserInterface/Images/CubicBezier.svg: Added. * UserInterface/Main.html: * UserInterface/Models/Geometry.js: (WebInspector.Point.prototype.distance): (WebInspector.Point): (WebInspector.CubicBezier): (WebInspector.CubicBezier.fromPoints): (WebInspector.CubicBezier.fromString): (WebInspector.CubicBezier.prototype.get inPoint): (WebInspector.CubicBezier.prototype.get outPoint): (WebInspector.CubicBezier.prototype.copy): (WebInspector.CubicBezier.prototype.toString): (WebInspector.CubicBezier.prototype.solve): (WebInspector.CubicBezier.prototype._sampleCurveX): (WebInspector.CubicBezier.prototype._sampleCurveY): (WebInspector.CubicBezier.prototype._sampleCurveDerivativeX): (WebInspector.CubicBezier.prototype._solveCurveX): * UserInterface/Models/TextMarker.js: * UserInterface/Models/UnitBezier.js: Removed. * UserInterface/Views/BezierEditor.css: Added. (.bezier-editor): (.bezier-editor > .bezier-preview): (.bezier-editor > .bezier-preview > div): (.bezier-editor > .bezier-preview-timing): (.bezier-editor > .bezier-preview-timing.animate): (.bezier-editor > .bezier-container): (@keyframes bezierPreview): (.bezier-editor > .bezier-container): (.bezier-editor > .bezier-container .linear-curve): (.bezier-editor > .bezier-container .bezier-curve): (.bezier-editor > .bezier-container .control-line): (.bezier-editor > .bezier-container .control-handle): * UserInterface/Views/BezierEditor.js: Added. (WebInspector.BezierEditor.createControl): (WebInspector.BezierEditor): (WebInspector.BezierEditor.prototype.get element): (WebInspector.BezierEditor.prototype.set bezier): (WebInspector.BezierEditor.prototype.get bezier): (WebInspector.BezierEditor.prototype.handleEvent): (WebInspector.BezierEditor.prototype._handleMousedown): (WebInspector.BezierEditor.prototype._handleMousemove): (WebInspector.BezierEditor.prototype._handleMouseup): (WebInspector.BezierEditor.prototype._updateControlPointsForMouseEvent): (WebInspector.BezierEditor.prototype._updateValue.round): (WebInspector.BezierEditor.prototype._updateValue): (WebInspector.BezierEditor.prototype._updateBezier): (WebInspector.BezierEditor.prototype._updateControl): (WebInspector.BezierEditor.prototype._triggerPreviewAnimation): (WebInspector.BezierEditor.prototype._resetPreviewAnimation): * UserInterface/Views/CSSStyleDeclarationTextEditor.css: (.css-style-text-editor > .CodeMirror .CodeMirror-lines .cubic-bezier-marker): (.css-style-text-editor > .CodeMirror .CodeMirror-lines .cubic-bezier-marker:hover): (.css-style-text-editor > .CodeMirror .CodeMirror-lines .cubic-bezier-marker:active): * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype.didDismissPopover): (WebInspector.CSSStyleDeclarationTextEditor.prototype._contentChanged): (WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers): (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches): (WebInspector.CSSStyleDeclarationTextEditor.prototype._createBezierEditors.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._createBezierEditors): (WebInspector.CSSStyleDeclarationTextEditor.prototype._commentProperty.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._commentProperty): (WebInspector.CSSStyleDeclarationTextEditor.prototype._uncommentRange.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._uncommentRange): (WebInspector.CSSStyleDeclarationTextEditor.prototype._cubicBezierMarkerClicked.updateCodeMirror.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._cubicBezierMarkerClicked.updateCodeMirror): (WebInspector.CSSStyleDeclarationTextEditor.prototype._cubicBezierMarkerClicked): (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update): (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent): * UserInterface/Views/CodeMirrorAdditions.js: * UserInterface/Views/CodeMirrorTextMarkers.js: Added. (createCodeMirrorTextMarkers): (createCodeMirrorColorTextMarkers): (createCodeMirrorGradientTextMarkers): (createCodeMirrorCubicBezierTextMarkers): * UserInterface/Views/Popover.js: (WebInspector.Popover.prototype._animateFrame): * UserInterface/Views/SourceCodeTextEditor.js: (WebInspector.SourceCodeTextEditor.prototype._updateEditableMarkers): (WebInspector.SourceCodeTextEditor.prototype._tokenTrackingControllerHighlightedMarkedExpression): * UserInterface/Views/TextEditor.js: (WebInspector.TextEditor.prototype.createColorMarkers): (WebInspector.TextEditor.prototype.createGradientMarkers): (WebInspector.TextEditor.prototype.createCubicBezierMarkers): (WebInspector.TextEditor.prototype.editingControllerForMarker): 2015-08-05 Nikita Vasilyev Web Inspector: Logging error objects should have a better UI https://bugs.webkit.org/show_bug.cgi?id=143853 Previously, an error object looked like any other object, which wasn't very useful. Source links couldn't be clicked and stacktraces were unreadable. Unify console.trace, caught and uncaught exceptions. The following examples use the same StaceTraceView: - ({}).x.y - try { ({}).x.y } catch (e) { console.log(e); } - console.trace() Reviewed by Brian Burg. * UserInterface/Main.html: * UserInterface/Models/CallFrame.js: (WebInspector.CallFrame.fromPayload): (WebInspector.CallFrame): * UserInterface/Protocol/RemoteObject.js: (WebInspector.RemoteObject.prototype.getOwnPropertyDescriptorsAsObject): * UserInterface/Test.html: * UserInterface/Views/CallFrameView.css: (.call-frame .separator): (.call-frame .subtitle .source-link): Deleted. (.call-frame:focus .subtitle .source-link): Deleted. (.call-frame .subtitle:empty): Deleted. (.call-frame .subtitle): Deleted. * UserInterface/Views/CallFrameView.js: (WebInspector.CallFrameView): - Start usind CallFrameView in stacktraces. - Introduce showFunctionName optional argument. In stacktraces anonymous functions are shown as "(anonymous function)" but in console message location links (the ones on the right side of a console message) we omit them. - Dash was a pseudo-element and it couldn't be copied to the clipboard. Make it an actual HTML element. * UserInterface/Views/ConsoleMessageView.css: (.console-message-location.call-frame): (.console-message-location.call-frame > .title): (.console-message-location.call-frame > .subtitle > .source-link): Since .call-frame rules are now used in stacktraces, move console message specific rules from CallFrameView.css to ConsoleMessageView.css. * UserInterface/Views/ConsoleMessageView.js: (WebInspector.ConsoleMessageView.prototype._appendLocationLink): (WebInspector.ConsoleMessageView.prototype._appendStackTrace): (WebInspector.ConsoleMessageView.prototype._formatParameter): (WebInspector.ConsoleMessageView.prototype._formatParameterAsError): Added. Format errors differently from other objects. * UserInterface/Views/ErrorObjectView.css: Added. (.error-object::before): (.error-object.expanded::before): (.error-object-link-container): (.error-object.expanded > .formatted-error > .error-object-link-container): (.error-object:not(.expanded) .error-object-outline): (.error-object-outline): * UserInterface/Views/ErrorObjectView.js: Added. (WebInspector.ErrorObjectView): (WebInspector.ErrorObjectView.parseStackTrace): (WebInspector.ErrorObjectView.makeSourceLinkWithPrefix): (WebInspector.ErrorObjectView.prototype.get object): (WebInspector.ErrorObjectView.prototype.get element): (WebInspector.ErrorObjectView.prototype.get treeOutline): (WebInspector.ErrorObjectView.prototype.get expanded): (WebInspector.ErrorObjectView.prototype.update): (WebInspector.ErrorObjectView.prototype.expand): (WebInspector.ErrorObjectView.prototype.collapse): (WebInspector.ErrorObjectView.prototype._handlePreviewOrTitleElementClick): (WebInspector.ErrorObjectView.prototype._buildStackTrace): ErrorObjectView is used to log caught exceptions, e.g.: try { i.dont.exist++ } catch (e) { console.log(e) } * UserInterface/Views/FormattedValue.js: (WebInspector.FormattedValue.createElementForError): Added. Create error preview. (WebInspector.FormattedValue.createElementForTypesAndValue): Fix typo. (WebInspector.FormattedValue.createObjectPreviewOrFormattedValueForRemoteObject): Format errors differently from other objects. 2015-08-05 Matt Baker Web Inspector: REGRESSION (r187634): Script time is missing from the frames timeline https://bugs.webkit.org/show_bug.cgi?id=147654 Reviewed by Brian Burg. Use the current stack entry's parent record when pushing a new stack entry, if no TimelineRecord was generated from the parent record payload. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.eventRecorded): Don't create a stack entry when record payload children array is empty. 2015-08-05 Matt Baker Web Inspector: REGRESSION (r187900): Breakpoint context menu is broken in Debugger tab https://bugs.webkit.org/show_bug.cgi?id=147699 Reviewed by Timothy Hatcher. * UserInterface/Views/SourceCodeTextEditor.js: Skip only the separator and "Reveal in Debugger tab" menu items. 2015-08-05 Brian Burg Web Inspector: use super calls in more places https://bugs.webkit.org/show_bug.cgi?id=147696 Reviewed by Timothy Hatcher. A few opportunities for super calls were overlooked when converting to classes. * UserInterface/Views/BreakpointTreeElement.js: (WebInspector.BreakpointTreeElement.prototype.onattach): (WebInspector.BreakpointTreeElement.prototype.ondetach): * UserInterface/Views/CallFrameTreeElement.js: (WebInspector.CallFrameTreeElement.prototype.onattach): (WebInspector.CallFrameTreeElement): * UserInterface/Views/DebuggerTabContentView.js: (WebInspector.DebuggerTabContentView.prototype.showDetailsSidebarPanels): * UserInterface/Views/ProfileNodeTreeElement.js: (WebInspector.ProfileNodeTreeElement.prototype.onattach): * UserInterface/Views/SourceCodeTextEditor.js: (WebInspector.SourceCodeTextEditor.prototype.shown): (WebInspector.SourceCodeTextEditor.prototype.hidden): (WebInspector.SourceCodeTextEditor.prototype.canBeFormatted): * UserInterface/Views/SourceCodeTreeElement.js: (WebInspector.SourceCodeTreeElement.prototype.onattach): * UserInterface/Views/TimelineRecordTreeElement.js: (WebInspector.TimelineRecordTreeElement.prototype.onattach): (WebInspector.TimelineRecordTreeElement): 2015-08-05 Brian Burg Web Inspector: remove unused Object.deprecatedAddConstructorFunctions https://bugs.webkit.org/show_bug.cgi?id=147690 Reviewed by Timothy Hatcher. This is no longer used following the conversion to ES6 classes. * UserInterface/Base/Object.js: (WebInspector.Object.deprecatedAddConstructorFunctions): Deleted. 2015-08-05 Brian Burg Web Inspector: Convert miscellaneous view widgets to use ES6 classes https://bugs.webkit.org/show_bug.cgi?id=147658 Reviewed by Joseph Pecoraro. Along the way, inline a few style class names. Elided mechanical changes from the Changelog. * UserInterface/Base/Test.js: * UserInterface/Views/CSSStyleDeclarationSection.js: * UserInterface/Views/ConsolePrompt.js: * UserInterface/Views/ContentBrowser.js: * UserInterface/Views/ContentViewContainer.js: * UserInterface/Views/DOMTreeDataGridNode.js: * UserInterface/Views/IndeterminateProgressSpinner.js: * UserInterface/Views/NavigationBar.js: * UserInterface/Views/ProbeSetDataGridNode.js: * UserInterface/Views/QuickConsoleNavigationBar.js: * UserInterface/Views/Toolbar.js: 2015-08-05 Brian Burg Web Inspector: Convert remaining ContentViews to use ES6 classes https://bugs.webkit.org/show_bug.cgi?id=147534 Reviewed by Joseph Pecoraro. Along the way, inline a few style class names. Elided mechanical changes from the Changelog. * UserInterface/Views/ApplicationCacheFrameContentView.js: * UserInterface/Views/ClusterContentView.js: * UserInterface/Views/ConsoleTabContentView.js: * UserInterface/Views/ContentBrowserTabContentView.js: Rearrange initialization of the tab's content browser to comply with TDZ rules for using `this`. * UserInterface/Views/ContentFlowDOMTreeContentView.js: * UserInterface/Views/ContentView.js: * UserInterface/Views/ContentViewContainer.js: * UserInterface/Views/CookieStorageContentView.js: * UserInterface/Views/DOMStorageContentView.js: * UserInterface/Views/DOMTreeContentView.js: * UserInterface/Views/DatabaseContentView.js: * UserInterface/Views/DatabaseTableContentView.js: * UserInterface/Views/DebuggerTabContentView.js: * UserInterface/Views/ElementsTabContentView.js: * UserInterface/Views/FontResourceContentView.js: * UserInterface/Views/FrameDOMTreeContentView.js: * UserInterface/Views/GenericResourceContentView.js: * UserInterface/Views/ImageResourceContentView.js: * UserInterface/Views/IndexedDatabaseObjectStoreContentView.js: * UserInterface/Views/LogContentView.js: * UserInterface/Views/NetworkGridContentView.js: * UserInterface/Views/NetworkTabContentView.js: * UserInterface/Views/NewTabContentView.js: * UserInterface/Views/ResourceClusterContentView.js: * UserInterface/Views/ResourceContentView.js: * UserInterface/Views/ResourcesTabContentView.js: * UserInterface/Views/ScriptContentView.js: * UserInterface/Views/SearchTabContentView.js: * UserInterface/Views/SettingsTabContentView.js: * UserInterface/Views/StorageTabContentView.js: * UserInterface/Views/TabContentView.js: * UserInterface/Views/TextContentView.js: * UserInterface/Views/TextResourceContentView.js: * UserInterface/Views/TimelineRecordingContentView.js: 2015-08-05 Devin Rousso Web Inspector: Allow users to duplicate rules in the Rules sidebar panel https://bugs.webkit.org/show_bug.cgi?id=147361 Reviewed by Timothy Hatcher. Adds context menu option to non-inherited rules that, when clicked, creates a new rule with the same selector and no properties, and then focuses it. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Models/DOMNodeStyles.js: (WebInspector.DOMNodeStyles.prototype.addRuleWithSelector.addedRule): (WebInspector.DOMNodeStyles.prototype.addRuleWithSelector): * UserInterface/Views/CSSStyleDeclarationSection.js: (WebInspector.CSSStyleDeclarationSection.prototype.get _currentSelectorText): (WebInspector.CSSStyleDeclarationSection.prototype._handleContextMenuEvent): * UserInterface/Views/RulesStyleDetailsPanel.js: (WebInspector.RulesStyleDetailsPanel.prototype.cssStyleDeclarationSectionFocusNextNewInspectorRule): 2015-08-04 Matt Baker Web Inspector: Layout & Rendering timeline grid should show TimelineRecord parent/child relationships https://bugs.webkit.org/show_bug.cgi?id=147468 Reviewed by Brian Burg. Layout timeline data grid now shows record nesting for Layout and Composite events. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.eventRecorded): * UserInterface/Models/TimelineRecord.js: (WebInspector.TimelineRecord.prototype.get parent): (WebInspector.TimelineRecord.prototype.set parent): Preserve timeline record parent/child relationship. * UserInterface/Views/LayoutTimelineView.js: (WebInspector.LayoutTimelineView): Style change for disclosure triangle support. (WebInspector.LayoutTimelineView.prototype._layoutTimelineRecordAdded): Only process immediate children of the rendering frame record. 2015-08-04 Devin Rousso Web Inspector: "No Filter Results" overlaps other UI elements when docked Inspector is small https://bugs.webkit.org/show_bug.cgi?id=147659 Reviewed by Timothy Hatcher. Hide overflow of empty content label containers in navigation sidebars. * UserInterface/Views/NavigationSidebarPanel.css: (.sidebar > .panel.navigation > .empty-content-placeholder): 2015-08-04 Joseph Pecoraro Improve some LayoutTests/inspector flakey output for tests with InspectorTest.reloadPage https://bugs.webkit.org/show_bug.cgi?id=147655 Reviewed by Timothy Hatcher. * UserInterface/Base/Test.js: (InspectorTest.reloadPage): Immediately mark the page as reloading so that any logs that may happen before the callback for PageAgent.reload wait to be sent after the page load. What was happening in flakey results was that the logs were happening before this callback, and therefore getting logged and then resent after page load and getting relogged. 2015-08-04 Devin Rousso Web Inspector: Existing text after completions do not have their completion style removed once hint is applied https://bugs.webkit.org/show_bug.cgi?id=147536 Reviewed by Timothy Hatcher. No longer applies a class to the text after the completion hint. * UserInterface/Controllers/CodeMirrorCompletionController.css: (.CodeMirror .CodeMirror-lines .completion-hint): * UserInterface/Controllers/CodeMirrorCompletionController.js: (WebInspector.CodeMirrorCompletionController.prototype._applyCompletionHint.update): (WebInspector.CodeMirrorCompletionController.prototype._applyCompletionHint): (WebInspector.CodeMirrorCompletionController.prototype._removeCompletionHint.clearMarker): (WebInspector.CodeMirrorCompletionController.prototype._removeCompletionHint.update): (WebInspector.CodeMirrorCompletionController.prototype._removeCompletionHint): 2015-08-04 Matt Baker Web Inspector: Don't show 'Reveal In Debugger Tab' menu item if already in Debugger tab https://bugs.webkit.org/show_bug.cgi?id=147554 Reviewed by Timothy Hatcher. Check current tab before appending context menu items. * UserInterface/Base/Main.js: (WebInspector.isShowingDebuggerTab): * UserInterface/Views/SourceCodeTextEditor.js: 2015-08-04 Devin Rousso Web Inspector: buttons in new tab screen lack hover styles https://bugs.webkit.org/show_bug.cgi?id=145355 Reviewed by Timothy Hatcher. Added hover brightness filter to new tab buttons. * UserInterface/Views/NewTabContentView.css: (.new-tab.tab.content-view > .tab-item:not(.disabled):hover > .box): (.new-tab.tab.content-view > .tab-item:not(.disabled):active > .box): 2015-08-04 Devin Rousso Web Inspector: Merge the styles sidebar navigation bar into a selectable item in the elements sidebar https://bugs.webkit.org/show_bug.cgi?id=146878 Reviewed by Timothy Hatcher. Replaced the default navigationItem of the CSSStyleDetailsSidebarPanel with a ScopeRadioButtonNavigationItem that will open a select element containing the labels of each style sidebar when reselected. * Localizations/en.lproj/localizedStrings.js: * UserInterface/Main.html: * UserInterface/Views/ComputedStyleDetailsPanel.js: (WebInspector.ComputedStyleDetailsPanel): * UserInterface/Views/CSSStyleDetailsSidebarPanel.css: (.sidebar > .panel.details.css-style > .content): * UserInterface/Views/CSSStyleDetailsSidebarPanel.js: (WebInspector.CSSStyleDetailsSidebarPanel): (WebInspector.CSSStyleDetailsSidebarPanel.prototype.computedStyleDetailsPanelShowProperty): (WebInspector.CSSStyleDetailsSidebarPanel.prototype._panelMatchingIdentifier): (WebInspector.CSSStyleDetailsSidebarPanel.prototype._handleSelectedItemChanged): (WebInspector.CSSStyleDetailsSidebarPanel.prototype.visibilityDidChange): (WebInspector.CSSStyleDetailsSidebarPanel.prototype._navigationItemSelected): Deleted. * UserInterface/Views/DOMDetailsSidebarPanel.js: (WebInspector.DOMDetailsSidebarPanel): * UserInterface/Views/DetailsSidebarPanel.js: (WebInspector.DetailsSidebarPanel): * UserInterface/Views/MetricsStyleDetailsPanel.js: (WebInspector.MetricsStyleDetailsPanel): * UserInterface/Views/NavigationBar.js: (WebInspector.NavigationBar.prototype._mouseDown): * UserInterface/Views/RulesStyleDetailsPanel.js: (WebInspector.RulesStyleDetailsPanel): * UserInterface/Views/ScopeRadioButtonNavigationItem.css: Added. * UserInterface/Views/ScopeRadioButtonNavigationItem.js: Added. * UserInterface/Views/SidebarPanel.js: (WebInspector.SidebarPanel): * UserInterface/Views/StyleDetailsPanel.js: (WebInspector.StyleDetailsPanel): 2015-08-04 Matt Baker Web Inspector: timeline overview should visually distinguish selection bounds outside the visible duration https://bugs.webkit.org/show_bug.cgi?id=132764 Reviewed by Brian Burg. * UserInterface/Views/TimelineRuler.css: (.timeline-ruler > .selection-handle.clamped): Added style for selection handle outside visible range. * UserInterface/Views/TimelineRuler.js: (WebInspector.TimelineRuler.prototype._updateSelection): Toggle style class and add tool tip showing the handle's value when outside the visible range. 2015-08-04 Brian J. Burg Web Inspector: Convert DataGrid and DataGridNode classes to ES6 classes https://bugs.webkit.org/show_bug.cgi?id=147439 Reviewed by Joseph Pecoraro. Along the way, inline a few style class names. Elided mechanical changes from the Changelog. * UserInterface/Views/DOMTreeDataGrid.js: * UserInterface/Views/DataGrid.js: * UserInterface/Views/DatabaseTableContentView.js: * UserInterface/Views/IndexedDatabaseEntryDataGridNode.js: * UserInterface/Views/LayerTreeDataGridNode.js: * UserInterface/Views/LayoutTimelineDataGrid.js: * UserInterface/Views/LayoutTimelineDataGridNode.js: * UserInterface/Views/ProbeSetDataGrid.js: * UserInterface/Views/ProfileNodeDataGridNode.js: * UserInterface/Views/RenderingFrameTimelineDataGridNode.js: * UserInterface/Views/ResourceTimelineDataGridNode.js: * UserInterface/Views/ScriptTimelineDataGrid.js: * UserInterface/Views/ScriptTimelineDataGridNode.js: * UserInterface/Views/SourceCodeTimelineTimelineDataGridNode.js: * UserInterface/Views/TimelineDataGrid.js: * UserInterface/Views/TimelineDataGridNode.js: Move a function definition out of an else branch, since this is not allowed in ES6 strict mode. 2015-08-04 Brian J. Burg Web Inspector: console error when clicking AppCache folder tree element https://bugs.webkit.org/show_bug.cgi?id=130042 Reviewed by Joseph Pecoraro. * UserInterface/Views/StorageSidebarPanel.js: (WebInspector.StorageSidebarPanel._treeElementSelected): Don't try to create a content view for ApplicationCacheManifestTreeElement. We can only create a content view for AppCache frames. 2015-08-04 Andres Gomez [GTK] Add gtk icon to remove comma separated values from CSS properties https://bugs.webkit.org/show_bug.cgi?id=147623 Reviewed by Carlos Garcia Campos. * UserInterface/Images/gtk/Minus.svg: Added. 2015-08-03 Matt Baker Web Inspector: REGRESSION (r187708): Breakpoint dialog script action editing broken https://bugs.webkit.org/show_bug.cgi?id=147553 Reviewed by Joseph Pecoraro. Passing a widget to CodeMirror.setBookmark generates a viewportChange event, causing the BreakpointActionView to update the popup for the breakpoint. The spurious update dismisses the suggestion list, removes the CodeMirror completion hint, and causes other problems. Now we ignore viewportChange events unless the viewport size changes. We still want to update the popup when a carriage return or text wrap modifies the viewport. * UserInterface/Views/BreakpointActionView.js: (WebInspector.BreakpointActionView.prototype._updateBody): Evaluate and Probe actions store the current viewport size. (WebInspector.BreakpointActionView.prototype._codeMirrorViewportChanged): Check if viewport size has changed since last event. 2015-08-03 Brian J. Burg Web Inspector: Application cache DataGrid has incorrect column heading styles https://bugs.webkit.org/show_bug.cgi?id=147531 Reviewed by Joseph Pecoraro. * UserInterface/Views/ApplicationCacheFrameContentView.js: (WebInspector.ApplicationCacheFrameContentView): Remove erroneous "storage-view" class, which is intended for databases, not AppCache. 2015-08-02 Matt Baker Web Inspector: Unnamespaced Formatter classes break CSSStyleDeclarationTextEditor https://bugs.webkit.org/show_bug.cgi?id=147544 Reviewed by Brian Burg. Added Formatter and FormatterContentBuilder to WebInspector namespace. * UserInterface/Controllers/Formatter.js: * UserInterface/Controllers/FormatterContentBuilder.js: * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype._formattedContentFromEditor): * UserInterface/Views/TextEditor.js: (WebInspector.TextEditor.prototype.prettyPrint.prettyPrintAndUpdateEditor): (WebInspector.TextEditor.prototype.prettyPrint): 2015-08-02 Matt Baker Web Inspector: REGRESSION (r187689): Timeline overview graph layout is broken https://bugs.webkit.org/show_bug.cgi?id=147539 Reviewed by Brian Burg. Removed timeline argument being passed to TimelineOverviewGraph constructor. * UserInterface/Views/LayoutTimelineOverviewGraph.js: (WebInspector.LayoutTimelineOverviewGraph): * UserInterface/Views/NetworkTimelineOverviewGraph.js: (WebInspector.NetworkTimelineOverviewGraph): * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: (WebInspector.RenderingFrameTimelineOverviewGraph): * UserInterface/Views/ScriptTimelineOverviewGraph.js: (WebInspector.ScriptTimelineOverviewGraph): 2015-08-01 Nikita Vasilyev Web Inspector: Replace "unknown-mac" CSS class with "el-capitan" https://bugs.webkit.org/show_bug.cgi?id=147524 Reviewed by Timothy Hatcher. * UserInterface/Base/Platform.js: No need to repeat WebInspector.Platform.version.release for every possible case. * UserInterface/Views/Toolbar.css: (body:not(.el-capitan) .toolbar .dashboard-container): (body:not(.el-capitan) .toolbar .search-bar > input[type="search"]): (body:not(.el-capitan) .toolbar .search-bar > input[type="search"]:focus): (body:not(.el-capitan) .toolbar .item.button:active): (body.window-inactive:not(.el-capitan) .toolbar .dashboard-container): (body.el-capitan .toolbar .dashboard-container): (body.el-capitan .toolbar .search-bar > input[type="search"]): (body.el-capitan .toolbar .search-bar > input[type="search"]:focus): (@media (-webkit-min-device-pixel-ratio: 2)): (body.el-capitan .toolbar .item.button:active): (body.el-capitan.window-inactive .toolbar .dashboard-container): (body:not(.unknown-mac) .toolbar .dashboard-container): Deleted. (body:not(.unknown-mac) .toolbar .search-bar > input[type="search"]): Deleted. (body:not(.unknown-mac) .toolbar .search-bar > input[type="search"]:focus): Deleted. (body:not(.unknown-mac) .toolbar .item.button:active): Deleted. (body.window-inactive:not(.unknown-mac) .toolbar .dashboard-container): Deleted. (body.unknown-mac .toolbar .dashboard-container): Deleted. (body.unknown-mac .toolbar .search-bar > input[type="search"]): Deleted. (body.unknown-mac .toolbar .search-bar > input[type="search"]:focus): Deleted. (body.unknown-mac .toolbar .item.button:active): Deleted. (body.unknown-mac.window-inactive .toolbar .dashboard-container): Deleted. 2015-07-31 Devin Rousso Web Inspector: inherited CSS rules disappear from Styles sidebar while editing https://bugs.webkit.org/show_bug.cgi?id=147441 Reviewed by Timothy Hatcher. If the user edits a style declaration such that it would dissapear mid-edit, prevent the rules panel from refreshing until that editor is blurred. * UserInterface/Views/CSSStyleDeclarationSection.js: (WebInspector.CSSStyleDeclarationSection): (WebInspector.CSSStyleDeclarationSection.prototype.get editorActive): (WebInspector.CSSStyleDeclarationSection.prototype.get _hasInvalidSelector): (WebInspector.CSSStyleDeclarationSection.prototype._editorContentChanged): (WebInspector.CSSStyleDeclarationSection.prototype._editorBlurred): * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype._editorBlured): (WebInspector.CSSStyleDeclarationTextEditor.prototype._contentChanged): * UserInterface/Views/RulesStyleDetailsPanel.js: (WebInspector.RulesStyleDetailsPanel): (WebInspector.RulesStyleDetailsPanel.prototype._removeSectionWithActiveEditor): * UserInterface/Views/StyleDetailsPanel.js: (WebInspector.StyleDetailsPanel.prototype._refreshPreservingScrollPosition): 2015-07-31 Devin Rousso Web Inspector: Autocomplete: Undo (Cmd+Z) doesn't work as expected https://bugs.webkit.org/show_bug.cgi?id=147316 Reviewed by Timothy Hatcher. Instead of replacing the text for a completion, which messes up the undo history, add a unique marker that contains the remaining text for the current completion. * UserInterface/Controllers/CodeMirrorCompletionController.js: (WebInspector.CodeMirrorCompletionController.prototype._createCompletionHintMarker): (WebInspector.CodeMirrorCompletionController.prototype._applyCompletionHint.update): (WebInspector.CodeMirrorCompletionController.prototype._applyCompletionHint): (WebInspector.CodeMirrorCompletionController.prototype._removeCompletionHint.update): (WebInspector.CodeMirrorCompletionController.prototype._removeCompletionHint): 2015-07-31 Devin Rousso Web Inspector: Scrolling "jumps" in console https://bugs.webkit.org/show_bug.cgi?id=147482 Reviewed by Joseph Pecoraro. Removed focus call on messageElement. * UserInterface/Views/LogContentView.js: (WebInspector.LogContentView): (WebInspector.LogContentView.prototype._mousedown): Deleted. (WebInspector.LogContentView.prototype._didFocus): Deleted. (WebInspector.LogContentView.prototype._didBlur): Deleted. 2015-07-31 Joseph Pecoraro Web Inspector: Unskip / Unflake inspector tests after r187627 https://bugs.webkit.org/show_bug.cgi?id=147503 Reviewed by Brian Burg. * UserInterface/Base/Test.js: (InspectorTest.completeTest): (InspectorTest.completeTest.signalCompletionToTestPage): Deleted. (InspectorTest.testPageDidLoad): Instead of immediately resending results if completeTest was called during a reload before the load has completed, we just set a flag to complete the test when the load completes. This consistently resends the output to the new page for test output. (InspectorTest._resendResults): Delete clear results. If the page had logged anything directly on the page side (using InspectorTestProxy) this clearMessages would have deleted those messages and not been able to recreate them. Clearing messages wasn't really serving a purpose. 2015-07-31 Brian J. Burg Web Inspector: Convert timeline view classes to ES6 classes https://bugs.webkit.org/show_bug.cgi?id=147381 Reviewed by Joseph Pecoraro. Along the way, inline a few style class names. Elided mechanical changes from the Changelog. * UserInterface/Views/LayoutTimelineOverviewGraph.js: * UserInterface/Views/LayoutTimelineView.js: * UserInterface/Views/LinearTimelineOverview.js: * UserInterface/Views/NetworkTimelineOverviewGraph.js: * UserInterface/Views/NetworkTimelineView.js: * UserInterface/Views/OverviewTimelineView.js: * UserInterface/Views/RenderingFrameTimelineOverview.js: * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js: * UserInterface/Views/RenderingFrameTimelineView.js: * UserInterface/Views/ScriptTimelineOverviewGraph.js: * UserInterface/Views/ScriptTimelineView.js: * UserInterface/Views/TimelineOverview.js: * UserInterface/Views/TimelineOverviewGraph.js: * UserInterface/Views/TimelineRecordBar.js: * UserInterface/Views/TimelineRecordFrame.js: * UserInterface/Views/TimelineRecordingContentView.js: * UserInterface/Views/TimelineRuler.js: * UserInterface/Views/TimelineTabContentView.js: * UserInterface/Views/TimelineView.js: 2015-07-30 Matt Baker Web Inspector: Better share objects generated from timeline events (Records) https://bugs.webkit.org/show_bug.cgi?id=147029 Reviewed by Brian Burg. This patch changes the way TimelineManager processes events, preserving the event hierarchy after converting payloads to TimelineRecord objects by retaining parent-child relationships between records. This eliminates the need for RenderingFrameTimelineRecord objects to create a separate copy of their child records, and provides richer data for the Timelines UI. * UserInterface/Controllers/TimelineManager.js: (WebInspector.TimelineManager.prototype.eventRecorded): Track the parent TimelineRecord as child record payloads are unpacked, and create a hierarchy of TimelineRecords that mirrors the original event payload hierarchy. (WebInspector.TimelineManager.prototype._processRecord): RenderingFrameTimelineRecord is now processed like any other event. (WebInspector.TimelineManager.prototype._processNestedRecords): Deleted. Reverted back to a single pass over the incoming timeline event payload. * UserInterface/Models/LayoutTimelineRecord.js: (WebInspector.LayoutTimelineRecord): (WebInspector.LayoutTimelineRecord.prototype.get duringComposite): Deleted. Removed duringComposite property and constructor parameter. No longer needed. * UserInterface/Models/RenderingFrameTimelineRecord.js: (WebInspector.RenderingFrameTimelineRecord.prototype.get children): Deleted. Removed children property. It now exists on the base class TimelineRecord. Also removed code that was needed to prevent paint time from being added twice. * UserInterface/Models/ScriptTimelineRecord.js: (WebInspector.ScriptTimelineRecord.prototype._initializeProfileFromPayload): (WebInspector.ScriptTimelineRecord): Removed workaround added in: Web Inspector: REGRESSION (r186218) ScriptTimelineRecord attempts to access null property * UserInterface/Models/TimelineRecord.js: (WebInspector.TimelineRecord): (WebInspector.TimelineRecord.prototype.get children): Added children property. * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView.prototype._processPendingRecords): Now that we preserve the frame's child record hierarchy, we process the entire tree, yielding richer data grid output: Frame X Styles Recalculated Layout Invalidated Composite Paint Paint Compared to the previous output: Frame X Styles Recalculated Layout Invalidated Composite Paint Paint 2015-07-30 Devin Rousso Web Inspector: Support smart-pasting in the Rules sidebar panel https://bugs.webkit.org/show_bug.cgi?id=147362 Reviewed by Timothy Hatcher. When pasting over the selector, if the pasted text matches CSS rule formatting, replace the selected rule with the selector and text in the pasted data. * UserInterface/Models/DOMNodeStyles.js: (WebInspector.DOMNodeStyles.prototype.changeRule.changeCompleted): (WebInspector.DOMNodeStyles.prototype.changeRule.styleChanged): (WebInspector.DOMNodeStyles.prototype.changeRule.changeText): (WebInspector.DOMNodeStyles.prototype.changeRule.ruleSelectorChanged): (WebInspector.DOMNodeStyles.prototype.changeRule): * UserInterface/Views/CSSStyleDeclarationSection.js: (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste.parseTextForRule): (WebInspector.CSSStyleDeclarationSection.prototype._handleSelectorPaste): (WebInspector.CSSStyleDeclarationSection): 2015-07-30 Matt Baker Web Inspector: Fix typo in frame duration filtering console.assert message https://bugs.webkit.org/show_bug.cgi?id=147458 Rubber-stamped by Joseph Pecoraro. * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView.displayNameForDurationFilter): 2015-07-30 Nikita Vasilyev Web Inspector: Regression: %c is broken for console.group https://bugs.webkit.org/show_bug.cgi?id=147436 Reviewed by Timothy Hatcher. * UserInterface/Views/ConsoleMessageView.js: (WebInspector.ConsoleMessageView.prototype._appendMessageTextAndArguments): 2015-07-30 Devin Rousso Web Inspector: Add special case for deleting the next character when editing rules in the CSS Sidebar https://bugs.webkit.org/show_bug.cgi?id=147442 Reviewed by Timothy Hatcher. If the cursor is on the first position of the first line in a CSS Rule and that line has no content, delete the line instead of doing nothing. * UserInterface/Views/CSSStyleDeclarationTextEditor.js: (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleBeforeChange): 2015-07-29 Nikita Vasilyev Web Inspector: Improve styles of debugger popovers https://bugs.webkit.org/show_bug.cgi?id=147437 Reviewed by Timothy Hatcher. Use non-monospace font and improve spacing. * UserInterface/Views/SourceCodeTextEditor.css: (.popover .debugger-popover-content > .title): (.popover .debugger-popover-content > .body): 2015-07-29 Nikita Vasilyev Web Inspector: Border line in the debug popover should be semi-transparent black, not dark yellow https://bugs.webkit.org/show_bug.cgi?id=147435 Reviewed by Timothy Hatcher. * UserInterface/Views/SourceCodeTextEditor.css: (.popover .debugger-popover-content > .body): (@media (-webkit-min-device-pixel-ratio: 2)): Use hairline borders on retina. 2015-07-29 Nikita Vasilyev Web Inspector: " = $0" text in the Elements panel should anti-aliased https://bugs.webkit.org/show_bug.cgi?id=147432 Reviewed by Timothy Hatcher. * UserInterface/Views/DOMTreeOutline.css: (.dom-tree-outline li.selected > span::after): (.dom-tree-outline:focus li.selected > span::after): Decrease the opacity just slightly to make " = $0" more distinct from DOM nodes. 2015-07-29 Matt Baker Web Inspector: Allow record filtering by frame duration in Rendering Frames timeline https://bugs.webkit.org/show_bug.cgi?id=147419 Reviewed by Timothy Hatcher. * Localizations/en.lproj/localizedStrings.js: New scope bar item labels. * UserInterface/Views/RenderingFrameTimelineView.js: (WebInspector.RenderingFrameTimelineView): New scope bar for frame duration filtering. (WebInspector.RenderingFrameTimelineView.displayNameForDurationFilter): (WebInspector.RenderingFrameTimelineView.prototype.matchTreeElementAgainstCustomFilters): Overridden for view specific filtering. Filtering applies to RenderingFrameTimelineRecords only. (WebInspector.RenderingFrameTimelineView.prototype._scopeBarSelectionDidChange): Force sidebar filtering when duration filter changes. 2015-07-28 Joseph Pecoraro Web Inspector: console.groupEnd causes negative indent when no group is active https://bugs.webkit.org/show_bug.cgi?id=147375 Reviewed by Timothy Hatcher. * UserInterface/Views/LogContentView.js: (WebInspector.LogContentView.prototype.didAppendConsoleMessageView): 2015-07-28 Brian J. Burg Web Inspector: Convert NavigationItem subclasses to ES6 https://bugs.webkit.org/show_bug.cgi?id=147364 Reviewed by Timothy Hatcher. Convert remaining NavigationItem subclasses to use ES6 class. Also promote the _additionalClassNames to be a protected getter, and inline the style class names that are only used in one place. Mechanical changes are elided from the changelog. * UserInterface/Views/ActivateButtonNavigationItem.js: (WebInspector.ActivateButtonNavigationItem): (WebInspector.ActivateButtonNavigationItem.prototype.get additionalClassNames): * UserInterface/Views/ActivateButtonToolbarItem.js: (WebInspector.ActivateButtonToolbarItem): * UserInterface/Views/ButtonNavigationItem.js: (WebInspector.ButtonNavigationItem): (WebInspector.ButtonNavigationItem.prototype.get additionalClassNames): * UserInterface/Views/ButtonToolbarItem.js: (WebInspector.ButtonToolbarItem): * UserInterface/Views/ControlToolbarItem.js: (WebInspector.ControlToolbarItem): (WebInspector.ControlToolbarItem.prototype.get additionalClassNames): * UserInterface/Views/DividerNavigationItem.js: (WebInspector.DividerNavigationItem): (WebInspector.DividerNavigationItem.prototype.get additionalClassNames): * UserInterface/Views/FlexibleSpaceNavigationItem.js: (WebInspector.FlexibleSpaceNavigationItem): (WebInspector.FlexibleSpaceNavigationItem.prototype.get additionalClassNames): * UserInterface/Views/HierarchicalPathNavigationItem.js: (WebInspector.HierarchicalPathNavigationItem.prototype.get additionalClassNames): (WebInspector.HierarchicalPathNavigationItem.prototype.get _additionalClassNames): Deleted. * UserInterface/Views/NavigationItem.js: (WebInspector.NavigationItem): (WebInspector.NavigationItem.prototype.get _classNames): * UserInterface/Views/RadioButtonNavigationItem.js: (WebInspector.RadioButtonNavigationItem): (WebInspector.RadioButtonNavigationItem.prototype.get additionalClassNames): * UserInterface/Views/ToggleButtonNavigationItem.js: (WebInspector.ToggleButtonNavigationItem): (WebInspector.ToggleButtonNavigationItem.prototype.get additionalClassNames): * UserInterface/Views/ToggleControlToolbarItem.js: (WebInspector.ToggleControlToolbarItem): (WebInspector.ToggleControlToolbarItem.prototype.get additionalClassNames): 2015-07-28 Joseph Pecoraro Web Inspector: Include