Web Inspector: Pressing tab in the styles sidebar shouldn't insert a tab character
[WebKit-https.git] / Source / WebInspectorUI / ChangeLog
1 2015-06-24  Devin Rousso  <drousso@apple.com>
2
3         Web Inspector: Pressing tab in the styles sidebar shouldn't insert a tab character
4         https://bugs.webkit.org/show_bug.cgi?id=146189
5
6         Reviewed by Timothy Hatcher.
7
8         * UserInterface/Controllers/CodeMirrorCompletionController.js: Added variable to control whether semicolons are added to the end of autocompleted css values.
9         (WebInspector.CodeMirrorCompletionController):
10         (WebInspector.CodeMirrorCompletionController.prototype.set noEndingSemicolon):
11         (WebInspector.CodeMirrorCompletionController.prototype._generateCSSCompletions):
12         * UserInterface/Views/CSSStyleDeclarationSection.js:
13         (WebInspector.CSSStyleDeclarationSection):
14         (WebInspector.CSSStyleDeclarationSection.prototype.cssStyleDeclarationTextEditorSwitchRule):
15         (WebInspector.CSSStyleDeclarationSection.prototype.focusRuleSelector):
16         (WebInspector.CSSStyleDeclarationSection.prototype.selectLastProperty):
17         (WebInspector.CSSStyleDeclarationSection.prototype.get selectorLocked):
18         (WebInspector.CSSStyleDeclarationSection.prototype.get locked):
19         (WebInspector.CSSStyleDeclarationSection.prototype._handleKeyDown):
20         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
21         (WebInspector.CSSStyleDeclarationTextEditor): Added functions for "Tab", "Shift-Tab", and "Shift-Enter" keypresses to improve usability.
22         (WebInspector.CSSStyleDeclarationTextEditor.prototype.selectFirstProperty): Highlights the first property.
23         (WebInspector.CSSStyleDeclarationTextEditor.prototype.selectLastProperty): Highlights the last property.
24         (WebInspector.CSSStyleDeclarationTextEditor.prototype._insertNewlineAfterCurrentLine): Inserts a newline after the currently selected line.
25         (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleShiftTabKey.switchRule):
26         (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleShiftTabKey): Pressing shift-tab will move the cursor to the previous non-word character that is immediately after a word character.
27         (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleTabKey.switchRule):
28         (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleTabKey.highlightNextNameOrValue):
29         (WebInspector.CSSStyleDeclarationTextEditor.prototype._handleTabKey): Pressing tab will move the cursor to each space character until the end of the line is reached, at
30         which point the cursor will move to the beginning of the next line.  Once the cursor is at the last line, pressing tab again will insert a newline.
31         * UserInterface/Views/RulesStyleDetailsPanel.js:
32         (WebInspector.RulesStyleDetailsPanel.prototype.cssStyleDeclarationSectionEditorNextRule): Switches the focused rule to the next section.
33         (WebInspector.RulesStyleDetailsPanel.prototype.cssStyleDeclarationSectionEditorPrevRule): Switches the focused rule to the previous section.
34
35 2015-06-24  Joseph Pecoraro  <pecoraro@apple.com>
36
37         Web Inspector: console.group looks poor in console
38         https://bugs.webkit.org/show_bug.cgi?id=146295
39
40         Reviewed by Timothy Hatcher.
41
42         * Localizations/en.lproj/localizedStrings.js:
43         String for the default group name if you use console.group() without a name parameter.
44
45         * UserInterface/Views/LogContentView.css:
46         (.console-group-title::before):
47         Tweak the positioning and eliminate the log level ::before image.
48
49         * UserInterface/Views/ConsoleMessageView.js:
50         (WebInspector.ConsoleMessageView):
51         Reorder a bit to reduce a couple branches.
52
53         (WebInspector.ConsoleMessageView.prototype._appendMessageTextAndArguments):
54         Take a very straightforward approach for group names.
55
56 2015-06-24  Devin Rousso  <drousso@apple.com>
57
58         Web Inspector: Show warning icon for invalid CSS properties and/or values
59         https://bugs.webkit.org/show_bug.cgi?id=145657
60
61         Reviewed by Timothy Hatcher.
62
63         * UserInterface/Models/CSSCompletions.js:
64         (WebInspector.CSSCompletions.prototype.getClosestPropertyName): Calculates the levenshtein distance between a given property and every existing property name.  Returns the property name with the smallest distance or, in the case of multiple properties having the same distance, the first property in alphabetical order.
65         (WebInspector.CSSCompletions.prototype.propertyRequiresWebkitPrefix): Retruns if the property name exists only with a '-webkit-' prefix.
66         (WebInspector.CSSCompletions):
67         * UserInterface/Views/CSSStyleDeclarationTextEditor.css:
68         (.css-style-text-editor > .CodeMirror .CodeMirror-lines .invalid-warning-marker):
69         (.css-style-text-editor > .CodeMirror .CodeMirror-lines .invalid-warning-marker.clickable:hover):
70         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
71         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded.duplicatePropertyExistsBelow): Determines if there exists a property below (visually) the given property that has the same name.
72         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded.generateInvalidMarker): Creates a warning icon marker at the given position with the given title.
73         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded.instancesOfProperty): Returns the number of properties in the rule that have the same name.
74         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded): A button with a warning icon is now added to the beginning of an invalid property.  If this button is clicked, the property is replaced with the closest matching property and the autocomplete menu is opened.
75
76 2015-06-24  Devin Rousso  <drousso@apple.com>
77
78         Web Inspector: Background of Computed Styles is missing
79         https://bugs.webkit.org/show_bug.cgi?id=146209
80
81         Reviewed by Timothy Hatcher.
82
83         * UserInterface/Views/ComputedStyleDetailsPanel.css:
84         (.computed-style-properties.details-section): Added white background.
85
86 2015-06-24  Joseph Pecoraro  <pecoraro@apple.com>
87
88         Web Inspector: Right/Left arrow no longer works in console to expand/collapse ObjectTrees
89         https://bugs.webkit.org/show_bug.cgi?id=141949
90
91         Reviewed by Timothy Hatcher.
92
93         * UserInterface/Views/ConsoleMessageView.js:
94         (WebInspector.ConsoleMessageView):
95         (WebInspector.ConsoleMessageView.prototype.get expandable):
96         (WebInspector.ConsoleMessageView.prototype.set expandable): Deleted.
97         (WebInspector.ConsoleMessageView.prototype._appendExtraParameters):
98         (WebInspector.ConsoleMessageView.prototype._appendStackTrace):
99         (WebInspector.ConsoleMessageView.prototype._makeExpandable):
100         Clarify what makes a ConsoleMessageView expandable or not.
101
102         (WebInspector.ConsoleMessageView.prototype.expand):
103         (WebInspector.ConsoleMessageView.prototype.collapse):
104         Handle the expand/collapse cases which could apply to the
105         ConsoleMessageView itself or an inner ObjectTreeView if that is all we contain.
106
107         (WebInspector.ConsoleMessageView.prototype._formatParameterAsObject):
108         Delete out of date comment. A console.log("message", obj) will want the
109         object tree member variable to handle auto expanding/collapsing of the
110         single object in the message.
111
112         * UserInterface/Views/LogContentView.js:
113         (WebInspector.LogContentView.prototype._leftArrowWasPressed):
114         (WebInspector.LogContentView.prototype._rightArrowWasPressed):
115         Use the higher level ConsoleMessageView objects accessible from the element
116         to call through to expand/collapse.
117
118 2015-06-23  Joseph Pecoraro  <pecoraro@apple.com>
119
120         Web Inspector: Reduce QuickConsole DidResize events if it did not change
121         https://bugs.webkit.org/show_bug.cgi?id=146258
122
123         Reviewed by Timothy Hatcher.
124
125         * UserInterface/Views/QuickConsole.js:
126         (WebInspector.QuickConsole.prototype.consoleLogVisibilityChanged):
127         Do not trigger the event unless there was a change in visibility.
128
129 2015-06-23  Joseph Pecoraro  <pecoraro@apple.com>
130
131         Web Inspector: TextEditor scroll position not correctly restored when switching tabs
132         https://bugs.webkit.org/show_bug.cgi?id=146254
133
134         Reviewed by Timothy Hatcher.
135
136         * UserInterface/Views/TextEditor.js:
137         (WebInspector.TextEditor.prototype.updateLayout):
138         Workaround a larger issue with ContentView restoration so that
139         TextEditors restore their scroll position as expected.
140
141 2015-06-23  Joseph Pecoraro  <pecoraro@apple.com>
142
143         Web Inspector: Some brief previews are incorrectly treated as lossless
144         https://bugs.webkit.org/show_bug.cgi?id=146247
145
146         Reviewed by Timothy Hatcher.
147
148         * UserInterface/Views/ObjectPreviewView.js:
149         (WebInspector.ObjectPreviewView.prototype._appendEntryPreviews):
150         (WebInspector.ObjectPreviewView.prototype._appendPropertyPreviews):
151         When we have a brief preview we may need to override lossless / overflow
152         if the preview view itself shows less properties than were in the preview.
153
154 2015-06-23  Matt Baker  <mattbaker@apple.com>
155
156         Web Inspector: Layout & Rendering timeline should show paint and layout records in separate rows
157         https://bugs.webkit.org/show_bug.cgi?id=146119
158
159         Reviewed by Timothy Hatcher.
160
161         This patch makes the original Layout & Rendering timeline visually consistent with the Rendering Frames
162         timeline, which uses green to distinguish Paint from Layout. In order to support having record bars with
163         different colors in the same overview graph, the timeline has been split into two rows.
164
165         * UserInterface/Views/LayoutTimelineOverviewGraph.css:
166         (.timeline-overview-graph.layout > .graph-row):
167         (.timeline-overview-graph.layout > .graph-row > .timeline-record-bar):
168         (.timeline-overview-graph.layout > .graph-row > .timeline-record-bar > .segment):
169         New row styles.
170
171         * UserInterface/Views/LayoutTimelineOverviewGraph.js:
172         (WebInspector.LayoutTimelineOverviewGraph.prototype.reset.createRecordRow):
173         (WebInspector.LayoutTimelineOverviewGraph.prototype.reset):
174         (WebInspector.LayoutTimelineOverviewGraph.prototype.updateLayout):
175         (WebInspector.LayoutTimelineOverviewGraph.prototype._updateRowLayout.createBar):
176         (WebInspector.LayoutTimelineOverviewGraph.prototype._updateRowLayout):
177         (WebInspector.LayoutTimelineOverviewGraph.prototype._layoutTimelineRecordAdded):
178         (WebInspector.LayoutTimelineOverviewGraph): Deleted.
179         Added bookkeeping objects for timeline row elements and their associated records.
180
181         * UserInterface/Views/TimelineRecordBar.css:
182         (.timeline-record-bar.timeline-record-type-layout.layout-timeline-record-paint > .segment):
183         New style for layout record event types.
184
185         * UserInterface/Views/TimelineRecordBar.js:
186         (WebInspector.TimelineRecordBar.prototype.set records):
187         Add style class for eventType, if present.
188
189 2015-06-22  Devin Rousso  <drousso@apple.com>
190
191         Web Inspector: gaps between sections of the styles sidebar rules tab confusing, should say "Media: all"
192         https://bugs.webkit.org/show_bug.cgi?id=142918
193
194         Reviewed by Timothy Hatcher.
195
196         * UserInterface/Views/RulesStyleDetailsPanel.css:
197         (.sidebar > .panel.details.css-style > .content.filter-in-progress .label:not(.filter-section-non-matching) ~ .label):
198         Now properly adds padding to filtered labels.
199         (.sidebar > .panel.details.css-style > .content.filter-in-progress .label ~ .label): Deleted.
200         * UserInterface/Views/RulesStyleDetailsPanel.js:
201         (WebInspector.RulesStyleDetailsPanel.prototype.refresh): If a section of CSS rules has no media or inheritance, add
202         a label that says "Media: all" above the section.
203
204 2015-06-22  Nikita Vasilyev  <nvasilyev@apple.com>
205
206         Web Inspector: Consider making read-only style rules have a darker background
207         https://bugs.webkit.org/show_bug.cgi?id=145983
208
209         Reviewed by Timothy Hatcher.
210
211         * UserInterface/Views/CSSStyleDeclarationSection.css:
212         (.style-declaration-section:not(.locked)):
213         (.style-declaration-section): Deleted.
214         * UserInterface/Views/CSSStyleDeclarationTextEditor.css:
215         (.css-style-text-editor.read-only > .CodeMirror):
216
217 2015-06-22  Nikita Vasilyev  <nvasilyev@apple.com>
218
219         Web Inspector: Unable to select text of user input messages in the console
220         https://bugs.webkit.org/show_bug.cgi?id=145888
221
222         Reviewed by Timothy Hatcher.
223
224         * UserInterface/Views/ConsoleMessageView.css:
225         (.console-user-command > .console-message-text):
226
227 2015-06-20  Nikita Vasilyev  <nvasilyev@apple.com>
228
229         Web Inspector: Unable to select parent element in the DOM tree path bar
230         https://bugs.webkit.org/show_bug.cgi?id=145810
231
232         Reviewed by Timothy Hatcher.
233
234         * UserInterface/Views/DOMTreeContentView.js:
235         (WebInspector.DOMTreeContentView.prototype.get selectionPathComponents):
236         * UserInterface/Views/HierarchicalPathComponent.js:
237         (WebInspector.HierarchicalPathComponent.prototype.get selectedPathComponent):
238         (WebInspector.HierarchicalPathComponent.prototype._selectElementMouseUp):
239         (WebInspector.HierarchicalPathComponent.prototype._selectElementSelectionChanged):
240         (WebInspector.HierarchicalPathComponent):
241         (WebInspector.HierarchicalPathComponent.prototype._selectElementMouseDown): Deleted.
242
243 2015-06-19  Joseph Pecoraro  <pecoraro@apple.com>
244
245         Web Inspector: Duplication of style attribute in rules panel for shadow content
246         https://bugs.webkit.org/show_bug.cgi?id=146176
247
248         Reviewed by Timothy Hatcher.
249
250         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
251         The styleText can be non-empty for a readonly editor if the editor is for
252         the style attribute of a shadow dom node. Instead of assuming it is empty
253         we can just clear the editor ourselves and regenerate from properties.
254
255 2015-06-19  Devin Rousso  <drousso@apple.com>
256
257         Web Inspector: Highlight currently edited CSS selector
258         https://bugs.webkit.org/show_bug.cgi?id=145658
259
260         Reviewed by Joseph Pecoraro.
261
262         * UserInterface/Views/CSSStyleDeclarationSection.js:
263         (WebInspector.CSSStyleDeclarationSection): Added event listeners on the selector text for mouseover and mouseout.
264         (WebInspector.CSSStyleDeclarationSection.prototype._highlightNodesWithSelector): Selector text mouseover action that highlights all nodes that match the selector string in the corresponding frame.
265         (WebInspector.CSSStyleDeclarationSection.prototype._hideHighlightOnNodesWithSelector): Selector text mouseout action that clears all highlights on matching nodes.
266         * UserInterface/Views/DOMNode.js:
267         (WebInspector.DOMNode): If the payload contains a frameId, then save it.
268         (WebInspector.DOMNode.frameIdentifier):
269
270 2015-06-19  Joseph Pecoraro  <pecoraro@apple.com>
271
272         Web Inspector: Overlapping dashboard views causing lots of layers in source view
273         https://bugs.webkit.org/show_bug.cgi?id=146153
274
275         Reviewed by Darin Adler.
276
277         * UserInterface/Views/DashboardContainerView.css:
278         (.toolbar .dashboard:not(.visible)):
279         Hide non-visible dashboard views. The !important is used
280         to override more specific toolbar .dashboard.foo styles.
281
282 2015-06-19  Devin Rousso  <drousso@apple.com>
283
284         Web Inspector: Make rule icon toggle all properties for that selector on and off
285         https://bugs.webkit.org/show_bug.cgi?id=146031
286
287         Reviewed by Timothy Hatcher.
288
289         * UserInterface/Views/CSSStyleDeclarationSection.css:
290         (.style-declaration-section > .header > .icon.toggle-able:hover):
291         (.style-declaration-section.rule-disabled > .header > .icon):
292         * UserInterface/Views/CSSStyleDeclarationSection.js:
293         (WebInspector.CSSStyleDeclarationSection): Added event listener to selector icon to toggle commenting of all properties for that rule.
294         (WebInspector.CSSStyleDeclarationSection.prototype._toggleRuleOnOff): Adds or removes comments to all properties for that rule.
295         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
296         (WebInspector.CSSStyleDeclarationTextEditor.prototype.uncommentAllProperties.uncommentProperties):
297         (WebInspector.CSSStyleDeclarationTextEditor.prototype.uncommentAllProperties): Uncomments all properties.
298         (WebInspector.CSSStyleDeclarationTextEditor.prototype.commentAllProperties): Comments out all properties.
299         (WebInspector.CSSStyleDeclarationTextEditor.prototype._propertyCheckboxChanged): Moved comment logic to its own function.
300         (WebInspector.CSSStyleDeclarationTextEditor.prototype._propertyCommentCheckboxChanged): Moved uncomment logic to its own function.
301
302 2015-06-19  Jon Lee  <jonlee@apple.com>
303
304         Update font and font-family keyword completions
305         https://bugs.webkit.org/show_bug.cgi?id=144558
306         <rdar://problem/20795292>
307
308         Reviewed by Timothy Hatcher.
309
310         * UserInterface/Models/CSSKeywordCompletions.js: Replace -webkit-system-font and
311         -apple-system-font with -apple-system, which is the recommended token for getting the
312         system font. Also add -title{1,2,3} for font, as they were missing, but already exist
313         in font-family.
314
315 2015-06-19  Joseph Pecoraro  <pecoraro@apple.com>
316
317         Web Inspector: Avoid getOwnPropertyNames/Symbols on very large lists
318         https://bugs.webkit.org/show_bug.cgi?id=146141
319
320         Reviewed by Timothy Hatcher.
321
322         * UserInterface/Controllers/JavaScriptRuntimeCompletionProvider.js:
323         (WebInspector.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded):
324         When building completions for a large array, instead of building a list of all the indices
325         just send a single number back to the frontend and let it generate a list for completion.
326         We should do even better and avoid building a lookup table here for completion of an index.
327
328 2015-06-18  Matt Baker  <mattbaker@apple.com>
329
330         Web Inspector: Rendering Frames timeline selection should snap to frame boundaries
331         https://bugs.webkit.org/show_bug.cgi?id=146120
332
333         Reviewed by Timothy Hatcher.
334
335         * UserInterface/Views/RenderingFrameTimelineOverview.js:
336         Enable snapping to frame boundaries.
337
338         * UserInterface/Views/TimelineRecordingContentView.js:
339         (WebInspector.TimelineRecordingContentView.prototype._updateFrameSelection):
340         Updated filtering to account for ruler snapping.
341
342         * UserInterface/Views/TimelineRuler.js:
343         (WebInspector.TimelineRuler.prototype.get snapInterval):
344         (WebInspector.TimelineRuler.prototype.set snapInterval):
345         (WebInspector.TimelineRuler.prototype.set selectionStartTime):
346         (WebInspector.TimelineRuler.prototype.set selectionEndTime):
347         (WebInspector.TimelineRuler.prototype._snapValue):
348         (WebInspector.TimelineRuler.prototype._handleMouseMove):
349         Added support for snapping to a specified interval.
350
351         * UserInterface/Views/TimelineSidebarPanel.js:
352         Removed unnecessary code.
353
354 2015-06-18  Devin Rousso  <drousso@apple.com>
355
356         Web Inspector: Add a filter for CSS properties in the Styles sidebar
357         https://bugs.webkit.org/show_bug.cgi?id=145536
358
359         Reviewed by Timothy Hatcher.
360
361         * UserInterface/Base/Utilities.js: Added function to Strings that returns an array of all matching indexes of a given string.
362         (.value):
363         * UserInterface/Views/CSSStyleDeclarationSection.js:
364         (WebInspector.CSSStyleDeclarationSection):
365         (WebInspector.CSSStyleDeclarationSection.prototype.refresh.appendSelector):
366         (WebInspector.CSSStyleDeclarationSection.prototype.findMatchingPropertiesAndSelectors): Loops through the property list and selectors of each section to find matches to the filtered text.
367         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
368         (WebInspector.CSSStyleDeclarationTextEditor.prototype.findMatchingProperties): Searches through the properties list to find and highlight all matching properties.
369         (WebInspector.CSSStyleDeclarationTextEditor.prototype.removeNonMatchingProperties): Removes all properties that do not match and highlights the specific matched text in matching properties.
370         (WebInspector.CSSStyleDeclarationTextEditor.prototype.resetFilteredProperties): Restores all properties to full visibility and removes any highlighting.
371         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded): Classes are added to selections of the text editor of that partiular selection contains text which matches the filter (see CSSStyleDetailsSidebarPanel.css for different classes).
372         (WebInspector.CSSStyleDeclarationTextEditor.prototype._iterateOverProperties): If a filter is active, find properties matching the filter instead of all properties.
373         * UserInterface/Views/CSSStyleDetailsSidebarPanel.css:
374         (.sidebar > .panel.details.css-style > .content.has-filter-bar + .filter-bar):
375         (.sidebar > .panel.details.css-style > .content:not(.has-filter-bar) + .filter-bar):
376         * UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
377         (WebInspector.CSSStyleDetailsSidebarPanel): Added a filter bar to the CSS sidebar.
378         (WebInspector.CSSStyleDetailsSidebarPanel.prototype._switchPanels): Switching panels preserves and applies filter bar text.
379         (WebInspector.CSSStyleDetailsSidebarPanel.prototype._filterDidChange): Function called when the filter bar text changes that calls the current panel's filterDidChange function if it exists.
380         * UserInterface/Views/FilterBar.js: Added function and variable to check if the text in the filter bar had changed.
381         * UserInterface/Views/MetricsStyleDetailsPanel.js:
382         (WebInspector.MetricsStyleDetailsPanel.prototype.refresh): Now calls superclass refresh.
383         (WebInspector.MetricsStyleDetailsPanel): Added delegate variable to constructor.
384         * UserInterface/Views/RulesStyleDetailsPanel.css:
385         (.sidebar > .panel.details.css-style > .content.filter-in-progress .label):
386         (.sidebar > .panel.details.css-style > .content.filter-in-progress .label ~ .label):
387         (.sidebar > .panel.details.css-style > .content.filter-in-progress .label.filter-matching-label):
388         (.sidebar > .panel.details.css-style > .content.filter-in-progress .new-rule):
389         (.sidebar > .panel.details.css-style > .content.filter-in-progress .style-declaration-section:not(.filter-section-non-matching) ~ .label:not(.filter-section-non-matching)):
390         (.sidebar > .panel.details.css-style > .content:not(.filter-in-progress) > .rules > .new-rule + .style-declaration-section):
391         (.sidebar > .panel.details.css-style > .content > .rules:not(.filter-non-matching) > .no-filter-results):
392         (.sidebar > .panel.details.css-style > .content.filter-in-progress > .rules.filter-non-matching > .no-filter-results):
393         (.sidebar > .panel.details.css-style > .content.filter-in-progress > .rules.filter-non-matching > .no-filter-results > .no-filter-results-message):
394         * UserInterface/Views/RulesStyleDetailsPanel.js:
395         (WebInspector.RulesStyleDetailsPanel): Added delegate variable to constructor.
396         (WebInspector.RulesStyleDetailsPanel.prototype.refresh): Now calls superclass refresh.
397         (WebInspector.RulesStyleDetailsPanel.prototype.filterDidChange): Function to search through the computed styles list and highlight all matched properties and selectors of the filter bar text, turning all non matching properties slightly opaque (unless a selector for that property is a match).
398         (WebInspector.StyleDetailsPanel): Added delegate variable to constructor.
399         (WebInspector.StyleDetailsPanel.prototype.refresh): Added event dispatch for panel refresh.
400
401 2015-06-18  Devin Rousso  <drousso@apple.com>
402
403         Web Inspector: Ability to Copy entire CSS Rule from Styles Sidebar
404         https://bugs.webkit.org/show_bug.cgi?id=138812
405
406         Reviewed by Timothy Hatcher.
407
408         * Localizations/en.lproj/localizedStrings.js:
409         * UserInterface/Views/CSSStyleDeclarationSection.js:
410         (WebInspector.CSSStyleDeclarationSection): Right clicking on the header of a rule will replcae the default context menu to allow copying of the entire rule to the clipboard.
411         (WebInspector.CSSStyleDeclarationSection.prototype._handleContextMenuEvent): Creates a new context menu to copy the entire CSS rule.
412         (WebInspector.CSSStyleDeclarationSection.prototype._generateCSSRuleString): Generates a string representing the formatted CSS rule.
413
414 2015-06-18  Joseph Pecoraro  <pecoraro@apple.com>
415
416         Web Inspector: Improve a few more node preview types
417         https://bugs.webkit.org/show_bug.cgi?id=146048
418
419         Reviewed by Timothy Hatcher.
420
421         * UserInterface/Views/FormattedValue.js:
422         (WebInspector.FormattedValue.createElementForNodePreview):
423
424 2015-06-18  Devin Rousso  <drousso@apple.com>
425
426         Web Inspector: New Rule button doesn't reveal the newly added rule if not visible upon creation
427         https://bugs.webkit.org/show_bug.cgi?id=117600
428
429         Reviewed by Timothy Hatcher.
430
431         * UserInterface/Views/RulesStyleDetailsPanel.js: Made previousFocusedSection into a member variable of the RulesStyleDetailsPanel.  This way, when the nodeStyles is refreshed (when a new rule is added), the previousFocusedSection will be scrolled into view.
432         (WebInspector.RulesStyleDetailsPanel):
433         (WebInspector.RulesStyleDetailsPanel.prototype.refresh.appendStyleSection):
434         (WebInspector.RulesStyleDetailsPanel.prototype.nodeStylesRefreshed):
435         (WebInspector.RulesStyleDetailsPanel.prototype.refresh): Deleted.
436
437 2015-06-18  Commit Queue  <commit-queue@webkit.org>
438
439         Unreviewed, rolling out r185671.
440         https://bugs.webkit.org/show_bug.cgi?id=146114
441
442         Caused frequent flaky failures on profiler tests (Requested by
443         ap on #webkit).
444
445         Reverted changeset:
446
447         "Web Inspector: Improve a few more node preview types"
448         https://bugs.webkit.org/show_bug.cgi?id=146048
449         http://trac.webkit.org/changeset/185671
450
451 2015-06-17  Joseph Pecoraro  <pecoraro@apple.com>
452
453         Web Inspector: Improve a few more node preview types
454         https://bugs.webkit.org/show_bug.cgi?id=146048
455
456         Reviewed by Timothy Hatcher.
457
458         * UserInterface/Views/FormattedValue.js:
459         (WebInspector.FormattedValue.createElementForNodePreview):
460
461 2015-06-17  Diego Pino Garcia  <dpino@igalia.com>
462
463         Web Inspector: Show/Hide sidebar buttons have inconsistent highlighted state
464         https://bugs.webkit.org/show_bug.cgi?id=145073
465
466         Reviewed by Joseph Pecoraro.
467
468         * UserInterface/Views/ContentBrowserTabContentView.js:
469         (WebInspector.ContentBrowserTabContentView.prototype._detailsSidebarPanelSelected):
470
471 2015-06-16  Joseph Pecoraro  <pecoraro@apple.com>
472
473         Web Inspector: Inspector Scripts evaluated in the page should not be searchable
474         https://bugs.webkit.org/show_bug.cgi?id=146040
475
476         Reviewed by Darin Adler.
477
478         Any script with a __WebInspector source URL will be hidden by the tools.
479         There were a number of ways the inspector could evaluate script on the page
480         without getting the sourceURL and therefore not getting hidden. Audit
481         all cases of Runtime.evaluate, Runtime.callFunctionOn, and
482         Debugger.evaluateOnCallFrame, to ensure we have an appropriate source URL.
483
484         * UserInterface/Base/Utilities.js:
485         (appendWebInspectorSourceURL):
486         Helper to append a __WebInspectorInternal__ sourceURL to a string that may
487         be evaluated directly on the inspected context.
488
489         * UserInterface/Controllers/DOMTreeManager.js:
490         (WebInspector.DOMTreeManager.domNodeResolved):
491         * UserInterface/Controllers/JavaScriptLogViewController.js:
492         (WebInspector.JavaScriptLogViewController.prototype.consolePromptTextCommitted): Deleted.
493         * UserInterface/Controllers/RuntimeManager.js:
494         * UserInterface/Models/DOMTree.js:
495         (WebInspector.DOMTree.prototype._requestRootDOMNode):
496         * UserInterface/Protocol/RemoteObject.js:
497         (WebInspector.RemoteObject.):
498         * UserInterface/Views/SourceCodeTextEditor.js:
499         (WebInspector.SourceCodeTextEditor.prototype._tokenTrackingControllerHighlightedJavaScriptExpression):
500         Ensure all cases that evaluate directly on the inspected page / context
501         have the intenral source URL.
502
503 2015-06-16  Matt Baker  <mattbaker@apple.com>
504
505         Web Inspector: REGRESSION (r171645): up/down key navigation of timeline sidebar tree elements is broken when scope bar filters are applied
506         https://bugs.webkit.org/show_bug.cgi?id=142315
507
508         Reviewed by Timothy Hatcher.
509
510         TreeOutline's element traversal algorithms have been rewritten to correctly skip over unrevealed tree elements.
511         Previously traversal would halt after encountering a hidden element. We now use an iterative approach, with
512         each iteration producing the next (or previous) element, with respect to the last candidate element. Iteration
513         begins with the current node, and halts once a valid element is found or candidate elements are exhausted.
514
515         * UserInterface/Views/TreeOutline.js:
516         (WebInspector.TreeElement.prototype.traverseNextTreeElement.shouldSkip):
517         (WebInspector.TreeElement.prototype.traverseNextTreeElement):
518         (WebInspector.TreeElement.prototype.traversePreviousTreeElement.shouldSkip):
519         (WebInspector.TreeElement.prototype.traversePreviousTreeElement):
520
521 2015-06-15  Joseph Pecoraro  <pecoraro@apple.com>
522
523         Web Inspector: Stylize Node Previews
524         https://bugs.webkit.org/show_bug.cgi?id=145990
525
526         Reviewed by Timothy Hatcher.
527
528         * UserInterface/Views/FormattedValue.js:
529         (WebInspector.FormattedValue.createElementForNodePreview):
530         Style a node preview like a DOMNode. It is a simple small snippet.
531
532         * UserInterface/Views/ObjectPreviewView.js:
533         (WebInspector.ObjectPreviewView.prototype._appendPropertyPreviews):
534         Use node previews in ObjectPreviewViews.
535
536 2015-06-15  Joseph Pecoraro  <pecoraro@apple.com>
537
538         Web Inspector: Improve some cases of "Object?" Type Annotations
539         https://bugs.webkit.org/show_bug.cgi?id=145954
540
541         Reviewed by Timothy Hatcher.
542
543         * UserInterface/Views/TypeTokenView.js:
544         (WebInspector.TypeTokenView.prototype._displayTypeName):
545         The TypeSet inclusions cover all types, so we can use the leastCommonAncestor
546         name as long as the type set is just object or object and null/undefined.
547         If the typeset includes other primitives then it will gracefully go down
548         below to become something like Object or (many). 
549
550 2015-06-14  Andres Gomez  <agomez@igalia.com>
551
552         [GTK] Web Inspector: Update icon so Rendering Frames timeline distinguish between layout and painting
553         https://bugs.webkit.org/show_bug.cgi?id=145956
554
555         Reviewed by Carlos Garcia Campos.
556
557         * UserInterface/Images/gtk/TimelineRecordPaint.svg:
558         Changed to use green color.
559
560 2015-06-13  Joseph Pecoraro  <pecoraro@apple.com>
561
562         Web Inspector: console.table() with a list of objects no longer works
563         https://bugs.webkit.org/show_bug.cgi?id=145952
564
565         Reviewed by Timothy Hatcher.
566
567         * UserInterface/Views/ConsoleMessageView.js:
568         (WebInspector.ConsoleMessageView.prototype._appendMessageTextAndArguments):
569         (WebInspector.ConsoleMessageView.prototype._formatParameterAsTable):
570         Don't allow expanding a cosole.table message, and don't output the total
571         object even if the table preview was lossless, as the experience is poor.
572
573 2015-06-11  Joseph Pecoraro  <pecoraro@apple.com>
574
575         Web Inspector: CSS Regions not displaying DOM Trees in inspector
576         https://bugs.webkit.org/show_bug.cgi?id=145903
577
578         Reviewed by Timothy Hatcher.
579
580         * UserInterface/Controllers/DOMTreeManager.js:
581         (WebInspector.DOMTreeManager.prototype._updateContentFlowFromPayload):
582         Fix function inside the assertion to actually return a value.
583
584         * UserInterface/Views/DOMTreeOutline.js:
585         (WebInspector.DOMTreeOutline.prototype.update):
586         For DOMTreeOutlines without a root node, don't clear the tree on updates,
587         since that will clear the nodes that have already been added explicitly.
588
589         * UserInterface/Views/ResourceSidebarPanel.js:
590         (WebInspector.ResourceSidebarPanel.prototype._treeElementSelected):
591         * UserInterface/Views/ResourcesTabContentView.js:
592         (WebInspector.ResourcesTabContentView.prototype.canShowRepresentedObject):
593         ResourceTab and sidebar can deal with ContentFlow related views.
594
595 2015-06-11  Joseph Pecoraro  <pecoraro@apple.com>
596
597         Web Inspector: IndexedDB data not showing for MDN example page
598         https://bugs.webkit.org/show_bug.cgi?id=145851
599
600         Reviewed by Anders Carlsson.
601
602         * UserInterface/Views/StorageSidebarPanel.js:
603         (WebInspector.StorageSidebarPanel.prototype._indexedDatabaseWasAdded):
604         Fix typo in Storage tab refactoring that was causing an
605         uncaught exception and not showing Indexed DBs.
606
607 2015-06-11  Devin Rousso  <drousso@apple.com>
608
609         Web Inspector: font-family names interpreted as color
610         https://bugs.webkit.org/show_bug.cgi?id=123468
611
612         Reviewed by Timothy Hatcher.
613
614         * UserInterface/Views/CodeMirrorAdditions.js: Added logic to prevent color picker buttons from appearing before colors that come after a quote character (both " and ').
615
616 2015-06-11  Matt Baker  <mattbaker@apple.com>
617
618         Web Inspector: Rendering Frames timeline should distinguish between layout and painting
619         https://bugs.webkit.org/show_bug.cgi?id=145856
620
621         Reviewed by Timothy Hatcher.
622
623         This patch formalizes the runloop task concept in the frontend, adds new Paint task type to the Rendering
624         Frames timeline, and reorders UI elements such as chart sections and frame "segments" to match the order in
625         which tasks are executed within the runloop.
626
627         We will need to make UI changes to the standard Timelines view in a follow up patch, since tree element icons
628         for Paint records now use a different color that those of other Layout records.
629
630         * UserInterface/Images/TimelineRecordPaint.svg:
631         Changed to use green color.
632
633         * UserInterface/Models/RenderingFrameTimelineRecord.js:
634         (WebInspector.RenderingFrameTimelineRecord):
635         (WebInspector.RenderingFrameTimelineRecord.displayNameForTaskType):
636         (WebInspector.RenderingFrameTimelineRecord.prototype.durationForTask.get validRecordForTaskType):
637         (WebInspector.RenderingFrameTimelineRecord.prototype.durationForTask.set return):
638         (WebInspector.RenderingFrameTimelineRecord.prototype.durationForTask):
639         (WebInspector.RenderingFrameTimelineRecord.prototype.get durationRemainder): Deleted.
640         (WebInspector.RenderingFrameTimelineRecord.prototype.durationForRecords.get var): Deleted.
641         Added TaskType enum to decouple runloop task types from timeline record types, and removed duration remainder
642         support now that "Other" has an associated task type.
643
644         * UserInterface/Views/RenderingFrameTimelineDataGridNode.js:
645         (WebInspector.RenderingFrameTimelineDataGridNode.prototype.get data):
646         (WebInspector.RenderingFrameTimelineDataGridNode.prototype.createCellContent):
647         * UserInterface/Views/RenderingFrameTimelineView.js:
648         (WebInspector.RenderingFrameTimelineView):
649         Added new grid column for Paint task, reordered columns to be consistent with the rest of the UI.
650
651         * UserInterface/Views/TimelineRecordFrame.css:
652         (.timeline-record-frame > .frame > .duration.rendering-frame-timeline-record-script):
653         (.timeline-record-frame > .frame > .duration.rendering-frame-timeline-record-layout):
654         (.timeline-record-frame > .frame > .duration.rendering-frame-timeline-record-paint):
655         (.timeline-record-frame > .frame > .duration): Deleted.
656         (.timeline-record-frame > .frame > .duration.timeline-record-type-network): Deleted.
657         (.timeline-record-frame > .frame > .duration.timeline-record-type-layout): Deleted.
658         (.timeline-record-frame > .frame > .duration.timeline-record-type-script): Deleted.
659         Updated styles for Render Frame tasks.
660
661         * UserInterface/Views/TimelineRecordFrame.js:
662         (WebInspector.TimelineRecordFrame.prototype._updateChildElements.createDurationElement):
663         Updated to use Render Frame task types. Frame segment insertion order is now consistent with the rest of the UI.
664
665         * UserInterface/Views/TimelineSidebarPanel.js:
666         (WebInspector.TimelineSidebarPanel._refreshFrameSelectionChart.chartData.Object.keys.map):
667         (WebInspector.TimelineSidebarPanel.set this):
668         (WebInspector.TimelineSidebarPanel._refreshFrameSelectionChart.get this):
669         (WebInspector.TimelineSidebarPanel): Deleted.
670         (WebInspector.TimelineSidebarPanel.prototype._refreshFrameSelectionChart.durationForRecordType): Deleted.
671         (WebInspector.TimelineSidebarPanel.prototype._refreshFrameSelectionChart): Deleted.
672         Updated to use Render Frame task types.
673
674 2015-06-11  Matt Baker  <mattbaker@apple.com>
675
676         Web Inspector: Wrong overview graph shown after switching from Frames to Timelines
677         https://bugs.webkit.org/show_bug.cgi?id=145778
678
679         Reviewed by Timothy Hatcher.
680
681         TimelineSidebarPanel stores a reference to the selected timeline before switching to the Rendering Frames view,
682         which is used to restore the tree selection, overview graph, and content views when switching back to the
683         standard Timelines view. However if another recording is created before switching, the previously selected
684         timeline tracked by the sidebar cannot be restored, since it doesn't belong to the active recording.
685
686         This is addressed by storing the previously selected timeline type, rather than the timeline object itself.
687         The type is also updated whenever the selected timeline in the tree outline changes, ensuring that the correct
688         timeline will always be restored.
689
690         * UserInterface/Views/TimelineSidebarPanel.js:
691         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject.get if.get if):
692         (WebInspector.TimelineSidebarPanel.get else): Deleted.
693         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject.get if): Deleted.
694         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject): Deleted.
695
696 2015-06-08  Matt Baker  <mattbaker@apple.com>
697
698         Web Inspector: Clearing active Timeline recording should stop capturing
699         https://bugs.webkit.org/show_bug.cgi?id=145767
700
701         Reviewed by Joseph Pecoraro.
702
703         * UserInterface/Views/TimelineRecordingContentView.js:
704         (WebInspector.TimelineRecordingContentView.prototype._clearTimeline):
705         Stop capturing if necessary.
706
707 2015-06-07  Tobias Reiss  <tobi+webkit@basecode.de>
708
709         Web Inspector: Add PrettyPrinter CSSRule tests
710         https://bugs.webkit.org/show_bug.cgi?id=145740
711
712         Reviewed by Brian Burg.
713
714         * Tools/PrettyPrinting/css-rule-tests/add-whitespace-after-colon-expected.css: Added.
715         * Tools/PrettyPrinting/css-rule-tests/add-whitespace-after-colon.css: Added.
716         * Tools/PrettyPrinting/css-rule-tests/add-whitespace-after-comma-expected.css: Added.
717         * Tools/PrettyPrinting/css-rule-tests/add-whitespace-after-comma.css: Added.
718         * Tools/PrettyPrinting/css-rule-tests/do-not-append-semicolon-expected.css: Added.
719         * Tools/PrettyPrinting/css-rule-tests/do-not-append-semicolon.css: Added.
720         * Tools/PrettyPrinting/css-rule-tests/invalid-property-is-not-removed-expected.css: Added.
721         * Tools/PrettyPrinting/css-rule-tests/invalid-property-is-not-removed.css: Added.
722         * Tools/PrettyPrinting/css-rule-tests/keep-prefixed-value-expected.css: Added.
723         * Tools/PrettyPrinting/css-rule-tests/keep-prefixed-value.css: Added.
724         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-colon-expected.css: Added.
725         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-colon.css: Added.
726         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-comment-expected.css: Added.
727         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-comment.css: Added.
728         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-invalid-property-expected.css: Added.
729         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-invalid-property.css: Added.
730         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-prefixed-property-expected.css: Added.
731         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-prefixed-property.css: Added.
732         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-property-expected.css: Added.
733         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-property.css: Added.
734         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-semicolon-expected.css: Added.
735         * Tools/PrettyPrinting/css-rule-tests/remove-whitespace-before-semicolon.css: Added.
736         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-comment-expected.css: Added.
737         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-comment.css: Added.
738         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-invalid-property-expected.css: Added.
739         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-invalid-property.css: Added.
740         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-prefixed-property-expected.css: Added.
741         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-prefixed-property.css: Added.
742         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-property-expected.css: Added.
743         * Tools/PrettyPrinting/css-rule-tests/split-comment-followed-by-property.css: Added.
744         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-comment-expected.css: Added.
745         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-comment.css: Added.
746         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-invalid-property-expected.css: Added.
747         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-invalid-property.css: Added.
748         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-prefixed-property-expected.css: Added.
749         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-prefixed-property.css: Added.
750         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-property-expected.css: Added.
751         * Tools/PrettyPrinting/css-rule-tests/split-invalid-property-followed-by-property.css: Added.
752         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-comment-expected.css: Added.
753         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-comment.css: Added.
754         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-invalid-property-expected.css: Added.
755         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-invalid-property.css: Added.
756         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-prefixed-property-expected.css: Added.
757         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-prefixed-property.css: Added.
758         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-property-expected.css: Added.
759         * Tools/PrettyPrinting/css-rule-tests/split-property-followed-by-property.css: Added.
760         * Tools/PrettyPrinting/css-rule-tests/split-property-without-semicolon-followed-by-comment-and-property-expected.css: Added.
761         * Tools/PrettyPrinting/css-rule-tests/split-property-without-semicolon-followed-by-comment-and-property.css: Added.
762
763 2015-06-05  Devin Rousso  <drousso@apple.com>
764
765         Web Inspector: Fixing code style and adding more limitations for bug 141262
766         https://bugs.webkit.org/show_bug.cgi?id=145668
767
768         Reviewed by Timothy Hatcher.
769
770         * UserInterface/Models/CSSCompletions.js:
771         (WebInspector.CSSCompletions.prototype.isValidPropertyName): Loops through the full property list and returns true only if a property exactly matches the given property name.
772         (WebInspector.CSSCompletions): Added isValidPropertyName function.
773         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
774         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded): Added logic to limit the invalid class marker to only the property value if the property name is an actual property and to prevent invalid style from being applied incorrectly.
775
776 2015-06-05  Devin Rousso  <drousso@apple.com>
777
778         Web Inspector: Highlighting a CSS section does not deselect previously highlighted CSS sections
779         https://bugs.webkit.org/show_bug.cgi?id=145399
780
781         Reviewed by Timothy Hatcher.
782
783         * UserInterface/Views/CSSStyleDeclarationSection.js:
784         (WebInspector.CSSStyleDeclarationSection): Added delegate variable to constructor.
785         (WebInspector.CSSStyleDeclarationSection.prototype.clearSelection):
786         (WebInspector.CSSStyleDeclarationSection.prototype.cssStyleDeclarationTextEditorFocused):
787         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
788         (WebInspector.CSSStyleDeclarationTextEditor): Added event listener to codeMirror on "focus".
789         (WebInspector.CSSStyleDeclarationTextEditor.prototype.clearSelection): Sets the cursor of the codeMirror to character 0 on line 0.
790         (WebInspector.CSSStyleDeclarationTextEditor.prototype._editorFocused): Function that calls the delegate function "editorFocused" when the codeMirror is focused
791         * UserInterface/Views/RulesStyleDetailsPanel.js:
792         (WebInspector.RulesStyleDetailsPanel.prototype.refresh.appendStyleSection):
793         (WebInspector.RulesStyleDetailsPanel.prototype.cssStyleDeclarationSectionEditorFocused): Loops through all sections except for the ignoredSection (parameter) and clears the selected text in each of them.
794
795 2015-06-05  Joseph Pecoraro  <pecoraro@apple.com>
796
797         REGRESSION (r185213): TypeError: undefined is not an object (evaluating 'WebInspector.clearLogOnReload.value')
798         https://bugs.webkit.org/show_bug.cgi?id=145695
799
800         Reviewed by Mark Lam.
801
802         Move and rename the clear log on reload setting property from
803         WebInspector (Main.js) to LogManager (shared with tests).
804
805         * UserInterface/Base/Main.js:
806         (WebInspector.loaded): Deleted.
807         * UserInterface/Controllers/LogManager.js:
808         (WebInspector.LogManager):
809         (WebInspector.LogManager.prototype._delayedMessagesCleared):
810         * UserInterface/Views/LogContentView.js:
811         (WebInspector.LogContentView.prototype._sessionStarted):
812         (WebInspector.LogContentView.prototype._handleContextMenuEvent):
813         (WebInspector.LogContentView.prototype._toggleClearLogOnReloadSetting):
814
815 2015-06-05  Nikita Vasilyev  <nvasilyev@apple.com>
816
817         Web Inspector: [REGRESSION] Dashboard's resource count does not reset when main resource navigates
818         https://bugs.webkit.org/show_bug.cgi?id=144553
819
820         Add missing _mainResourceDidChange, which was removed after switching to the tabs UI.
821
822         Reviewed by Timothy Hatcher.
823
824         * UserInterface/Models/DefaultDashboard.js:
825         (WebInspector.DefaultDashboard):
826         _waitingForFirstMainResourceToStartTrackingSize is not used anywhere, remove it.
827
828         (WebInspector.DefaultDashboard.prototype._mainResourceDidChange): Added.
829
830         (WebInspector.DefaultDashboard.prototype._resourceSizeDidChange): Removed.
831         Unused.
832
833 2015-06-05  Matt Baker  <mattbaker@apple.com>
834
835         Web Inspector: Switch to doughnut chart and remove idle time in the Rendering Frames timeline
836         https://bugs.webkit.org/show_bug.cgi?id=145671
837
838         Reviewed by Timothy Hatcher.
839
840         * Localizations/en.lproj/localizedStrings.js:
841         "Idle" string no longer used.
842
843         * UserInterface/Views/TimelineRecordFrame.js:
844         Reduced maximum frame width by 2px.
845
846         * UserInterface/Views/TimelineSidebarPanel.js:
847         (WebInspector.TimelineSidebarPanel):
848         (WebInspector.TimelineSidebarPanel.prototype._refreshFrameSelectionChart):
849         Added inner radius to chart and removed "Idle" value.
850
851 2015-06-04  Joseph Pecoraro  <pecoraro@apple.com>
852
853         Web Inspector: Class constructor appearing as Object Tree property does not include parameters
854         https://bugs.webkit.org/show_bug.cgi?id=145661
855
856         Reviewed by Timothy Hatcher.
857
858         * UserInterface/Protocol/RemoteObject.js:
859         (WebInspector.RemoteObject):
860         (WebInspector.RemoteObject.fromPrimitiveValue):
861         (WebInspector.RemoteObject.fromPayload):
862         (WebInspector.RemoteObject.prototype.get functionDescription):
863         Include the className as only use it for "class" types to override
864         the normal description string. Stash the actual function description
865         in a property we can access later.
866
867         * UserInterface/Views/ObjectTreePropertyTreeElement.js:
868         (WebInspector.ObjectTreePropertyTreeElement.prototype._functionParameterString):
869         Even if this property is a "class" we want to specifically parse it's
870         function description string. So use functionDescription.
871
872 2015-06-04  Nikita Vasilyev  <nvasilyev@apple.com>
873
874         Web Inspector: Close and open tabs on mouseup, not mousedown
875         https://bugs.webkit.org/show_bug.cgi?id=145656
876
877         Match Safari's behaviour.
878
879         Reviewed by Timothy Hatcher.
880
881         * UserInterface/Views/TabBar.js:
882         (WebInspector.TabBar):
883         (WebInspector.TabBar.prototype.set newTabItem):
884         (WebInspector.TabBar.prototype._handleMouseDown):
885         (WebInspector.TabBar.prototype._handleClick): Added.
886         (WebInspector.TabBar.prototype._handleMouseUp):
887         (WebInspector.TabBar.prototype._handleNewTabClick): Added.
888         (WebInspector.TabBar.prototype._handleMouseMoved):
889
890 2015-06-04  Nikita Vasilyev  <nvasilyev@apple.com>
891
892         Web Inspector: Decrease tabs height to match Safari's tabs height
893         https://bugs.webkit.org/show_bug.cgi?id=145647
894
895         Reviewed by Timothy Hatcher.
896
897         * UserInterface/Views/TabBar.css:
898         (.tab-bar):
899
900 2015-06-04  Tobias Reiss  <tobi+webkit@basecode.de>
901         
902         Web Inspector: Activity Viewer does not update on "Clear Log on reload"
903         https://bugs.webkit.org/show_bug.cgi?id=145466
904         
905         Reviewed by Joseph Pecoraro.
906
907         1. Isolate logic within LogManager and remove hacks/logic from all other files
908         2. Within LogManager: Differentiate "messagesCleared" calls
909          a) that happen as a result of a "requested clear" by Frontend (e.g. Button)
910          b) that happen on page reload and install "clear/keep-on-page-reload" logic
911          c) that happen on frame navigated, console.clear() or clear()
912         3. Unify "ActiveLogCleared" and "Cleared" events to "Cleared"
913         
914         For step 2b and 2c it is important to delay the handling and wait until
915         "_mainResourceDidChange" has determined whether a page reload happened or
916         not.
917         
918         * UserInterface/Base/Main.js:
919         (WebInspector.loaded):
920         Store "clear-log-on-reload" setting globally.
921         
922         * UserInterface/Controllers/IssueManager.js:
923         (WebInspector.IssueManager):
924         * UserInterface/Models/DefaultDashboard.js:
925         (WebInspector.DefaultDashboard): Deleted.
926         * UserInterface/Views/ObjectTreeView.js:
927         (WebInspector.ObjectTreeView.prototype._trackWeakEntries): Deleted.
928         (WebInspector.ObjectTreeView.prototype._untrackWeakEntries): Deleted.
929         (WebInspector.ObjectTreeView): Deleted.
930         Remove deleted events.
931         
932         * UserInterface/Controllers/JavaScriptLogViewController.js:
933         (WebInspector.JavaScriptLogViewController.prototype._handleClearShortcut):
934         (WebInspector.JavaScriptLogViewController.prototype.clear): Deleted.
935         Remove delegate function call and call LogManager directly.
936         
937         * UserInterface/Controllers/LogManager.js:
938         (WebInspector.LogManager):
939         (WebInspector.LogManager.prototype.messagesCleared):
940         (WebInspector.LogManager.prototype._delayedMessagesCleared):
941         (WebInspector.LogManager.prototype.requestClearMessages):
942         (WebInspector.LogManager.prototype._mainResourceDidChange):
943         Isolate "clear log" logic, especially clear/keep-log-on-reload logic.
944         
945         * UserInterface/Views/LogContentView.js:
946         (WebInspector.LogContentView):
947         (WebInspector.LogContentView.prototype._sessionStarted):
948         (WebInspector.LogContentView.prototype._handleContextMenuEvent):
949         (WebInspector.LogContentView.prototype._logCleared):
950         (WebInspector.LogContentView.prototype._toggleClearLogOnReloadSetting):
951         (WebInspector.LogContentView.prototype._clearLog):
952         (WebInspector.LogContentView.prototype.didClearMessages): Deleted.
953         (WebInspector.LogContentView.prototype._sessionsCleared): Deleted.
954         (WebInspector.LogContentView.prototype._activeLogCleared): Deleted.
955         (WebInspector.LogContentView.prototype._clearLogIgnoringClearMessages): Deleted.
956         Make it a consumer of LogManager and remove special hacks. Simplify code.
957
958 2015-06-03  Devin Rousso  <drousso@apple.com>
959
960         Web Inspector: if a known CSS property has an unsupported value, only strikethrough the value
961         https://bugs.webkit.org/show_bug.cgi?id=141262
962
963         Reviewed by Timothy Hatcher.
964
965         * UserInterface/Models/CSSCompletions.js:
966         (WebInspector.CSSCompletions.prototype.nameMatchesValidPropertyExactly): Loops through the full property list and returns true only if a property exactly matches the given property name.
967         (WebInspector.CSSCompletions): Added nameMatchesValidPropertyExactly function.
968         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
969         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded): Added logic to limit the invalid class marker to only the property value if the property name is an actual property.
970
971 2015-06-03  Nikita Vasilyev  <nvasilyev@apple.com>
972
973         Web Inspector: Search field bottom border doesn't match the rest of the toolbar
974         https://bugs.webkit.org/show_bug.cgi?id=145611
975
976         Reviewed by Timothy Hatcher.
977
978         * UserInterface/Views/Toolbar.css:
979         (body:not(.unknown-mac) .toolbar .search-bar > input[type="search"]):
980
981 2015-06-03  Joseph Pecoraro  <pecoraro@apple.com>
982
983         Web Inspector: Uncaught exception starting a NavigationBar drag and mousing over a different NavigationBar
984         https://bugs.webkit.org/show_bug.cgi?id=145589
985
986         Reviewed by Timothy Hatcher.
987
988         * UserInterface/Views/NavigationBar.js:
989         (WebInspector.NavigationBar.prototype._mouseDown):
990         (WebInspector.NavigationBar.prototype._mouseUp):
991         When mouse dragging for navigation bars, only match against navigation
992         bar items inside this navigation bar. Also, fix horizontal detection
993         of navigation bar items by scanning in the middle of the navigation
994         bar instead of the top, which missed the items.
995
996 2015-06-03  Joseph Pecoraro  <pecoraro@apple.com>
997
998         Web Inspector: Debugger Popover for Node object should have go-to-arrow to show the node in DOM tree
999         https://bugs.webkit.org/show_bug.cgi?id=145594
1000
1001         Reviewed by Timothy Hatcher.
1002
1003         * UserInterface/Controllers/DOMTreeManager.js:
1004         (WebInspector.DOMTreeManager.prototype.inspectElement):
1005         Previously we could get an exception later on if we tried to
1006         inspect an element that was not in the DOM. Bail if the node
1007         is not in the DOM or not.
1008
1009         * UserInterface/Views/SourceCodeTextEditor.css:
1010         (.popover .debugger-popover-content > .title > .go-to-arrow):
1011         * UserInterface/Views/SourceCodeTextEditor.js:
1012         (WebInspector.SourceCodeTextEditor.prototype._showPopoverForObject.data.pushNodeToFrontend):
1013         (WebInspector.SourceCodeTextEditor.prototype._showPopoverForObject):
1014         For a node type, add a go-to-arrow in the popover if it is in the DOM or not.
1015
1016 2015-06-02  Joseph Pecoraro  <pecoraro@apple.com>
1017
1018         Web Inspector: Remove uses of delete in Sidebar related code
1019         https://bugs.webkit.org/show_bug.cgi?id=145592
1020
1021         Reviewed by Timothy Hatcher.
1022
1023         * UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
1024         (WebInspector.CSSStyleDetailsSidebarPanel.prototype.refresh):
1025         Clear value instead of deleting.
1026
1027         * UserInterface/Views/SearchSidebarPanel.js:
1028         (WebInspector.SearchSidebarPanel.prototype.performSearch):
1029         Just clear the search identifier. Also assert it (a required string) is always non-falsey.
1030
1031         * UserInterface/Views/Sidebar.js:
1032         (WebInspector.Sidebar.prototype.resizerDragEnded): Deleted.
1033         This entire callback is unnecessary because whenever we start
1034         a drag we save the value.
1035
1036 2015-06-02  Joseph Pecoraro  <pecoraro@apple.com>
1037
1038         Web Inspector: Sidebar and sometimes ContentView scroll position is lost when switching between tabs
1039         https://bugs.webkit.org/show_bug.cgi?id=145591
1040
1041         Reviewed by Timothy Hatcher.
1042
1043         * UserInterface/Views/Sidebar.js:
1044         (WebInspector.Sidebar.prototype.removeSidebarPanel):
1045         When removing a sidebar panel, ensure we call hidden if it was the visible panel.
1046
1047         * UserInterface/Views/SidebarPanel.js:
1048         (WebInspector.SidebarPanel):
1049         (WebInspector.SidebarPanel.prototype.shown):
1050         (WebInspector.SidebarPanel.prototype.hidden):
1051         Save and restore content element scroll position when sidebar panels are shown / hidden.
1052
1053         * UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
1054         (WebInspector.CSSStyleDetailsSidebarPanel.prototype.visibilityDidChange):
1055         * UserInterface/Views/ComputedStyleDetailsPanel.js:
1056         (WebInspector.ComputedStyleDetailsPanel.prototype.shown):
1057         * UserInterface/Views/DetailsSidebarPanel.js:
1058         (WebInspector.DetailsSidebarPanel.prototype.shown):
1059         * UserInterface/Views/LayerTreeDetailsSidebarPanel.js:
1060         (WebInspector.LayerTreeDetailsSidebarPanel.prototype.shown):
1061         (WebInspector.LayerTreeDetailsSidebarPanel.prototype.hidden):
1062         Cleanup. Since sidebar panels are using ES6 classes, have super class calls use `super`!
1063
1064 2015-06-02  Nikita Vasilyev  <nvasilyev@apple.com>
1065
1066         Web Inspector: Use non-monospace font for the frame selector
1067         https://bugs.webkit.org/show_bug.cgi?id=145586
1068
1069         Reviewed by Timothy Hatcher.
1070
1071         * UserInterface/Views/HierarchicalPathComponent.css:
1072         (.hierarchical-path-component):
1073
1074 2015-06-02  Nikita Vasilyev  <nvasilyev@apple.com>
1075
1076         Web Inspector: Dashboard arrow icon on the right is overlapped by a long function/file name
1077         https://bugs.webkit.org/show_bug.cgi?id=145540
1078
1079         Also, increase clickable area of the arrow icon.
1080
1081         Reviewed by Timothy Hatcher.
1082
1083         * UserInterface/Views/DashboardContainerView.css:
1084         (.dashboard-container .advance-arrow):
1085         (.dashboard-container .advance-arrow.advance-forward):
1086         (.dashboard-container .advance-arrow.advance-backward):
1087         * UserInterface/Views/DebuggerDashboardView.css:
1088         (.dashboard.debugger > .location):
1089         (.toolbar .dashboard.debugger):
1090         Increase padding on the right so the content of the dashboard would be never be overlayed by the arrow.
1091
1092 2015-06-02  Joseph Pecoraro  <pecoraro@apple.com>
1093
1094         Web Inspector: Shift + Cmd + Left/Right shouldn't switch tabs while editing text
1095         https://bugs.webkit.org/show_bug.cgi?id=145562
1096
1097         Reviewed by Timothy Hatcher.
1098
1099         * UserInterface/Views/TabBrowser.js:
1100         (WebInspector.TabBrowser):
1101         Only these keyboard shortcuts should check if we are in an editable field.
1102         Remove the implicit prevent default so they can fall back to system behavior
1103         if necessary.
1104
1105         (WebInspector.TabBrowser.prototype._showNextTabCheckingForEditableField):
1106         (WebInspector.TabBrowser.prototype._showPreviousTabCheckingForEditableField):
1107         Bail if we are in an editable field. Otherwise perform the action and prevent default.
1108
1109 2015-06-02  Joseph Pecoraro  <pecoraro@apple.com>
1110
1111         Web Inspector: ⌘F no longer brings up the find-in-page bar after typing in the quick console
1112         https://bugs.webkit.org/show_bug.cgi?id=145546
1113
1114         Reviewed by Timothy Hatcher.
1115
1116         Scope ContentBrowser keyboard events within the ContentBrowser instead
1117         of global, where they might conflict between ContentBrowsers. The scoped
1118         shortcuts now no longer need to be enabled/disabled.
1119
1120         * UserInterface/Views/ContentBrowser.js:
1121         (WebInspector.ContentBrowser):
1122         Scope the keyboard shortcuts.
1123
1124         (WebInspector.ContentBrowser.prototype.shown):
1125         (WebInspector.ContentBrowser.prototype.hidden):
1126         No longer need to control enabling / disabling these non-global shortcuts.
1127
1128 2015-06-01  Jono Wells  <jonowells@apple.com>
1129
1130         Web Inspector: Type token text descenders touch bottom of container
1131         https://bugs.webkit.org/show_bug.cgi?id=145544
1132
1133         Reviewed by Timothy Hatcher.
1134
1135         Move 1px padding from top to bottom of token.
1136
1137         * UserInterface/Views/TypeTokenView.css:
1138         (.type-token):
1139
1140 2015-06-01  Joseph Pecoraro  <pecoraro@apple.com>
1141
1142         Web Inspector: Better handle keyboard events in the quick console prompt
1143         https://bugs.webkit.org/show_bug.cgi?id=145548
1144
1145         Reviewed by Timothy Hatcher.
1146
1147         * UserInterface/Base/Main.js:
1148         (WebInspector.saveDataToFile):
1149         Move generic InspectorFrontendHost code here.
1150
1151         * UserInterface/Views/ContentBrowser.js:
1152         (WebInspector.ContentBrowser.prototype._save):
1153         (WebInspector.ContentBrowser.prototype._saveAs):
1154         (WebInspector.ContentBrowser.prototype._saveDataToFile): Deleted.
1155         Use the generic save code.
1156
1157         * UserInterface/Controllers/JavaScriptLogViewController.js:
1158         (WebInspector.JavaScriptLogViewController):
1159         (WebInspector.JavaScriptLogViewController.prototype._save):
1160         (WebInspector.JavaScriptLogViewController.prototype._saveAs):
1161         Handle save keyboard shortcuts while the prompt is focused.
1162
1163         * UserInterface/Views/LogContentView.js:
1164         (WebInspector.LogContentView.prototype.focusSearchBar):
1165         (WebInspector.LogContentView.prototype.save):
1166         (WebInspector.LogContentView.prototype.saveAs):
1167         Better handle keyboard shortcut cases in the console prompt for cases
1168         like a collapsed or split console view.
1169
1170 2015-06-01  Nikita Vasilyev  <nvasilyev@apple.com>
1171
1172         Web Inspector: Pause/resume button in the debugger dashboard is vertically misaligned
1173         https://bugs.webkit.org/show_bug.cgi?id=145534
1174
1175         Reviewed by Timothy Hatcher.
1176
1177         * UserInterface/Views/ButtonNavigationItem.css:
1178         (.navigation-bar .item.button.suppress-emboss):
1179         Never show borders for the pause/resume button.
1180
1181         * UserInterface/Views/DebuggerDashboardView.css:
1182         (.dashboard.debugger .navigation-bar .item.button):
1183
1184 2015-05-31  Yusuke Suzuki  <utatane.tea@gmail.com>
1185
1186         Web Inspector: Drop forEach from WeakMap / WeakSet native member function maps
1187         https://bugs.webkit.org/show_bug.cgi?id=145497
1188
1189         Reviewed by Sam Weinig.
1190
1191         WeakMap / WeakSet don't have forEach method.
1192         This patch drops it from the native prototype function parameters map.
1193
1194         * UserInterface/Models/NativeFunctionParameters.js:
1195
1196 2015-05-29  Timothy Hatcher  <timothy@apple.com>
1197
1198         Web Inspector: Resources tab navigation sidebar should have a type filter header
1199         https://bugs.webkit.org/show_bug.cgi?id=145474
1200
1201         Reviewed by Joseph Pecoraro.
1202
1203         * Localizations/en.lproj/localizedStrings.js: Updated.
1204
1205         * UserInterface/Images/UpDownArrows.svg: Make styleable.
1206
1207         * UserInterface/Main.html: Added new files.
1208
1209         * UserInterface/Views/LogContentView.js:
1210         (WebInspector.LogContentView): Drive-by fix. Mark All as exclusive.
1211
1212         * UserInterface/Views/MultipleScopeBarItem.js: Added.
1213         (WebInspector.MultipleScopeBarItem):
1214         (WebInspector.MultipleScopeBarItem.prototype.get element):
1215         (WebInspector.MultipleScopeBarItem.prototype.get exclusive):
1216         (WebInspector.MultipleScopeBarItem.prototype.get scopeBarItems):
1217         (WebInspector.MultipleScopeBarItem.set scopeBarItems.createOption):
1218         (WebInspector.MultipleScopeBarItem.prototype.set scopeBarItems):
1219         (WebInspector.MultipleScopeBarItem.prototype.get selected):
1220         (WebInspector.MultipleScopeBarItem.prototype.set selected):
1221         (WebInspector.MultipleScopeBarItem.prototype.get selectedScopeBarItem):
1222         (WebInspector.MultipleScopeBarItem.prototype.set selectedScopeBarItem):
1223         (WebInspector.MultipleScopeBarItem.prototype._clicked):
1224         (WebInspector.MultipleScopeBarItem.prototype._selectElementSelectionChanged):
1225         (WebInspector.MultipleScopeBarItem.prototype._itemSelectionDidChange):
1226
1227         * UserInterface/Views/NavigationSidebarPanel.js:
1228         (WebInspector.NavigationSidebarPanel.prototype.matchTreeElementAgainstFilterFunctions):
1229         (WebInspector.NavigationSidebarPanel.prototype.applyFiltersToTreeElement.matchTextFilter):
1230         (WebInspector.NavigationSidebarPanel.prototype.applyFiltersToTreeElement.makeVisible):
1231         (WebInspector.NavigationSidebarPanel.prototype.applyFiltersToTreeElement):
1232         (WebInspector.NavigationSidebarPanel.prototype._updateFilter):
1233         (WebInspector.NavigationSidebarPanel.prototype._treeElementAddedOrChanged):
1234         Improve filtering so non-text filters can choose to auto-expand the tree.
1235
1236         * UserInterface/Views/ResourceSidebarPanel.css: Added.
1237         (.sidebar > .panel.navigation.resource > :matches(.content, .empty-content-placeholder)):
1238         (.sidebar > .panel.navigation.resource > .navigation-bar):
1239
1240         * UserInterface/Views/ResourceSidebarPanel.js:
1241         (WebInspector.ResourceSidebarPanel):
1242         (WebInspector.ResourceSidebarPanel.prototype.hasCustomFilters):
1243         (WebInspector.ResourceSidebarPanel.prototype.matchTreeElementAgainstCustomFilters.match):
1244         (WebInspector.ResourceSidebarPanel.prototype.matchTreeElementAgainstCustomFilters):
1245         (WebInspector.ResourceSidebarPanel.prototype._scopeBarSelectionDidChange):
1246         Make a ScopeBar and make it filter the TreeOutline when needed.
1247
1248         * UserInterface/Views/ScopeBar.css:
1249         (.scope-bar > li.multiple):
1250         (.scope-bar > li.multiple > select):
1251         (.scope-bar > li.multiple.selected > select):
1252         (.scope-bar > li.multiple > .arrows):
1253         (.scope-bar > li.multiple:matches(.selected, :hover, :active) > .arrows svg .filled):
1254         (.scope-bar > li.multiple:matches(.selected, :hover, :active) > .arrows svg .stroked):
1255
1256         * UserInterface/Views/ScopeBar.js:
1257         (WebInspector.ScopeBar): Support shouldGroupNonExclusiveItems which will use MultipleScopeBarItem.
1258         (WebInspector.ScopeBar.prototype._populate):
1259         (WebInspector.ScopeBar.prototype._itemSelectionDidChange):
1260         (WebInspector.ScopeBar.prototype.updateLayout): Deleted. Not needed for our current styles.
1261
1262         * UserInterface/Views/ScopeBarItem.js:
1263         (WebInspector.ScopeBarItem):
1264         (WebInspector.ScopeBarItem.prototype.get id):
1265         (WebInspector.ScopeBarItem.prototype.get label):
1266         (WebInspector.ScopeBarItem.prototype.get exclusive):
1267         (WebInspector.ScopeBarItem.prototype.setSelected):
1268         (WebInspector.ScopeBarItem.prototype._clicked):
1269         (WebInspector.ScopeBarItem.prototype.get element): Deleted.
1270         (WebInspector.ScopeBarItem.prototype._markElementSelected): Deleted.
1271         Cleaned up and modernized a bit.
1272
1273 2015-05-29  Tobias Reiss  <tobi+webkit@basecode.de>
1274
1275         Web Inspector: Activity Viewer does not update on "clear all console messages"
1276         https://bugs.webkit.org/show_bug.cgi?id=144681
1277
1278         Reviewed by Joseph Pecoraro.
1279
1280         Do not apply "ignoreDidClearMessages" hack on "Clear log" Button and Context menu.
1281
1282         * UserInterface/Views/LogContentView.js:
1283         (WebInspector.LogContentView.prototype._sessionStarted):
1284         (WebInspector.LogContentView.prototype._clearLogIgnoringClearMessages):
1285         (WebInspector.LogContentView.prototype._clearLog): Deleted.
1286
1287 2015-05-29  Matt Baker  <mattbaker@apple.com>
1288
1289         Web Inspector: Remove unused expandTreeElementsWhenArrowing property from TreeOutline
1290         https://bugs.webkit.org/show_bug.cgi?id=145470
1291
1292         Reviewed by Joseph Pecoraro.
1293
1294         * UserInterface/Views/TreeOutline.js:
1295         (WebInspector.TreeOutline.prototype._treeKeyDown):
1296         Replaced uses of removed property with boolean literal.
1297
1298 2015-05-29  Joseph Pecoraro  <pecoraro@apple.com>
1299
1300         Web Inspector: Tabs should have Context Menus
1301         https://bugs.webkit.org/show_bug.cgi?id=144208
1302
1303         Reviewed by Timothy Hatcher.
1304
1305         Give non-pinned tabs "Close Tab" and "Close Other Tabs" context
1306         menu items to affect other non-pinned tabs.
1307
1308         * Localizations/en.lproj/localizedStrings.js:
1309         * UserInterface/Views/TabBarItem.js:
1310         (WebInspector.TabBarItem):
1311         (WebInspector.TabBarItem.prototype._handleContextMenuEvent.closeTab):
1312         (WebInspector.TabBarItem.prototype._handleContextMenuEvent.closeOtherTabs):
1313         (WebInspector.TabBarItem.prototype._handleContextMenuEvent):
1314
1315 2015-05-29  Matt Baker  <mattbaker@apple.com>
1316
1317         Web Inspector: Restoring the last selected DOM node fails on reload (DOMAgent: No node with given path found)
1318         https://bugs.webkit.org/show_bug.cgi?id=144231
1319
1320         Reviewed by Timothy Hatcher.
1321
1322         Removed _restoreSelectedNodeIsAllowed flag from DOMTreeContentView. The frontend receives two documentUpdated
1323         events from the DOM Agent during page reload, and the flag was preventing DOMTreeContentView from restoring
1324         the previous selection in response to the second event.
1325
1326         * UserInterface/Views/DOMTreeContentView.js:
1327         (WebInspector.DOMTreeContentView.prototype.selectLastSelectedNode):
1328         (WebInspector.DOMTreeContentView.prototype._restoreSelectedNodeAfterUpdate):
1329
1330 2015-05-28  Nikita Vasilyev  <nvasilyev@apple.com>
1331
1332         Web Inspector: Update toolbar styles
1333         https://bugs.webkit.org/show_bug.cgi?id=145419
1334
1335         Also, use hairline borders (1 phisical pixel) on retina (DPI >= 2).
1336
1337         Reviewed by Timothy Hatcher.
1338
1339         * UserInterface/Views/ButtonToolbarItem.css:
1340         (.toolbar .item.button): Deleted.
1341         (.toolbar.icon-and-label-vertical .item.button): Deleted.
1342         (.toolbar.icon-and-label-horizontal .item.button): Deleted.
1343         (.toolbar .item.button > .glyph): Deleted.
1344         (.toolbar.small-size .item.button > .glyph): Deleted.
1345         * UserInterface/Views/DashboardContainerView.css:
1346         (.toolbar .dashboard-container): Deleted.
1347         (.toolbar.collapsed .dashboard-container): Deleted.
1348         (.toolbar.small-size:matches(.icon-only, .icon-and-label-vertical, .icon-and-label-horizontal) .dashboard-container): Deleted.
1349         (.toolbar .dashboard.slide-out-down): Deleted.
1350         (.toolbar .dashboard.slide-in-up): Deleted.
1351         * UserInterface/Views/Toolbar.css:
1352         (.toolbar .search-bar > input[type="search"]):
1353         (.toolbar .search-bar > input[type="search"]::-webkit-textfield-decoration-container):
1354         (body:not(.unknown-mac) .toolbar .dashboard-container):
1355         (body:not(.unknown-mac) .toolbar .search-bar > input[type="search"]):
1356         (body:not(.unknown-mac) .toolbar .search-bar > input[type="search"]:focus):
1357         (body:not(.unknown-mac) .toolbar .item.button:active):
1358         (body.window-inactive:not(.unknown-mac) .toolbar .dashboard-container):
1359         (body.unknown-mac .toolbar .dashboard-container):
1360         (body.unknown-mac .toolbar .search-bar > input[type="search"]):
1361         (body.unknown-mac .toolbar .search-bar > input[type="search"]:focus):
1362         (@media (-webkit-min-device-pixel-ratio: 2)):
1363         (body.unknown-mac .toolbar .item.button:active):
1364         (body.unknown-mac.window-inactive .toolbar .dashboard-container):
1365
1366 2015-05-28  Devin Rousso  <drousso@apple.com>
1367
1368         Web Inspector: Jump from a computed style to the rule it came from
1369         https://bugs.webkit.org/show_bug.cgi?id=120640
1370
1371         Reviewed by Timothy Hatcher.
1372
1373         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
1374         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createTextMarkerForPropertyIfNeeded):
1375         If the delegate of CSSStyleDeclarationTextEditor has cssStyleDeclarationTextEditorShouldAddPropertyGoToArrows set to true, add a goToArrow to all CSS property entries.
1376         (WebInspector.CSSStyleDeclarationTextEditor.prototype.highlightProperty.propertiesMatch):
1377         (WebInspector.CSSStyleDeclarationTextEditor.prototype.highlightProperty.hasMatchingLonghandProperty):
1378         (WebInspector.CSSStyleDeclarationTextEditor.prototype.highlightProperty):
1379         Determines if a given CSS property is in the CSS style section and if so, select that CSS property, focus on the section containing that CSS property, and return true.
1380         * UserInterface/Views/CSSStyleDeclarationSection.js:
1381         (WebInspector.CSSStyleDeclarationSection.prototype.highlightProperty):
1382         Searches through the properties of the section for a given property and scrolls to it if found.
1383         * UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
1384         (WebInspector.CSSStyleDetailsSidebarPanel.prototype.computedStyleDetailsPanelShowProperty):
1385         Switches to the rulesStyleDetailsPanel and scrolls to and hightlights a given property in that panel.
1386         (WebInspector.CSSStyleDetailsSidebarPanel.prototype._navigationItemSelected):
1387         (WebInspector.CSSStyleDetailsSidebarPanel.prototype._switchPanels):
1388         Moved this function out of _navigationItemSelected for better reusablity.
1389         * UserInterface/Views/ComputedStyleDetailsPanel.js:
1390         (WebInspector.ComputedStyleDetailsPanel.prototype.cssStyleDeclarationTextEditorShowProperty):
1391         Function that calls the delegate (which should be CSSStyleDetailsSidebarPanel) function computedStyleDetailsPanelShowProperty.
1392         * UserInterface/Views/RulesStyleDetailsPanel.js:
1393         (WebInspector.RulesStyleDetailsPanel):
1394         (WebInspector.RulesStyleDetailsPanel.prototype.refresh):
1395         (WebInspector.RulesStyleDetailsPanel.prototype.scrollToSectionAndHighlightProperty):
1396         Searches through all the sections of the RulesStyleDetailsPanel for a given CSS property.
1397         (WebInspector.RulesStyleDetailsPanel.prototype.shown):
1398         (WebInspector.RulesStyleDetailsPanel.prototype.hidden):
1399         (WebInspector.RulesStyleDetailsPanel.prototype.nodeStylesRefreshed):
1400         Added a flag to this function that will highlight and scroll to a given property (_propertyToSelectAndHighlight) if set on load.
1401         * UserInterface/Views/StyleDetailsPanel.js:
1402         (WebInspector.StyleDetailsPanel.prototype.markAsNeedsRefresh):
1403         (WebInspector.StyleDetailsPanel.prototype.nodeStylesRefreshed):
1404         Made into protected function to allow it to be overridden.
1405         (WebInspector.StyleDetailsPanel.prototype._nodeStylesRefreshed): Deleted.
1406
1407 2015-05-28  Joseph Pecoraro  <pecoraro@apple.com>
1408
1409         Web Inspector: Should have a keyboard shortcut to switch between inspector tabs
1410         https://bugs.webkit.org/show_bug.cgi?id=144207
1411
1412         Reviewed by Timothy Hatcher.
1413
1414         These keyboard shortcuts work well in an undocked inspector window.
1415         Be careful that some keyboard shortcuts, when used inside a text
1416         editor / text field are just text actions. However, some keyboard
1417         shortcuts will work no matter where you trigger them.
1418
1419         * UserInterface/Models/KeyboardShortcut.js:
1420         * UserInterface/Views/TabBar.js:
1421         (WebInspector.TabBar.prototype.selectPreviousTab):
1422         (WebInspector.TabBar.prototype.selectNextTab):
1423         * UserInterface/Views/TabBrowser.js:
1424         (WebInspector.TabBrowser):
1425         (WebInspector.TabBrowser.prototype._showPreviousTab):
1426         (WebInspector.TabBrowser.prototype._showNextTab):
1427
1428 2015-05-28  Joseph Pecoraro  <pecoraro@apple.com>
1429
1430         Web Inspector: NewTabContentView should update button disabled state as other tabs are added/removed
1431         https://bugs.webkit.org/show_bug.cgi?id=145448
1432
1433         Reviewed by Timothy Hatcher.
1434
1435         * UserInterface/Views/NewTabContentView.js:
1436         (WebInspector.NewTabContentView):
1437         Always add a click listener and add the type as a private property on the element.
1438
1439         (WebInspector.NewTabContentView.prototype.shown):
1440         (WebInspector.NewTabContentView.prototype.hidden):
1441         Add / remove event listeners for tab changes. Also update the view when shown.
1442         
1443         (WebInspector.NewTabContentView.prototype._createNewTab):
1444         A disabled button an now be clicked. Do nothing if a new tab of this type is not allowed.
1445
1446         (WebInspector.NewTabContentView.prototype._updateTabItems):
1447         Refresh the disabled state for each of the buttons.
1448
1449 2015-05-27  Joseph Pecoraro  <pecoraro@apple.com>
1450
1451         Web Inspector: Show Page Source does not switch to Resources tab if inspector was closed
1452         https://bugs.webkit.org/show_bug.cgi?id=145423
1453
1454         Reviewed by Timothy Hatcher.
1455
1456         * UserInterface/Base/Main.js:
1457         (WebInspector._frameWasAdded.delayedWork):
1458         (WebInspector._frameWasAdded):
1459         In the special case where we are holding to show a frame's source code when
1460         the frame becomes available (_frameIdentifierToShowSourceCodeWhenAvailable)
1461         we should be forcing to show the tab.
1462
1463 2015-05-27  Joseph Pecoraro  <pecoraro@apple.com>
1464
1465         Web Inspector: Toggling an inherited property sometimes stops working
1466         https://bugs.webkit.org/show_bug.cgi?id=145416
1467
1468         Reviewed by Timothy Hatcher.
1469
1470         * UserInterface/Models/DOMNodeStyles.js:
1471         (WebInspector.DOMNodeStyles.prototype._parseStyleDeclarationPayload):
1472         Ensure we update the existing model objects with the new state information
1473         before possibly bailing. This may produce changed events that update
1474         parts of the inspector appropriately.
1475
1476 2015-05-27  Joseph Pecoraro  <pecoraro@apple.com>
1477
1478         Web Inspector: REGRESSION(r179286) Editing Style Metrics Values no longer works
1479         https://bugs.webkit.org/show_bug.cgi?id=143164
1480
1481         Reviewed by Brian Burg.
1482
1483         * UserInterface/Views/BoxModelDetailsSectionRow.js:
1484         (WebInspector.BoxModelDetailsSectionRow.prototype._updateMetrics.createElement):
1485         (WebInspector.BoxModelDetailsSectionRow.prototype._applyUserInput.resolvedNode.toggleInlineStyleProperty):
1486         (WebInspector.BoxModelDetailsSectionRow.prototype._applyUserInput.resolvedNode.didToggle):
1487         (WebInspector.BoxModelDetailsSectionRow.prototype._applyUserInput.resolvedNode):
1488         (WebInspector.BoxModelDetailsSectionRow.prototype._applyUserInput):
1489         Make it so editing in the metrics pane just evaluates elem.style.setProperty
1490         on the inspected page. Use "!important" to try and give the maximum priority
1491         possible, which is a change from older behavior. Finally, refresh the sidebar
1492         to update all values, and update the UI if bad input didn't change styles.
1493
1494 2015-05-26  Joseph Pecoraro  <pecoraro@apple.com>
1495
1496         Web Inspector: Function parameter string parsing improperly handles empty parameter list
1497         https://bugs.webkit.org/show_bug.cgi?id=145391
1498
1499         Reviewed by Darin Adler.
1500
1501         * UserInterface/Views/ObjectTreePropertyTreeElement.js:
1502         (WebInspector.ObjectTreePropertyTreeElement.prototype._functionParameterString):
1503
1504 2015-05-26  Joseph Pecoraro  <pecoraro@apple.com>
1505
1506         Web Inspector: Add Array.prototype.copyWithin parameter list
1507         https://bugs.webkit.org/show_bug.cgi?id=145388
1508
1509         Reviewed by Darin Adler.
1510
1511         * UserInterface/Models/NativeFunctionParameters.js:
1512
1513 2015-05-26  Nikita Vasilyev  <nvasilyev@apple.com>
1514
1515         Web Inspector: focus outline of a search field should have a radius
1516         https://bugs.webkit.org/show_bug.cgi?id=145383
1517
1518         Add a focus outline animation to roughly mimic the default focus outline of OS X.
1519
1520         Reviewed by Timothy Hatcher.
1521
1522         * UserInterface/Views/Toolbar.css:
1523         (.toolbar .search-bar > input[type="search"]):
1524         -webkit-focus-ring-color doesn't follow element's curvature (e.g. border-radius)
1525         and it cannot be animated. Replace it with box-shadow.
1526
1527         (.toolbar .search-bar > input[type="search"]:focus):
1528
1529 2015-05-26  Nikita Vasilyev  <nvasilyev@apple.com>
1530
1531         Web Inspector: The bottom part "debugger" is clipped in the tab’s title
1532         https://bugs.webkit.org/show_bug.cgi?id=145381
1533
1534         Reviewed by Timothy Hatcher.
1535
1536         * UserInterface/Views/TabBar.css:
1537         (.tab-bar > .item):
1538         Set line-height to fit "debugger". Setting line-height to 16px, which is the
1539         size of the tabs icons, moves the text one pixel up, so set it to 15px.
1540
1541 2015-05-26  Dan Bernstein  <mitz@apple.com>
1542
1543         <rdar://problem/21104551> Update build settings
1544
1545         Reviewed by Anders Carlsson.
1546
1547         * Configurations/Base.xcconfig:
1548         * Configurations/DebugRelease.xcconfig:
1549         * Configurations/Version.xcconfig:
1550
1551 2015-05-23  Dan Bernstein  <mitz@apple.com>
1552
1553         Remove unused definitions of WEBKIT_VERSION_MIN_REQUIRED
1554         https://bugs.webkit.org/show_bug.cgi?id=145345
1555
1556         Reviewed by Sam Weinig.
1557
1558         * Configurations/Base.xcconfig:
1559
1560 2015-05-23  Joseph Pecoraro  <pecoraro@apple.com>
1561
1562         Web Inspector: Remove code related with unused style classes
1563         https://bugs.webkit.org/show_bug.cgi?id=145332
1564
1565         Reviewed by Timothy Hatcher.
1566
1567         * UserInterface/Views/ConsoleMessageView.js:
1568         (WebInspector.ConsoleMessageView.prototype._formatWithSubstitutionString.append):
1569         (WebInspector.ConsoleMessageView.prototype._formatWithSubstitutionString):
1570         The "type-string" class has no styles associated with it. So the entire span can be removed.
1571
1572         * UserInterface/Views/DOMTreeElement.js:
1573         Both of these style classes have no styles associated with them. Remove the class names.
1574
1575 2015-05-23  Joseph Pecoraro  <pecoraro@apple.com>
1576
1577         Web Inspector: Improve native parameter lists a bit
1578         https://bugs.webkit.org/show_bug.cgi?id=145338
1579
1580         Reviewed by Timothy Hatcher.
1581
1582         * UserInterface/Models/NativeFunctionParameters.js:
1583         * UserInterface/Views/ObjectTreePropertyTreeElement.js:
1584         (WebInspector.ObjectTreePropertyTreeElement.prototype._functionParameterString):
1585
1586 2015-05-23  Joseph Pecoraro  <pecoraro@apple.com>
1587
1588         Web Inspector: Update CSS Autocompletion properties and values
1589         https://bugs.webkit.org/show_bug.cgi?id=145341
1590
1591         Reviewed by Timothy Hatcher.
1592
1593         * UserInterface/Models/CSSKeywordCompletions.js:
1594
1595 2015-05-22  Joseph Pecoraro  <pecoraro@apple.com>
1596
1597         Web Inspector: Adopt Object.setPrototypeOf
1598         https://bugs.webkit.org/show_bug.cgi?id=145335
1599
1600         Reviewed by Timothy Hatcher.
1601
1602         For a case that won't easily move to ES6 classes use Object.setPrototypeOf.
1603
1604         * UserInterface/Protocol/InspectorBackend.js:
1605         (InspectorBackend.Command.create):
1606
1607 2015-05-22  Joseph Pecoraro  <pecoraro@apple.com>
1608
1609         Web Inspector: Inline use once class names and remove some unused class names
1610         https://bugs.webkit.org/show_bug.cgi?id=145334
1611
1612         Reviewed by Timothy Hatcher.
1613
1614         * UserInterface/Views/ApplicationCacheFrameContentView.js:
1615         (WebInspector.ApplicationCacheFrameContentView):
1616         * UserInterface/Views/BoxModelDetailsSectionRow.js:
1617         (WebInspector.BoxModelDetailsSectionRow):
1618         * UserInterface/Views/CSSStyleDeclarationSection.js:
1619         (WebInspector.CSSStyleDeclarationSection):
1620         * UserInterface/Views/CSSStyleDetailsSidebarPanel.js:
1621         (WebInspector.CSSStyleDetailsSidebarPanel):
1622         * UserInterface/Views/ClusterContentView.js:
1623         (WebInspector.ClusterContentView):
1624         * UserInterface/Views/CompletionSuggestionsView.js:
1625         (WebInspector.CompletionSuggestionsView):
1626         * UserInterface/Views/ConsolePrompt.js:
1627         (WebInspector.ConsolePrompt):
1628         * UserInterface/Views/ContentBrowser.js:
1629         (WebInspector.ContentBrowser):
1630         * UserInterface/Views/ContentFlowTreeElement.js:
1631         (WebInspector.ContentFlowTreeElement):
1632         * UserInterface/Views/ContentView.js:
1633         (WebInspector.ContentView):
1634         * UserInterface/Views/ContentViewContainer.js:
1635         (WebInspector.ContentViewContainer):
1636         * UserInterface/Views/CookieStorageContentView.js:
1637         (WebInspector.CookieStorageContentView):
1638         * UserInterface/Views/CookieStorageTreeElement.js:
1639         (WebInspector.CookieStorageTreeElement):
1640         * UserInterface/Views/DOMStorageContentView.js:
1641         (WebInspector.DOMStorageContentView):
1642         * UserInterface/Views/DOMTreeContentView.js:
1643         (WebInspector.DOMTreeContentView):
1644         * UserInterface/Views/DashboardView.js:
1645         (WebInspector.DashboardView):
1646         * UserInterface/Views/DatabaseTableContentView.js:
1647         (WebInspector.DatabaseTableContentView):
1648         * UserInterface/Views/DebuggerDashboardView.js:
1649         (WebInspector.DebuggerDashboardView):
1650         (WebInspector.DebuggerDashboardView.prototype._rebuildLocation):
1651         * UserInterface/Views/DetailsSection.js:
1652         (WebInspector.DetailsSection):
1653         * UserInterface/Views/DetailsSectionSimpleRow.js:
1654         * UserInterface/Views/FontResourceContentView.js:
1655         (WebInspector.FontResourceContentView):
1656         (WebInspector.FontResourceContentView.prototype.createMetricElement):
1657         (WebInspector.FontResourceContentView.prototype.contentAvailable):
1658         * UserInterface/Views/HierarchicalPathComponent.js:
1659         (WebInspector.HierarchicalPathComponent):
1660         (WebInspector.HierarchicalPathComponent.prototype.set selectorArrows):
1661         * UserInterface/Views/IndexedDatabaseObjectStoreContentView.js:
1662         * UserInterface/Views/LayoutTimelineOverviewGraph.js:
1663         (WebInspector.LayoutTimelineOverviewGraph):
1664         * UserInterface/Views/NetworkTimelineOverviewGraph.js:
1665         (WebInspector.NetworkTimelineOverviewGraph):
1666         * UserInterface/Views/OverviewTimelineView.js:
1667         * UserInterface/Views/ProbeSetDetailsSection.js:
1668         * UserInterface/Views/QuickConsole.js:
1669         * UserInterface/Views/ReplayDashboardView.js:
1670         * UserInterface/Views/ScriptContentView.js:
1671         (WebInspector.ScriptContentView):
1672         * UserInterface/Views/ScriptTimelineOverviewGraph.js:
1673         (WebInspector.ScriptTimelineOverviewGraph):
1674         * UserInterface/Views/TextContentView.js:
1675         (WebInspector.TextContentView):
1676         * UserInterface/Views/TimelineOverview.js:
1677         (WebInspector.TimelineOverview):
1678         * UserInterface/Views/TimelineOverviewGraph.js:
1679         (WebInspector.TimelineOverviewGraph):
1680         * UserInterface/Views/TimelineRecordBar.js:
1681         (WebInspector.TimelineRecordBar):
1682         * UserInterface/Views/TimelineRecordFrame.js:
1683         (WebInspector.TimelineRecordFrame):
1684         * UserInterface/Views/TimelineRecordingContentView.js:
1685         (WebInspector.TimelineRecordingContentView):
1686         * UserInterface/Views/TimelineRuler.js:
1687         (WebInspector.TimelineRuler):
1688         (WebInspector.TimelineRuler.prototype.set allowsTimeRangeSelection):
1689
1690 2015-05-22  Joseph Pecoraro  <pecoraro@apple.com>
1691
1692         Web Inspector: DOMTree Keyboard Shortcut 'H' to toggle element visibility is not working
1693         https://bugs.webkit.org/show_bug.cgi?id=145331
1694
1695         Reviewed by Brian Burg.
1696
1697         We no longer have CSSProperty.value setters. Instead of attempting
1698         to toggle and clobber inline style values on the element we:
1699         
1700           1. inject a <style> on the page like ".WebInspectorHide { visibility:hidden }"
1701           2. toggle the WebInspectorHide class on the selected element
1702
1703         This approach is inspired by the original WebKit change in the
1704         old inspector frontend: <https://webkit.org/b/110641>.
1705
1706         The old approach toggled a few properties (opacity and pointer events)
1707         while the new approach uses visibility, matching other browsers.
1708
1709         * UserInterface/Views/DOMTreeOutline.js:
1710         (WebInspector.DOMTreeOutline.prototype._hideElement.resolvedNode.injectStyleAndToggleClass):
1711         (WebInspector.DOMTreeOutline.prototype._hideElement.resolvedNode):
1712         (WebInspector.DOMTreeOutline.prototype._hideElement):
1713         (WebInspector.DOMTreeOutline.prototype._hideElement.toggleProperties): Deleted.
1714
1715 2015-05-21  Joseph Pecoraro  <pecoraro@apple.com>
1716
1717         Web Inspector: Give Toolbar buttons an active style
1718         https://bugs.webkit.org/show_bug.cgi?id=145292
1719
1720         Reviewed by Timothy Hatcher.
1721
1722         * UserInterface/Views/ButtonToolbarItem.css:
1723         (.toolbar .item.button:active):
1724
1725 2015-05-21  Nikita Vasilyev  <nvasilyev@apple.com>
1726
1727         Web Inspector: Dashboard debugger information can be clipped
1728         https://bugs.webkit.org/show_bug.cgi?id=144209
1729
1730         Reviewed by Timothy Hatcher.
1731
1732         * UserInterface/Views/DashboardContainerView.css:
1733         (.toolbar .dashboard-container):
1734         Make dashboard flexible by using vw (viewport width units).
1735
1736         * UserInterface/Views/DefaultDashboardView.css:
1737         (.toolbar .dashboard.default):
1738         Center default dashboard icons in the middle, don't spread them along the dashboard.
1739
1740 2015-05-21  Joseph Pecoraro  <pecoraro@apple.com>
1741
1742         Web Inspector: Improve the UI of the type profiler popover
1743         https://bugs.webkit.org/show_bug.cgi?id=140737
1744
1745         Reviewed by Timothy Hatcher.
1746
1747         Display TypeDescriptions in a Tree similiar to ObjectTrees.
1748         Currently the only information we have in a TypeDescription
1749         is the property names, and not their types, so all we can
1750         display in the tree are names.
1751
1752         * Localizations/en.lproj/localizedStrings.js:
1753         * UserInterface/Controllers/TypeTokenAnnotator.js:
1754         (WebInspector.TypeTokenAnnotator.prototype._insertTypeToken):
1755         * UserInterface/Main.html:
1756         * UserInterface/Models/ScriptSyntaxTree.js:
1757         (WebInspector.ScriptSyntaxTree.prototype.updateTypes):
1758         * UserInterface/Models/StructureDescription.js: Added.
1759         (WebInspector.StructureDescription):
1760         (WebInspector.StructureDescription.fromPayload):
1761         (WebInspector.StructureDescription.prototype.get fields):
1762         (WebInspector.StructureDescription.prototype.get optionalFields):
1763         (WebInspector.StructureDescription.prototype.get constructorName):
1764         (WebInspector.StructureDescription.prototype.get prototypeStructure):
1765         (WebInspector.StructureDescription.prototype.get imprecise):
1766         * UserInterface/Models/TypeDescription.js: Added.
1767         (WebInspector.TypeDescription):
1768         (WebInspector.TypeDescription.fromPayload):
1769         (WebInspector.TypeDescription.prototype.get leastCommonAncestor):
1770         (WebInspector.TypeDescription.prototype.get typeSet):
1771         (WebInspector.TypeDescription.prototype.get structures):
1772         (WebInspector.TypeDescription.prototype.get valid):
1773         (WebInspector.TypeDescription.prototype.get truncated):
1774         * UserInterface/Models/TypeSet.js:
1775         (WebInspector.TypeSet):
1776         (WebInspector.TypeSet.prototype.get primitiveTypeNames):
1777         * UserInterface/Views/ObjectTreeView.js:
1778         (WebInspector.ObjectTreeView.prototype._updateChildren):
1779         * UserInterface/Views/Section.css: Removed.
1780         * UserInterface/Views/Section.js: Removed.
1781         * UserInterface/Views/SourceCodeTextEditor.css:
1782         (.popover .expandable):
1783         * UserInterface/Views/SourceCodeTextEditor.js:
1784         (WebInspector.SourceCodeTextEditor):
1785         (WebInspector.SourceCodeTextEditor.prototype.showPopoverForTypes):
1786         (WebInspector.SourceCodeTextEditor.prototype._populateWithScriptContent):
1787         (WebInspector.SourceCodeTextEditor.prototype._tokenTrackingControllerHighlightedJavaScriptTypeInformation.handler):
1788         (WebInspector.SourceCodeTextEditor.prototype._tokenTrackingControllerHighlightedJavaScriptTypeInformation):
1789         (WebInspector.SourceCodeTextEditor.prototype._showPopoverForObject):
1790         * UserInterface/Views/TypePropertiesSection.js: Removed.
1791         * UserInterface/Views/TypeTokenView.js:
1792         (WebInspector.TypeTokenView):
1793         (WebInspector.TypeTokenView.titleForPopover):
1794         (WebInspector.TypeTokenView.prototype.update):
1795         (WebInspector.TypeTokenView.prototype._setUpMouseoverHandlers):
1796         (WebInspector.TypeTokenView.prototype._shouldShowPopover):
1797         (WebInspector.TypeTokenView.prototype._displayTypeName):
1798         * UserInterface/Views/TypeTreeElement.css: Added.
1799         (.type-tree-element):
1800         (.type-tree-element > .titles):
1801         (.type-tree-element > .disclosure-button):
1802         (.type-tree-element.parent > .disclosure-button):
1803         (.type-tree-element.parent.expanded > .disclosure-button):
1804         (.type-tree-element > .icon):
1805         (.type-tree-element.prototype):
1806         (.type-tree-element.prototype:focus):
1807         (.type-tree-element.prototype + ol):
1808         * UserInterface/Views/TypeTreeElement.js: Added.
1809         (WebInspector.TypeTreeElement):
1810         (WebInspector.TypeTreeElement.prototype.get name):
1811         (WebInspector.TypeTreeElement.prototype.get isPrototype):
1812         (WebInspector.TypeTreeElement.prototype.onpopulate):
1813         (WebInspector.TypeTreeElement.prototype.onexpand):
1814         * UserInterface/Views/TypeTreeView.css: Renamed from Source/WebInspectorUI/UserInterface/Views/PropertiesSection.js.
1815         (.type-tree):
1816         (.type-tree-outline):
1817         (.type-tree-outline li):
1818         (.type-tree-outline ol):
1819         (.type-tree-outline ol.expanded):
1820         (.type-tree-outline li .empty-message):
1821         * UserInterface/Views/TypeTreeView.js: Added.
1822         (WebInspector.TypeTreeView):
1823         (WebInspector.TypeTreeView.prototype.get typeDescription):
1824         (WebInspector.TypeTreeView.prototype.get element):
1825         (WebInspector.TypeTreeView.prototype.get treeOutline):
1826         (WebInspector.TypeTreeView.prototype._populate):
1827
1828 2015-05-20  Joseph Pecoraro  <pecoraro@apple.com>
1829
1830         Web Inspector: Fix WebInspector.StackTrace style
1831         https://bugs.webkit.org/show_bug.cgi?id=145240
1832
1833         Reviewed by Timothy Hatcher.
1834
1835         * UserInterface/Models/StackTrace.js:
1836         Reorder and add our usual marker comments.
1837
1838 2015-05-19  Joseph Pecoraro  <pecoraro@apple.com>
1839
1840         Web Inspector: Improve Preview for NodeList / array like collections
1841         https://bugs.webkit.org/show_bug.cgi?id=145177
1842
1843         Reviewed by Timothy Hatcher.
1844
1845         * UserInterface/Views/ObjectPreviewView.js:
1846         (WebInspector.ObjectPreviewView.prototype._appendPreview):
1847         Show the class name for a non-basic-Array, but still hide
1848         it for a basic Array.
1849
1850 2015-05-19  Nikita Vasilyev  <nvasilyev@apple.com>
1851
1852         Web Inspector: Convert stackTrace from raw payload data to an array of CallFrames
1853         https://bugs.webkit.org/show_bug.cgi?id=144982
1854
1855         Reviewed by Joseph Pecoraro.
1856
1857         * UserInterface/Controllers/LogManager.js:
1858         * UserInterface/Main.html:
1859         * UserInterface/Models/CallFrame.js:
1860         (WebInspector.CallFrame.fromPayload):
1861         Consider an empty string url as a native code as it was in 
1862         WebInspector.ConsoleMessageView.prototype._firstNonNativeCallFrame
1863
1864         * UserInterface/Models/ConsoleMessage.js:
1865         (WebInspector.ConsoleMessage):
1866         Convert _stackTrace from an array of payload objects to WebInspector.StackTrace model.
1867
1868         * UserInterface/Models/StackTrace.js: Added.
1869         (WebInspector.StackTrace):
1870         (WebInspector.StackTrace.prototype.get callFrames):
1871         (WebInspector.StackTrace.prototype.get firstNonNativeCallFrame): Added.
1872         (WebInspector.StackTrace.fromPayload):
1873         * UserInterface/Test.html:
1874         * UserInterface/Views/CallFrameView.js:
1875         (WebInspector.CallFrameView):
1876         Don't show a URL when sourceCodeLocation is missing, fix webkit.org/b/145071.
1877
1878         * UserInterface/Views/ConsoleMessageView.js:
1879         (WebInspector.ConsoleMessageView):
1880         (WebInspector.ConsoleMessageView.prototype.toClipboardString):
1881         (WebInspector.ConsoleMessageView.prototype._appendLocationLink):
1882         (WebInspector.ConsoleMessageView.prototype._appendStackTrace):
1883         (WebInspector.ConsoleMessageView.prototype._shouldShowStackTrace):
1884         (WebInspector.ConsoleMessageView.prototype._linkifyCallFrame):
1885         (WebInspector.ConsoleMessageView.prototype._firstNonNativeCallFrame): Deleted.
1886
1887 2015-05-18  Joseph Pecoraro  <pecoraro@apple.com>
1888
1889         Web Inspector: Improve Reliability of Closing and Reopening Elements Tab
1890         https://bugs.webkit.org/show_bug.cgi?id=145139
1891
1892         Reviewed by Timothy Hatcher.
1893
1894         * UserInterface/Views/DOMTreeElement.js:
1895         (WebInspector.DOMTreeElement.prototype.highlightSearchResults):
1896         (WebInspector.DOMTreeElement.prototype.hideSearchHighlights):
1897         (WebInspector.DOMTreeElement.prototype.emphasizeSearchHighlight.animationEnded):
1898         (WebInspector.DOMTreeElement.prototype.emphasizeSearchHighlight):
1899         (WebInspector.DOMTreeElement.prototype._updateChildren):
1900         (WebInspector.DOMTreeElement.prototype.adjustCollapsedRange):
1901         (WebInspector.DOMTreeElement.prototype._startEditingAsHTML.dispose):
1902         (WebInspector.DOMTreeElement.prototype._startEditingAsHTML):
1903         (WebInspector.DOMTreeElement.prototype.updateTitle):
1904         Stop using the `delete` operator.
1905
1906         * UserInterface/Views/DOMTreeOutline.js:
1907         (WebInspector.DOMTreeOutline.prototype.setVisible):
1908         Trigger an update when the outline is made visible.
1909
1910         * UserInterface/Views/FrameDOMTreeContentView.js:
1911         (WebInspector.FrameDOMTreeContentView.prototype._rootDOMNodeAvailable):
1912         Provide a reasonable default selection if there is no body or document element.
1913         For example in an augmented DOM tree.
1914
1915 2015-05-18  Joseph Pecoraro  <pecoraro@apple.com>
1916
1917         Web Inspector: Tab Restoration incorrectly makes ContentViews "shown" in background tabs
1918         https://bugs.webkit.org/show_bug.cgi?id=145080
1919
1920         Reviewed by Timothy Hatcher.
1921
1922         Many tabs have their own content browser / navigation sidebar. During
1923         state restoration, each tab would immediately try to restore an
1924         appropriate ContentView after the load / navigation. However, in doing
1925         so, we weren't respecting whether or not the Tab the ContentBrowser
1926         was in was hidden or not, so ContentViews in background tags were
1927         still being treated as shown/visible.
1928
1929         This patch changes state restoration to only affect the foreground
1930         tab, and be delayed on all background tabs until that tab is shown.
1931         This reduces the amount of work on load and navigation to just a
1932         single tab instead of all tabs. Most importantly, it avoids having
1933         performing work on ContentBrowsers that are non-visible, so state
1934         restoration only happens for visible ContentBrowsers.
1935
1936         For simplicity, in the case of a delayed tab restoration triggered
1937         by the user switching tabs, we don't try twice (like we occasionally
1938         do on load/reload). We could add back some hueristic here if needed.
1939
1940         * UserInterface/Base/Main.js:
1941         (WebInspector.contentLoaded):
1942         (WebInspector.activateExtraDomains):
1943         (WebInspector._mainResourceDidChange):
1944         (WebInspector._restoreCookieForOpenTabs):
1945         * UserInterface/Views/NavigationSidebarPanel.js:
1946
1947         * UserInterface/Views/TabContentView.js:
1948         (WebInspector.TabContentView.prototype.shown):
1949         (WebInspector.TabContentView.prototype.restoreStateFromCookie):
1950         (WebInspector.TabContentView.prototype.saveStateToCookie):
1951         When asked to restore state, save that logic until the next time the tab is shown.
1952
1953         * UserInterface/Views/TextEditor.js:
1954         (WebInspector.TextEditor.prototype.get visible):
1955         * UserInterface/Views/SourceCodeTextEditor.js:
1956         (WebInspector.SourceCodeTextEditor.prototype.editingControllerDidStartEditing):
1957         (WebInspector.SourceCodeTextEditor.prototype._setTypeTokenAnnotatorEnabledState): Deleted.
1958         Although this didn't actually catch the issue, it could potentially
1959         catch other issues in the future. We don't want to enable the annotators
1960         in a non-visible text editor, as it could be a performance issue.
1961
1962 2015-05-15  Matt Baker  <mattbaker@apple.com>
1963
1964         Web Inspector: empty timeline should not use previous timeline's zoom interval
1965         https://bugs.webkit.org/show_bug.cgi?id=132754
1966
1967         Reviewed by Joseph Pecoraro.
1968
1969         When a timeline recording is started in response to a provisional load, TimelineManager should check whether
1970         the main resource url is changing before loading a new timeline recording. If the main resource is changing,
1971         set the selection start, selection duration, and duration-per-pixel settings of the TimelineOverview to their
1972         default values.
1973
1974         * UserInterface/Controllers/TimelineManager.js:
1975         (WebInspector.TimelineManager):
1976         (WebInspector.TimelineManager.prototype.isCapturingPageReload):
1977         (WebInspector.TimelineManager.prototype.capturingStopped):
1978         (WebInspector.TimelineManager.prototype.pageDidLoad):
1979         (WebInspector.TimelineManager.prototype._startAutoCapturing):
1980         Added a property for checking whether auto capture was triggered by a page reload.
1981
1982         * UserInterface/Views/LinearTimelineOverview.js:
1983         (WebInspector.LinearTimelineOverview):
1984         Increase default selection time to 15 seconds.
1985
1986         * UserInterface/Views/TimelineOverview.js:
1987         (WebInspector.TimelineOverview):
1988         Reset selection and zoom if TimelineManager isn't capturing in response to a page reload.
1989
1990         (WebInspector.TimelineOverview.prototype.reset):
1991         Reset selection and zoom.
1992
1993         (WebInspector.TimelineOverview.prototype._timeRangeSelectionChanged):
1994         (WebInspector.TimelineOverview.prototype._resetSelection):
1995         Added a helper function for resetting selection and zoom to their default values.
1996
1997 2015-05-15  Matt Baker  <mattbaker@apple.com>
1998
1999         Web Inspector: Timeline data grid displays wrong records after switching between Timelines/Frames mode
2000         https://bugs.webkit.org/show_bug.cgi?id=145084
2001
2002         Reviewed by Timothy Hatcher.
2003
2004         Update timeline sidebar filter whenever the view mode changes.
2005
2006         * UserInterface/Views/TimelineSidebarPanel.js:
2007         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject.get if.get if):
2008         (WebInspector.TimelineSidebarPanel.get else):
2009         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject.get if):
2010         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject):
2011
2012 2015-05-15  Joseph Pecoraro  <pecoraro@apple.com>
2013
2014         Web Inspector: Bump image format number to force image regeneration
2015         https://bugs.webkit.org/show_bug.cgi?id=145074
2016
2017         Reviewed by Timothy Hatcher.
2018
2019         * UserInterface/Base/ImageUtilities.js:
2020
2021 2015-05-15  Joseph Pecoraro  <pecoraro@apple.com>
2022
2023         Web Inspector: Reduce type annotation update frequency
2024         https://bugs.webkit.org/show_bug.cgi?id=145066
2025
2026         Reviewed by Timothy Hatcher.
2027
2028         * UserInterface/Controllers/TypeTokenAnnotator.js:
2029         Reduce the frequency which could commonly be 16-24ms
2030         to a minimum of 100ms and maximum of 2000ms.
2031
2032 2015-05-15  Joseph Pecoraro  <pecoraro@apple.com>
2033
2034         Web Inspector: Fix some possible event listener leakers in content views
2035         https://bugs.webkit.org/show_bug.cgi?id=145068
2036
2037         Reviewed by Timothy Hatcher.
2038
2039         Now that some content views can be closed that weren't closable before, ensure
2040         we clean up after global event listeners that may strongly reference "this".
2041
2042         * UserInterface/Views/DOMTreeContentView.js:
2043         (WebInspector.DOMTreeContentView.prototype.closed):
2044         * UserInterface/Views/DOMTreeOutline.js:
2045         (WebInspector.DOMTreeOutline.prototype.close):
2046         * UserInterface/Views/LayoutTimelineView.js:
2047         (WebInspector.LayoutTimelineView.prototype.closed):
2048         * UserInterface/Views/NetworkTimelineView.js:
2049         (WebInspector.NetworkTimelineView.prototype.closed):
2050         * UserInterface/Views/RenderingFrameTimelineView.js:
2051         (WebInspector.RenderingFrameTimelineView.prototype.closed):
2052         * UserInterface/Views/ScriptContentView.js:
2053         (WebInspector.ScriptContentView.prototype.closed):
2054         * UserInterface/Views/ScriptTimelineView.js:
2055         (WebInspector.ScriptTimelineView.prototype.closed):
2056         * UserInterface/Views/SourceCodeTextEditor.js:
2057         (WebInspector.SourceCodeTextEditor.prototype.close):
2058         * UserInterface/Views/TextResourceContentView.js:
2059         (WebInspector.TextResourceContentView.prototype.closed):
2060         * UserInterface/Views/TimelineDataGrid.js:
2061         (WebInspector.TimelineDataGrid.prototype.closed):
2062         (WebInspector.TimelineDataGrid.prototype.handleEvent):
2063
2064 2015-05-15  Joseph Pecoraro  <pecoraro@apple.com>
2065
2066         Web Inspector: Initiator Popovers no longer work in Layout Timeline
2067         https://bugs.webkit.org/show_bug.cgi?id=145067
2068
2069         Reviewed by Timothy Hatcher.
2070
2071         * UserInterface/Views/LayoutTimelineDataGrid.js:
2072         (WebInspector.LayoutTimelineDataGrid.prototype.callFramePopoverAnchorElement):
2073         Update the column name, which changed in r183134.
2074
2075 2015-05-14  Joseph Pecoraro  <pecoraro@apple.com>
2076
2077         Web Inspector: Update the New Tab button disabled state after extra domains are activated
2078         https://bugs.webkit.org/show_bug.cgi?id=145028
2079
2080         Reviewed by Timothy Hatcher.
2081
2082         * UserInterface/Base/Main.js:
2083         (WebInspector.activateExtraDomains):
2084
2085 2015-05-14  Matt Baker  <mattbaker@apple.com>
2086
2087         Web Inspector: Current time marker is always at zero in Rendering Frames ruler
2088         https://bugs.webkit.org/show_bug.cgi?id=144518
2089
2090         Reviewed by Timothy Hatcher.
2091
2092         The current and end time values for the rendering frame timeline overview should always be equal to the frame
2093         number of the last record in the rendering frames timeline.
2094
2095         * UserInterface/Views/TimelineOverview.js:
2096         (WebInspector.TimelineOverview):
2097         (WebInspector.TimelineOverview.prototype.updateLayout):
2098         * UserInterface/Views/TimelineRecordingContentView.js:
2099         (WebInspector.TimelineRecordingContentView.prototype._updateTimes):
2100         (WebInspector.TimelineRecordingContentView.prototype._recordingTimesUpdated):
2101
2102 2015-05-11  Brent Fulgham  <bfulgham@apple.com>
2103
2104         [Win] Move Windows build target to Windows 7 (or newer)
2105         https://bugs.webkit.org/show_bug.cgi?id=144890
2106         <rdar://problem/20707307>
2107
2108         Reviewed by Anders Carlsson.
2109
2110         Update linked SDK and minimal Windows level to be compatible with
2111         Windows 7 or newer.
2112
2113         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj:
2114
2115 2015-05-11  Timothy Hatcher  <timothy@apple.com>
2116
2117         Web Inspector: REGRESSION (Tabs): Issues reloading a resource with breakpoints
2118         https://bugs.webkit.org/show_bug.cgi?id=144650
2119
2120         Fix a number of issues with Debugger tab and navigation/reloading:
2121         - Close old content views in the Debugger tab when main frame navigates.
2122         - Prune old resource tree elements before attempting to restore a cookie that might match an old resource.
2123         - Allow breakpoint selections to be restored from a saved cookie.
2124         - Fix an assert when closing a content view that isn't the current index, but is the current view.
2125         - Avoid calling closed() multiple times when a ContentView is in the back/forward list more than once.
2126         - Make restoreStateFromCookie properly set and use the causedByNavigation argument for a longer restore delay.
2127         - Create a new cookie object per tab instead of it being cumulative from the previous cookie.
2128
2129         Reviewed by Brian Burg.
2130
2131         * UserInterface/Base/Main.js:
2132         (WebInspector._mainResourceDidChange): Delay calling _restoreCookieForOpenTabs to give time for sidebars
2133         and tabs to respond to the main resource change.
2134         (WebInspector._restoreCookieForOpenTabs): Rename causedByReload to causedByNavigation. Nothing special about
2135         reload since we restore on all navigation.
2136
2137         * UserInterface/Views/ContentView.js:
2138         (WebInspector.ContentView): Support Breakpoint as a represented object, which happens during a cookie restore.
2139         (WebInspector.ContentView.isViewable): Ditto.
2140
2141         * UserInterface/Views/ContentViewContainer.js:
2142         (WebInspector.ContentViewContainer.prototype.closeAllContentViews): Disassociate if the view is current and not just
2143         the current entry index. This matches other close functions. This fixes an assert in _disassociateFromContentView.
2144         (WebInspector.ContentViewContainer.prototype._disassociateFromContentView): Don't disassociate multiple times. This
2145         avoids calling the closed() function on a view more than once.
2146
2147         * UserInterface/Views/DebuggerSidebarPanel.js:
2148         (WebInspector.DebuggerSidebarPanel.prototype.saveStateToCookie):
2149         (WebInspector.DebuggerSidebarPanel.prototype._mainResourceDidChange): Renamed from _mainResourceChanged.
2150         Close all content views if this is the main frame. Also prune all old resources. Doing this now avoids a flash
2151         of having old and new resources in the tree caused by the default delay in NavigationSidebarPanel's _checkForOldResources.
2152
2153         * UserInterface/Views/NavigationSidebarPanel.js:
2154         (WebInspector.NavigationSidebarPanel): Set _autoPruneOldTopLevelResourceTreeElements for later.
2155         (WebInspector.NavigationSidebarPanel.prototype.get contentTreeOutlineToAutoPrune): Deleted.
2156         (WebInspector.NavigationSidebarPanel.prototype.showDefaultContentView): Fix typo.
2157         (WebInspector.NavigationSidebarPanel.prototype.showDefaultContentViewForTreeElement): Fix whitespace.
2158         (WebInspector.NavigationSidebarPanel.prototype.pruneOldResourceTreeElements): Added. Broken out from
2159         _checkForOldResources.delayedWork so it can be called manually. Also check all visible tree outlines.
2160         (WebInspector.NavigationSidebarPanel.prototype._treeElementAddedOrChanged): Pass treeElement in an array.
2161         (WebInspector.NavigationSidebarPanel.prototype._checkForOldResourcesIfNeeded): Added.
2162         (WebInspector.NavigationSidebarPanel.prototype._checkForOldResources): Call pruneOldResourceTreeElements on a delay.
2163         (WebInspector.NavigationSidebarPanel.prototype._checkForOldResources.delayedWork): Deleted.
2164         (WebInspector.NavigationSidebarPanel.prototype._checkOutlinesForPendingViewStateCookie): Call _checkForOldResourcesIfNeeded.
2165         (WebInspector.NavigationSidebarPanel.prototype._checkElementsForPendingViewStateCookie): Remove array folding code.
2166
2167         * UserInterface/Views/TabContentView.js:
2168         (WebInspector.TabContentView.prototype.restoreStateFromCookie): Rename causedByReload to causedByNavigation.
2169         (WebInspector.TabContentView.prototype.saveStateToCookie): Don't allow the cookie to build on the old cookie.
2170
2171 2015-05-11  Timothy Hatcher  <timothy@apple.com>
2172
2173         Web Inspector: NavigationSidebarPanel leaks some event listeners
2174         https://bugs.webkit.org/show_bug.cgi?id=144523
2175
2176         Reviewed by Joseph Pecoraro.
2177
2178         * UserInterface/Views/NavigationSidebarPanel.js:
2179         (WebInspector.NavigationSidebarPanel):
2180         (WebInspector.NavigationSidebarPanel.prototype.closed):
2181         * UserInterface/Views/ResourceSidebarPanel.js:
2182         (WebInspector.ResourceSidebarPanel.prototype.closed):
2183         * UserInterface/Views/SearchSidebarPanel.js:
2184         (WebInspector.SearchSidebarPanel.prototype.closed):
2185         * UserInterface/Views/StorageSidebarPanel.js:
2186         (WebInspector.StorageSidebarPanel.prototype.closed):
2187         * UserInterface/Views/TimelineSidebarPanel.js:
2188         (WebInspector.TimelineSidebarPanel.prototype.closed):
2189
2190 2015-05-10  Nikita Vasilyev  <nvasilyev@apple.com>
2191
2192         Web Inspector: In the console, show function name next to the source link
2193         https://bugs.webkit.org/show_bug.cgi?id=144372
2194
2195         Introduce CallFrameView to display counsole message source links. It looks like this:
2196
2197             [f] functionName - filename.js:42
2198
2199         Reviewed by Timothy Hatcher.
2200
2201         * UserInterface/Base/Main.js:
2202         (WebInspector.createSourceCodeLocationLink):
2203         (WebInspector.linkifyLocation):
2204         (.showSourceCodeLocation):
2205         (WebInspector.linkifyElement):
2206         Abstract this out as it's used in WebInspector.CallFrameView and WebInspector.createSourceCodeLocationLink.
2207
2208         (WebInspector.sourceCodeForURL):
2209         Move this code from Timeline to Main.js as it's used by Console too.
2210
2211         (WebInspector.linkifyURLAsNode):
2212         Remove tooltipText argument as it is never used.
2213
2214         * UserInterface/Controllers/TimelineManager.js:
2215         (WebInspector.TimelineManager.prototype._callFramesFromPayload):
2216         * UserInterface/Main.html:
2217         * UserInterface/Models/CallFrame.js:
2218         (WebInspector.CallFrame.fromPayload):
2219         Abstract this out as it's used in WebInspector.TimelineManager.prototype._callFramesFromPayload and
2220         WebInspector.ConsoleMessageView._appendLocationLink.
2221
2222         (WebInspector.CallFrame):
2223         * UserInterface/Views/CallFrameTreeElement.js:
2224         (WebInspector.CallFrameTreeElement):
2225         Move it to WebInspector.CallFrameView.iconForCallFrame.
2226
2227         * UserInterface/Views/CallFrameView.css: Added.
2228         (.call-frame):
2229         (.call-frame .icon):
2230         (.call-frame .titles):
2231         (.call-frame .title):
2232         (.call-frame .source-link):
2233         (.call-frame .title + .subtitle > .source-link):
2234         (.call-frame .subtitle .source-link):
2235         (.call-frame:focus .subtitle .source-link):
2236         (.call-frame .subtitle:empty):
2237         (.call-frame .subtitle):
2238         (.call-frame .colon):
2239         (.call-frame .title + .subtitle::before):
2240         * UserInterface/Views/CallFrameView.js: Added.
2241         (WebInspector.CallFrameView):
2242         (WebInspector.CallFrameView.iconClassNameForCallFrame):
2243         * UserInterface/Views/ConsoleMessageView.css:
2244         (.console-message .console-message-location):
2245         (.console-message .call-frame):
2246         (.console-message .go-to-link):
2247         (.console-message .go-to-link:focus):
2248         (.console-message .console-message-url::before):
2249         (.console-saved-variable): Deleted.
2250         * UserInterface/Views/ConsoleMessageView.js:
2251         (WebInspector.ConsoleMessageView.prototype._appendLocationLink):
2252         * UserInterface/Views/DebuggerDashboardView.js:
2253         * UserInterface/Views/Main.css:
2254         (.hidden): Deleted.
2255         * UserInterface/Views/ProfileNodeTreeElement.js:
2256         (WebInspector.ProfileNodeTreeElement):
2257         * UserInterface/Views/TimelineDataGridNode.js:
2258         (WebInspector.TimelineDataGridNode.prototype.createCellContent):
2259
2260 2015-05-08  Tobias Reiss  <tobi+webkit@basecode.de>
2261
2262         Web Inspector: Styles sidebar editing with incomplete property looks poor in UI
2263         https://bugs.webkit.org/show_bug.cgi?id=141692
2264
2265         Reviewed by Timothy Hatcher.
2266
2267         Add "css-rule" Formatter that breaks CSS declarations into multiple lines,
2268         keeps comments and invalid styles and adds whitespace.
2269
2270         * Tools/PrettyPrinting/css-rule-tests/*.css: Added.
2271         Add test cases.
2272
2273         * Tools/PrettyPrinting/index.html:
2274         Enable Test setup to be able to run "css-rule" Formatter tests.
2275
2276         * UserInterface/Controllers/Formatter.js:
2277         (Formatter.prototype._handleToken):
2278         * UserInterface/Controllers/FormatterContentBuilder.js:
2279         (FormatterContentBuilder.prototype.removeLastNewline):
2280         (FormatterContentBuilder.prototype.removeLastWhitespace):
2281         (FormatterContentBuilder.prototype._popFormattedContent):
2282         (FormatterContentBuilder.prototype._popNewLine): Deleted.
2283         * UserInterface/Views/CSSStyleDeclarationTextEditor.js:
2284         (WebInspector.CSSStyleDeclarationTextEditor.prototype._formattedContentFromEditor):
2285         (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update.set this):
2286         (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update.get this):
2287         (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update):
2288         (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent):
2289         (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update.countNewLineCharacters): Deleted.
2290         (WebInspector.CSSStyleDeclarationTextEditor.prototype._resetContent.update.else): Deleted.
2291         * UserInterface/Views/CodeMirrorFormatters.js:
2292
2293 2015-05-07  Joseph Pecoraro  <pecoraro@apple.com>
2294
2295         Web Inspector: Expanding Object with only __proto__ looks poor should have a label
2296         https://bugs.webkit.org/show_bug.cgi?id=144755
2297
2298         Reviewed by Timothy Hatcher.
2299
2300         Better handle cases where expanding an object has only a __proto__
2301         and no other properties.
2302
2303         * UserInterface/Views/ObjectTreePropertyTreeElement.js:
2304         (WebInspector.ObjectTreePropertyTreeElement.mode.prototype.this.children.length):
2305         (WebInspector.ObjectTreePropertyTreeElement):
2306         * UserInterface/Views/ObjectTreeView.css:
2307         (.object-tree-outline li .empty-message):
2308         * UserInterface/Views/ObjectTreeView.js:
2309         (WebInspector.ObjectTreeView.createEmptyMessageElement):
2310         (WebInspector.ObjectTreeView.comparePropertyDescriptors):
2311         (WebInspector.ObjectTreeView.prototype._updateProperties):
2312
2313 2015-05-07  Joseph Pecoraro  <pecoraro@apple.com>
2314
2315         Web Inspector: Fix querySelector in ResourceContentView.js, caught by assertion
2316         https://bugs.webkit.org/show_bug.cgi?id=144756
2317
2318         Reviewed by Timothy Hatcher.
2319
2320         * UserInterface/Views/ResourceContentView.js:
2321         (WebInspector.ResourceContentView.prototype._hasContent):
2322         Ensure querySelector call is using the class name correctly.
2323
2324 2015-05-06  Joseph Pecoraro  <pecoraro@apple.com>
2325
2326         Web Inspector: Docking Toolbar Buttons do not respect Docking Availability
2327         https://bugs.webkit.org/show_bug.cgi?id=144714
2328
2329         Reviewed by Timothy Hatcher.
2330
2331         * UserInterface/Base/Main.js:
2332         (WebInspector.contentLoaded):
2333         (WebInspector.updateDockingAvailability):
2334         (WebInspector._updateDockNavigationItems):
2335         Update the Toolbar UI based on docking availability.
2336         Assume docking is unavailable by default.
2337
2338         * UserInterface/Protocol/InspectorFrontendAPI.js:
2339         (InspectorFrontendAPI.setDockingUnavailable):
2340         Add back this API as the backend may be calling it when
2341         docking availability changes. This just calls out to
2342         global WebInspector functions to update the Toolbar UI.
2343
2344         * UserInterface/Base/Test.js:
2345         (WebInspector.updateDockedState):
2346         (WebInspector.updateDockingAvailability):
2347         Do nothing in tests.
2348
2349 2015-05-06  Matt Baker  <mattbaker@apple.com>
2350
2351         Web Inspector: The text in the left pane overlaps the "Filter Time Events" field in the Timeline after the Web Inspector is resized
2352         https://bugs.webkit.org/show_bug.cgi?id=144720
2353
2354         Reviewed by Timothy Hatcher.
2355
2356         * UserInterface/Views/FilterBar.css:
2357         (.filter-bar):
2358         (.filter-bar > .navigation-bar):
2359         (.filter-bar > input[type="search"]):
2360         (.filter-bar > .navigation-bar > .item): Deleted.
2361         Filter bar now has opaque background and height updated to the ubiquitous 29px.
2362
2363 2015-05-06  Joseph Pecoraro  <pecoraro@apple.com>
2364
2365         Web Inspector: DOMStorage exception and issue with sessionStorage
2366         https://bugs.webkit.org/show_bug.cgi?id=144646
2367
2368         Reviewed by Timothy Hatcher.
2369
2370         * UserInterface/Views/DOMStorageContentView.js:
2371         (WebInspector.DOMStorageContentView):
2372         (WebInspector.DOMStorageContentView.prototype._populate):
2373         (WebInspector.DOMStorageContentView.prototype.reset): Deleted.
2374         Always have the datagrid be available with a default sort.
2375
2376         (WebInspector.DOMStorageContentView.prototype._sortDataGrid.comparator):
2377         (WebInspector.DOMStorageContentView.prototype._sortDataGrid):
2378         Simplify and correct the order.
2379
2380         (WebInspector.DOMStorageContentView.prototype.cleanup):
2381         Cleanup some uses of delete.
2382
2383         * UserInterface/Views/DataGrid.js:
2384         (WebInspector.DataGrid.prototype.sortNodesImmediately):
2385         Provide a way to sort immediately without a visible delay.
2386
2387         (WebInspector.DataGrid.prototype._sortNodesCallback):
2388         Cleanup some dead code to simplify sorting.
2389
2390         (WebInspector.DataGridNode.prototype._attach):
2391         When sorting, the children list does not match the child node list,
2392         so ensure that placeholder nodes are added to the end.
2393
2394         (WebInspector.PlaceholderDataGridNode.prototype.makeNormal):
2395         Cleanup some uses of delete.
2396
2397 2015-05-06  Joseph Pecoraro  <pecoraro@apple.com>
2398
2399         Web Inspector: SourceCodeTextEditor shows "undefined" instead of resource content when pausing during resource load
2400         https://bugs.webkit.org/show_bug.cgi?id=144662
2401
2402         Reviewed by Timothy Hatcher.
2403
2404         * UserInterface/Protocol/InspectorBackend.js:
2405         (InspectorBackend.Command.prototype.promise):
2406         Start standardizing on rejecting Promises with Error objects.
2407
2408         * UserInterface/Views/ResourceContentView.js:
2409         (WebInspector.ResourceContentView):
2410         (WebInspector.ResourceContentView.prototype._protocolError):
2411         When there is a protocol error, show a nice UI string for the error.
2412
2413         (WebInspector.ResourceContentView.prototype._contentAvailable):
2414         (WebInspector.ResourceContentView.prototype._contentError):
2415         (WebInspector.ResourceContentView.prototype._hasContent):
2416         Whenever we hit an error case in ResourceContentView, check to make sure
2417         that a subclass hasn't already populated the content view with content.
2418         This can happen when a TextResourceContentView populates a Resource with
2419         Script content while paused, because the Resource content would be
2420         unavailable. We check that content has loaded by checking that the
2421         indeterminate spinner is no longer showing.
2422
2423 2015-05-05  Andres Gomez  <agomez@igalia.com>
2424
2425         [GTK] Web Inspector: Further optimize SVG images
2426         https://bugs.webkit.org/show_bug.cgi?id=144441
2427
2428         SVG images optimized with a combination of sed replacements, the
2429         usage of the scour tool (http://www.codedread.com/scour/) and a
2430         forked version of the svgo tool (https://github.com/tanty/svgo).
2431
2432         Also, added the class attribute to the shape elements following
2433         the convention used in Apple's images.
2434
2435         Reviewed by Joseph Pecoraro.
2436
2437         * UserInterface/Images/gtk/BackArrow.svg: Optimized.
2438         * UserInterface/Images/gtk/BreakpointActionAdd.svg: Optimized.
2439         * UserInterface/Images/gtk/BreakpointActionRemove.svg: Optimized.
2440         * UserInterface/Images/gtk/BreakpointButton.svg: Optimized.
2441         * UserInterface/Images/gtk/BreakpointInactiveButton.svg: Optimized.
2442         * UserInterface/Images/gtk/Breakpoints.svg: Optimized.
2443         * UserInterface/Images/gtk/Checkers.svg: Optimized.
2444         * UserInterface/Images/gtk/Circle.svg: Optimized.
2445         * UserInterface/Images/gtk/Close.svg: Optimized.
2446         * UserInterface/Images/gtk/CloseLarge.svg: Optimized.
2447         * UserInterface/Images/gtk/CloseWhite.svg: Optimized.
2448         * UserInterface/Images/gtk/ContentFlow.svg: Optimized.
2449         * UserInterface/Images/gtk/Crosshair.svg: Optimized.
2450         * UserInterface/Images/gtk/DOMCharacterData.svg: Optimized.
2451         * UserInterface/Images/gtk/DOMComment.svg: Optimized.
2452         * UserInterface/Images/gtk/DOMDocument.svg: Optimized.
2453         * UserInterface/Images/gtk/DOMDocumentType.svg: Optimized.
2454         * UserInterface/Images/gtk/DOMElement.svg: Optimized.
2455         * UserInterface/Images/gtk/DOMNode.svg: Optimized.
2456         * UserInterface/Images/gtk/DOMTextNode.svg: Optimized.
2457         * UserInterface/Images/gtk/DisclosureTriangleSmallClosed.svg: Optimized.
2458         * UserInterface/Images/gtk/DisclosureTriangleSmallOpen.svg: Optimized.
2459         * UserInterface/Images/gtk/DisclosureTriangleTinyClosed.svg: Optimized.
2460         * UserInterface/Images/gtk/DisclosureTriangleTinyOpen.svg: Optimized.
2461         * UserInterface/Images/gtk/DockBottom.svg: Optimized.
2462         * UserInterface/Images/gtk/DockRight.svg: Optimized.
2463         * UserInterface/Images/gtk/DownloadArrow.svg: Optimized.
2464         * UserInterface/Images/gtk/Error.svg: Optimized.
2465         * UserInterface/Images/gtk/Errors.svg: Optimized.
2466         * UserInterface/Images/gtk/ErrorsEnabled.svg: Optimized.
2467         * UserInterface/Images/gtk/EventListener.svg: Optimized.
2468         * UserInterface/Images/gtk/Exception.svg: Optimized.
2469         * UserInterface/Images/gtk/Eye.svg: Optimized.
2470         * UserInterface/Images/gtk/FilterFieldGlyph.svg: Optimized.
2471         * UserInterface/Images/gtk/ForwardArrow.svg: Optimized.
2472         * UserInterface/Images/gtk/Function.svg: Optimized.
2473         * UserInterface/Images/gtk/GoToArrow.svg: Optimized.
2474         * UserInterface/Images/gtk/HierarchicalNavigationItemChevron.svg: Optimized.
2475         * UserInterface/Images/gtk/IndeterminateProgressSpinner1.svg: Optimized.
2476         * UserInterface/Images/gtk/IndeterminateProgressSpinner10.svg: Optimized.
2477         * UserInterface/Images/gtk/IndeterminateProgressSpinner11.svg: Optimized.
2478         * UserInterface/Images/gtk/IndeterminateProgressSpinner12.svg: Optimized.
2479         * UserInterface/Images/gtk/IndeterminateProgressSpinner2.svg: Optimized.
2480         * UserInterface/Images/gtk/IndeterminateProgressSpinner3.svg: Optimized.
2481         * UserInterface/Images/gtk/IndeterminateProgressSpinner4.svg: Optimized.
2482         * UserInterface/Images/gtk/IndeterminateProgressSpinner5.svg: Optimized.
2483         * UserInterface/Images/gtk/IndeterminateProgressSpinner6.svg: Optimized.
2484         * UserInterface/Images/gtk/IndeterminateProgressSpinner7.svg: Optimized.
2485         * UserInterface/Images/gtk/IndeterminateProgressSpinner8.svg: Optimized.
2486         * UserInterface/Images/gtk/IndeterminateProgressSpinner9.svg: Optimized.
2487         * UserInterface/Images/gtk/Issues.svg: Optimized.
2488         * UserInterface/Images/gtk/IssuesEnabled.svg: Optimized.
2489         * UserInterface/Images/gtk/LayerBorders.svg: Optimized.
2490         * UserInterface/Images/gtk/Locked.svg: Optimized.
2491         * UserInterface/Images/gtk/Logs.svg: Optimized.
2492         * UserInterface/Images/gtk/Native.svg: Optimized.
2493         * UserInterface/Images/gtk/NavigationItemCurleyBraces.svg: Optimized.
2494         * UserInterface/Images/gtk/NavigationItemTrash.svg: Optimized.
2495         * UserInterface/Images/gtk/NavigationItemTypes.svg: Optimized.
2496         * UserInterface/Images/gtk/PaintFlashing.svg: Optimized.
2497         * UserInterface/Images/gtk/Pause.svg: Optimized.
2498         * UserInterface/Images/gtk/PausedBreakpoint.svg: Optimized.
2499         * UserInterface/Images/gtk/Pencil.svg: Optimized.
2500         * UserInterface/Images/gtk/Plus.svg: Optimized. Text element
2501         converted into a shape.
2502         * UserInterface/Images/gtk/PseudoElement.svg: Optimized.
2503         * UserInterface/Images/gtk/Record.svg: Optimized.
2504         * UserInterface/Images/gtk/Reflection.svg: Optimized.
2505         * UserInterface/Images/gtk/ReloadFull.svg: Optimized.
2506         * UserInterface/Images/gtk/ReplayPauseButton.svg: Optimized.
2507         * UserInterface/Images/gtk/ReplayPlayButton.svg: Optimized.
2508         * UserInterface/Images/gtk/ReplayRecordingButton.svg: Optimized.
2509         * UserInterface/Images/gtk/Request.svg: Optimized.
2510         * UserInterface/Images/gtk/Resources.svg: Optimized.
2511         * UserInterface/Images/gtk/Response.svg: Optimized.
2512         * UserInterface/Images/gtk/ResultLine.svg: Optimized.
2513         * UserInterface/Images/gtk/Resume.svg: Optimized.
2514         * UserInterface/Images/gtk/ShadowDOM.svg: Optimized.
2515         * UserInterface/Images/gtk/SortIndicatorDownArrow.svg: Optimized.
2516         * UserInterface/Images/gtk/SortIndicatorUpArrow.svg: Optimized.
2517         * UserInterface/Images/gtk/SplitToggleUp.svg: Optimized.
2518         * UserInterface/Images/gtk/StepInto.svg: Optimized.
2519         * UserInterface/Images/gtk/StepOut.svg: Optimized.
2520         * UserInterface/Images/gtk/StepOver.svg: Optimized.
2521         * UserInterface/Images/gtk/Stop.svg: Optimized.
2522         * UserInterface/Images/gtk/StyleRuleAuthor.svg: Optimized.
2523         * UserInterface/Images/gtk/StyleRuleInherited.svg: Optimized.
2524         * UserInterface/Images/gtk/StyleRuleInheritedElement.svg: Optimized.
2525         * UserInterface/Images/gtk/StyleRuleInspector.svg: Optimized.
2526         * UserInterface/Images/gtk/StyleRuleUser.svg: Optimized.
2527         * UserInterface/Images/gtk/StyleRuleUserAgent.svg: Optimized.
2528         * UserInterface/Images/gtk/TimelineRecordAnimation.svg: Optimized.
2529         * UserInterface/Images/gtk/TimelineRecordConsoleProfile.svg: Optimized.
2530         * UserInterface/Images/gtk/TimelineRecordEvent.svg: Optimized.
2531         * UserInterface/Images/gtk/TimelineRecordLayout.svg: Optimized.
2532         * UserInterface/Images/gtk/TimelineRecordPaint.svg: Optimized.
2533         * UserInterface/Images/gtk/TimelineRecordProbeSampled.svg: Optimized.
2534         * UserInterface/Images/gtk/TimelineRecordScriptEvaluated.svg: Optimized.
2535         * UserInterface/Images/gtk/TimelineRecordStyle.svg: Optimized.
2536         * UserInterface/Images/gtk/TimelineRecordTimer.svg: Optimized.
2537         * UserInterface/Images/gtk/TypeBoolean.svg: Optimized.
2538         * UserInterface/Images/gtk/TypeNull.svg: Optimized.
2539         * UserInterface/Images/gtk/TypeNumber.svg: Optimized.
2540         * UserInterface/Images/gtk/TypeObject.svg: Optimized.
2541         * UserInterface/Images/gtk/TypeRegex.svg: Optimized. Removed
2542         mistaken extra shape.
2543         * UserInterface/Images/gtk/TypeString.svg: Optimized.
2544         * UserInterface/Images/gtk/TypeSymbol.svg: Optimized. Removed
2545         mistaken extra shape.
2546         * UserInterface/Images/gtk/TypeUndefined.svg: Optimized.
2547         * UserInterface/Images/gtk/Undock.svg: Optimized.
2548         * UserInterface/Images/gtk/UpDownArrows.svg: Optimized.
2549         * UserInterface/Images/gtk/UserInputPrompt.svg: Optimized.
2550         * UserInterface/Images/gtk/UserInputPromptPrevious.svg: Optimized.
2551         * UserInterface/Images/gtk/UserInputResult.svg: Optimized.
2552         * UserInterface/Images/gtk/Warning.svg: Optimized.
2553
2554 2015-05-05  Timothy Hatcher  <timothy@apple.com>
2555
2556         REGRESSION: Web Inspector: no way to navigate to a resource/source location from overview timeline view
2557         https://bugs.webkit.org/show_bug.cgi?id=144539
2558
2559         Reviewed by Brian Burg.
2560
2561         * UserInterface/Views/GeneralTreeElement.js:
2562         (WebInspector.GeneralTreeElement.prototype.set status): Call didChange() so the onchange event fires. This allows
2563         TimelineSidebarPanel to update the status element when it goes from a spinner to empty for ResourceTreeElements.
2564         (WebInspector.GeneralTreeElement.prototype.onattach): Don't call _updateStatusElement, just append it if needed.
2565         Calling _updateStatusElement caused DOMNodeFragments as status elements to be appended a second time and fail.
2566         * UserInterface/Views/NavigationSidebarPanel.js:
2567         (WebInspector.NavigationSidebarPanel.prototype.treeElementAddedOrChanged):
2568         (WebInspector.NavigationSidebarPanel.prototype._treeElementAddedOrChanged):
2569         * UserInterface/Views/NetworkTimelineView.js:
2570         (WebInspector.NetworkTimelineView.prototype.canShowContentViewForTreeElement):
2571         (WebInspector.NetworkTimelineView.prototype.showContentViewForTreeElement):
2572         (WebInspector.NetworkTimelineView.prototype.treeElementSelected):
2573         (WebInspector.NetworkTimelineView.prototype._dataGridNodeSelected):
2574         (WebInspector.NetworkTimelineView.prototype._updateTreeElementWithCloseButton): Deleted.
2575         (WebInspector.NetworkTimelineView.prototype._closeStatusButtonClicked): Deleted.
2576         * UserInterface/Views/OverviewTimelineView.js:
2577         (WebInspector.OverviewTimelineView.prototype.canShowContentViewForTreeElement):
2578         (WebInspector.OverviewTimelineView.prototype.showContentViewForTreeElement):
2579         (WebInspector.OverviewTimelineView.prototype._dataGridNodeSelected):
2580         (WebInspector.OverviewTimelineView.prototype._treeElementDeselected): Deleted.
2581         (WebInspector.OverviewTimelineView.prototype._treeElementSelected): Deleted.
2582         (WebInspector.OverviewTimelineView.prototype._updateTreeElementWithCloseButton): Deleted.
2583         (WebInspector.OverviewTimelineView.prototype._closeStatusButtonClicked): Deleted.
2584         * UserInterface/Views/RenderingFrameTimelineView.js:
2585         (WebInspector.RenderingFrameTimelineView.prototype.canShowContentViewForTreeElement):
2586         (WebInspector.RenderingFrameTimelineView.prototype.showContentViewForTreeElement):
2587         * UserInterface/Views/ResourceTimelineDataGridNode.js:
2588         (WebInspector.ResourceTimelineDataGridNode.prototype.createCellContent): Don't show a go-to arrow in the Domain column.
2589         (WebInspector.ResourceTimelineDataGridNode.prototype._goToResource): Deleted.
2590         * UserInterface/Views/ScriptTimelineView.js:
2591         (WebInspector.ScriptTimelineView.prototype.canShowContentViewForTreeElement):
2592         (WebInspector.ScriptTimelineView.prototype.showContentViewForTreeElement):
2593         (WebInspector.ScriptTimelineView.prototype.treeElementSelected):
2594         * UserInterface/Views/TimelineRecordTreeElement.js:
2595         (WebInspector.TimelineRecordTreeElement.prototype.get sourceCodeLocation):
2596         * UserInterface/Views/TimelineSidebarPanel.css:
2597         (.sidebar > .panel.navigation.timeline .item:hover:not(.selected) .status .close.status-button):
2598         (.sidebar > .panel.navigation.timeline:not(.timeline-recording-content-view-showing) .status .go-to-arrow.status-button):
2599         (.sidebar > .panel.navigation.timeline.timeline-recording-content-view-showing .status .close.status-button):
2600         * UserInterface/Views/TimelineSidebarPanel.js:
2601         (WebInspector.TimelineSidebarPanel.prototype.treeElementAddedOrChanged): Added.
2602         (WebInspector.TimelineSidebarPanel.prototype.canShowDifferentContentView):
2603         (WebInspector.TimelineSidebarPanel.prototype._treeElementGoToArrowWasClicked): Added.
2604         (WebInspector.TimelineSidebarPanel.prototype._treeElementCloseButtonClicked): Added.
2605         * UserInterface/Views/TimelineView.js:
2606         (WebInspector.TimelineView):
2607         (WebInspector.TimelineView.prototype.canShowContentViewForTreeElement):
2608         (WebInspector.TimelineView.prototype.showContentViewForTreeElement):
2609         (WebInspector.TimelineView.prototype.treeElementDeselected):
2610         (WebInspector.TimelineView.prototype.treeElementSelected):
2611         (WebInspector.TimelineView.prototype.needsLayout):
2612         (WebInspector.TimelineView.prototype._closeStatusButtonClicked): Deleted.
2613         (WebInspector.TimelineView.prototype._updateTreeElementWithCloseButton): Deleted.
2614         * UserInterface/Views/TreeElementStatusButton.css:
2615         (.item > .status > .status-button): Fix an alignment issue with close and go-to arrows being side-by-side.
2616         Does not happen in the final patch because they are mutually exclusive, but still good to fix.
2617
2618 2015-05-05  Timothy Hatcher  <timothy@apple.com>
2619
2620         Web Inspector: Fix some issues with Search tabs
2621         https://bugs.webkit.org/show_bug.cgi?id=144531
2622
2623         Reviewed by Darin Adler.
2624
2625         * UserInterface/Views/ContentView.js:
2626         (WebInspector.ContentView):
2627         (WebInspector.ContentView.isViewable):
2628         Support DOMSearchMatchObject and SourceCodeSearchMatchObject representedObjects. These are usually
2629         handled at a higher level, but cookie restoring requires ContentView to handle them.
2630
2631         * UserInterface/Views/DOMTreeContentView.js:
2632         (WebInspector.DOMTreeContentView):
2633         (WebInspector.DOMTreeContentView.prototype.selectAndRevealDOMNode):
2634         (WebInspector.DOMTreeContentView.prototype.selectLastSelectedNode):
2635         (WebInspector.DOMTreeContentView.prototype._restoreSelectedNodeAfterUpdate):
2636         Don't allow restoring the previous selected node when another not has already been selected.
2637
2638         * UserInterface/Views/SearchTabContentView.js:
2639         (WebInspector.SearchTabContentView.prototype.canShowRepresentedObject):
2640         Allow Script objects to be shown in the Search tab.
2641
2642 2015-05-05  Timothy Hatcher  <timothy@apple.com>
2643
2644         Web Inspector: Source/WebInspectorUI/UserInterface/Images/Logs.svg has unknown attribute "fille"
2645         https://bugs.webkit.org/show_bug.cgi?id=144627
2646
2647         Reviewed by Darin Adler.
2648
2649         * UserInterface/Images/Logs.svg: Change "fille" to "fill".
2650
2651 2015-05-05  Andres Gomez  <agomez@igalia.com>
2652
2653         [GTK] Web Inspector: New Images added in r183339, r183338, r183332, r183323, r182660, and r182186
2654         https://bugs.webkit.org/show_bug.cgi?id=144329
2655
2656         Reviewed by Joseph Pecoraro.
2657
2658         * UserInterface/Images/gtk/Console.svg: Added.
2659         * UserInterface/Images/gtk/Debugger.svg: Added.
2660         * UserInterface/Images/gtk/Elements.svg: Added.
2661         * UserInterface/Images/gtk/Gear.svg: Added.
2662         * UserInterface/Images/gtk/NewTab.svg: Added.
2663         * UserInterface/Images/gtk/NewTabPlus.svg: Added.
2664         * UserInterface/Images/gtk/ReloadToolbar.svg: Added.
2665         * UserInterface/Images/gtk/SearchResults.svg: Added.
2666         * UserInterface/Images/gtk/Storage.svg: Added.
2667         * UserInterface/Images/gtk/Timeline.svg: Added.
2668         * UserInterface/Images/gtk/TimelineRecordRenderingFrame.svg: Added.
2669         * UserInterface/Images/gtk/ToggleLeftSidebar.svg: Added.
2670         * UserInterface/Images/gtk/ToggleRightSidebar.svg: Added.
2671
2672 2015-05-05  Andres Gomez  <agomez@igalia.com>
2673
2674         [GTK] Web Inspector: icons for console.info() messages
2675         https://bugs.webkit.org/show_bug.cgi?id=144461
2676
2677         Reviewed by Joseph Pecoraro.
2678
2679         * UserInterface/Images/gtk/Debug.svg: Added.
2680         * UserInterface/Images/gtk/Info.svg: Added.
2681         * UserInterface/Images/gtk/Log.svg: Added.
2682
2683 2015-05-04  Joseph Pecoraro  <pecoraro@apple.com>
2684
2685         Web Inspector: Always expand initial top level DOM tree nodes when not including the root (frame views)
2686         https://bugs.webkit.org/show_bug.cgi?id=144607
2687
2688         Reviewed by Timothy Hatcher.
2689
2690         * UserInterface/Views/DOMTreeOutline.js:
2691         (WebInspector.DOMTreeOutline.prototype.update):
2692
2693 2015-05-04  Timothy Hatcher  <timothy@apple.com>
2694
2695         Web Inspector: Allow closing and reopening the Debugger tab
2696         https://bugs.webkit.org/show_bug.cgi?id=144536
2697
2698         Reviewed by Joseph Pecoraro.
2699
2700         * UserInterface/Base/Main.js:
2701         (WebInspector._updateNewTabButtonState):
2702         * UserInterface/Views/DebuggerSidebarPanel.js:
2703         (WebInspector.DebuggerSidebarPanel):
2704         (WebInspector.DebuggerSidebarPanel.prototype.closed):
2705         (WebInspector.DebuggerSidebarPanel.prototype._addIssuesForSourceCode):
2706         (WebInspector.DebuggerSidebarPanel.prototype._addResourcesRecursivelyForFrame):
2707         (WebInspector.DebuggerSidebarPanel.prototype._resourceAdded):
2708         (WebInspector.DebuggerSidebarPanel.prototype._addResource):
2709         (WebInspector.DebuggerSidebarPanel.prototype._mainResourceChanged):
2710         (WebInspector.DebuggerSidebarPanel.prototype._scriptAdded):
2711         (WebInspector.DebuggerSidebarPanel.prototype._addScript):
2712         * UserInterface/Views/DebuggerTabContentView.js:
2713         (WebInspector.DebuggerTabContentView):
2714         * UserInterface/Views/NewTabContentView.js:
2715         (WebInspector.NewTabContentView):
2716
2717 2015-05-04  Timothy Hatcher  <timothy@apple.com>
2718
2719         REGRESSION: Web Inspector: FrameTreeElement does not folders properly when loading a page
2720         https://bugs.webkit.org/show_bug.cgi?id=144535
2721
2722         Reviewed by Joseph Pecoraro.
2723
2724         * UserInterface/Views/FolderizedTreeElement.js:
2725         (WebInspector.FolderizedTreeElement.prototype.addChildForRepresentedObject): Fix an exception if not in a tree.
2726         (WebInspector.FolderizedTreeElement.prototype.prepareToPopulate):
2727         (WebInspector.FolderizedTreeElement.prototype._populateFromNewChildQueue):
2728
2729 2015-05-04  Timothy Hatcher  <timothy@apple.com>
2730
2731         Web Inspector: Allow closing and reopening the Timelines tab
2732         https://bugs.webkit.org/show_bug.cgi?id=144520
2733
2734         Reviewed by Joseph Pecoraro.
2735
2736         * UserInterface/Base/Main.js:
2737         (WebInspector._updateNewTabButtonState):
2738         * UserInterface/Controllers/TimelineManager.js:
2739         (WebInspector.TimelineManager): No need for a delay now. Call reset().
2740         (WebInspector.TimelineManager.prototype.reset):
2741         (WebInspector.TimelineManager.delayedWork): Deleted.
2742         * UserInterface/Views/ContentBrowserTabContentView.js:
2743         (WebInspector.ContentBrowserTabContentView):
2744         (WebInspector.ContentBrowserTabContentView.prototype.closed):
2745         * UserInterface/Views/LayoutTimelineView.js:
2746         (WebInspector.LayoutTimelineView.prototype.closed): Added. Fixed leak.
2747         * UserInterface/Views/NetworkTimelineView.js:
2748         (WebInspector.NetworkTimelineView.prototype.closed): Added. Fixed leak.
2749         * UserInterface/Views/NewTabContentView.js:
2750         (WebInspector.NewTabContentView): Added Timelines.
2751         * UserInterface/Views/OverviewTimelineView.js:
2752         (WebInspector.OverviewTimelineView.prototype.closed): Added. Fixed leak.
2753         * UserInterface/Views/RenderingFrameTimelineView.js:
2754         (WebInspector.RenderingFrameTimelineView.prototype.closed): Added. Fixed leak.
2755         * UserInterface/Views/ScriptTimelineView.js:
2756         (WebInspector.ScriptTimelineView.prototype.closed):
2757         * UserInterface/Views/SearchTabContentView.js:
2758         (WebInspector.SearchTabContentView.prototype.closed): Deleted. Made generic
2759         in ContentBrowserTabContentView.prototype.closed.
2760         * UserInterface/Views/TabBrowser.js:
2761         (WebInspector.TabBrowser.prototype._tabBarItemSelected): Fix a potential exception
2762         when selectedTabBarItem is null.
2763         * UserInterface/Views/TimelineSidebarPanel.js:
2764         (WebInspector.TimelineSidebarPanel):
2765         (WebInspector.TimelineSidebarPanel.prototype.closed):
2766         (WebInspector.TimelineSidebarPanel._recordingCreated): Call _addRecording.
2767         (WebInspector.TimelineSidebarPanel._addRecording): Added.
2768         * UserInterface/Views/TimelineTabContentView.js:
2769         (WebInspector.TimelineTabContentView):
2770
2771 2015-05-04  Timothy Hatcher  <timothy@apple.com>
2772
2773         Web Inspector: Switching recordings in the Timeline navigation bar is broken
2774         https://bugs.webkit.org/show_bug.cgi?id=144519
2775
2776         Reviewed by Joseph Pecoraro.
2777
2778         * UserInterface/Views/ContentBrowser.js:
2779         (WebInspector.ContentBrowser.prototype._hierarchicalPathComponentWasSelected): Use revealAndSelect
2780         on the TreeElement instead of showing the representedObject directly. This fixes an exception in
2781         TimelineRecordingContentView where it wouldn't be initialized with the TimelineSidebarPanel extra argument.
2782         * UserInterface/Views/TimelineOverview.js:
2783         (WebInspector.TimelineOverview.prototype.get visibleDuration): Fix an annoying assert. We show the view
2784         early in construction, before it is in the document. Future updateLayout calls work and fix this.
2785         * UserInterface/Views/TimelineRecordingContentView.js:
2786         (WebInspector.TimelineRecordingContentView.prototype.shown): Call _currentContentViewDidChange
2787         to trigger the sidebar to update when this recording view is shown.
2788         * UserInterface/Views/TimelineSidebarPanel.js:
2789         (WebInspector.TimelineSidebarPanel.prototype._recordingsTreeElementSelected): Moved code from here...
2790         (WebInspector.TimelineSidebarPanel.prototype._recordingSelected): ... to here. Take two different paths
2791         to state restoration here. If the view existed before, use its state. If now, use the current state that
2792         is captured by the cookie logic and explicitly restore it.
2793
2794 2015-05-03  Timothy Hatcher  <timothy@apple.com>
2795
2796         Web Inspector: Exception under ContentViewContainer _disassociateFromContentView
2797         https://bugs.webkit.org/show_bug.cgi?id=144546
2798
2799         Reviewed by Brian Burg.
2800
2801         * UserInterface/Views/ContentViewContainer.js:
2802         (WebInspector.ContentViewContainer.prototype.showContentView):
2803         Make sure to pass the ContentView to _disassociateFromContentView. Also negate the result
2804         of the _backForwardList.some(), since we don't want to dissociate if the content view is
2805         still in the back-forward list.
2806
2807 2015-05-02  Matt Baker  <mattbaker@apple.com>
2808
2809         Web Inspector: Relocate the selected range details in the Rendering Frames timeline UI
2810         https://bugs.webkit.org/show_bug.cgi?id=144346
2811
2812         This patch removes the details sidebar used by the rendering frames view, and relocates the frame selection
2813         chart the Timelines navigation sidebar.
2814
2815         Reviewed by Timothy Hatcher.
2816
2817         * Localizations/en.lproj/localizedStrings.js:
2818         * UserInterface/Base/Main.js:
2819         (WebInspector.contentLoaded):
2820         RenderingFramesDetailsSidebar is no longer used.
2821
2822         * UserInterface/Controllers/TimelineManager.js:
2823         (WebInspector.TimelineManager.prototype._loadNewRecording):
2824         Reordered timelines.
2825
2826         * UserInterface/Main.html:
2827         Removed references to deleted files.
2828
2829         * UserInterface/Views/ChartDetailsSectionLegendRow.js: Removed.
2830         No longer used. The legend is now a child element of the chart.
2831
2832         * UserInterface/Views/ChartDetailsSectionRow.css:
2833         (.details-section > .content > .group > .row.chart > .title):
2834         (.details-section > .content > .group > .row.chart > .chart-content):
2835         (.details-section > .content > .group > .row.chart > .chart-content > .legend):
2836         (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item):
2837         (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > .label > .color-swatch):
2838         (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > .label):
2839         (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > .value):
2840         (.details-section > .content > .group > .row.chart > .chart-content > .legend > .legend-item > *):
2841         New chart and legend styles.
2842
2843         * UserInterface/Views/ChartDetailsSectionRow.js:
2844         (WebInspector.ChartDetailsSectionRow):
2845         (WebInspector.ChartDetailsSectionRow.prototype.set title):
2846         (WebInspector.ChartDetailsSectionRow.prototype.set innerLabel):
2847         (WebInspector.ChartDetailsSectionRow.prototype.set innerRadius):
2848         (WebInspector.ChartDetailsSectionRow.prototype.get total):
2849         (WebInspector.ChartDetailsSectionRow.set data):
2850         (WebInspector.ChartDetailsSectionRow.prototype.set data):
2851         (WebInspector.ChartDetailsSectionRow.prototype._createLegendItem):
2852         (WebInspector.ChartDetailsSectionRow.prototype._refresh):
2853
2854         A few changes have been made to the appearance and behavior of the chart. A chart title can now be set,
2855         and the legend appears to the right of the chart rather than in a separate details group.
2856
2857         The chart now has better support for adding empty data points, ensuring that a meaningful legend is shown even
2858         when no rendering frames are selected in the timeline overview graph. This ensures that the task associated
2859         with each colored frame segment is apparent, without having to make a selection or record a timeline.
2860
2861         * UserInterface/Views/RenderingFrameDetailsSidebarPanel.js: Removed.
2862         No longer used.
2863
2864         * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js:
2865         Reduced maximum timeline height to increase the height of short frames.
2866
2867         * UserInterface/Views/RenderingFrameTimelineView.js:
2868         (WebInspector.RenderingFrameTimelineView.prototype.shown):
2869         (WebInspector.RenderingFrameTimelineView.prototype.hidden):
2870         RenderingFramesDetailsSidebar is no longer used.
2871
2872         * UserInterface/Views/TimelineRecordingContentView.js:
2873         (WebInspector.TimelineRecordingContentView):
2874         (WebInspector.TimelineRecordingContentView.prototype._updateTimes):
2875         (WebInspector.TimelineRecordingContentView.prototype._updateTimelineOverviewHeight):
2876         (WebInspector.TimelineRecordingContentView.prototype._timelineRemoved):
2877         (WebInspector.TimelineRecordingContentView.prototype._timeRangeSelectionChanged):
2878         (WebInspector.TimelineRecordingContentView.prototype._updateFrameSelection):
2879         Improved logic for updating the frame selection.
2880
2881         * UserInterface/Views/TimelineSidebarPanel.css:
2882         (.sidebar > .panel.navigation.timeline > .timelines-content > .details-section > div.header):
2883         (.sidebar > .panel.navigation.timeline > .timelines-content > .details-section > .content > .group > .row.chart):
2884         (.sidebar > .panel.navigation.timeline > .timelines-content > .details-section > .content > .group > .row.chart > .chart-content > .chart):
2885         (.sidebar > .panel.navigation.timeline.timeline-recording-content-view-showing > .content): Deleted.
2886         New chart styles.
2887
2888         * UserInterface/Views/TimelineSidebarPanel.js:
2889         (WebInspector.TimelineSidebarPanel):
2890         (WebInspector.TimelineSidebarPanel.prototype.shown):
2891         (WebInspector.TimelineSidebarPanel._timelineAdded.set this):
2892         (WebInspector.TimelineSidebarPanel.this._timelineTreeElementMap.get select):
2893         (WebInspector.TimelineSidebarPanel.get else):
2894         (WebInspector.TimelineSidebarPanel._refreshFrameSelectionChart.getSelectedRecords.get var):
2895         (WebInspector.TimelineSidebarPanel._refreshFrameSelectionChart.getSelectedRecords):
2896         (WebInspector.TimelineSidebarPanel.showTimelineViewForTimeline.this._timelineTreeElementMap.get select):
2897         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject.get if.get if):
2898         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject.get if):
2899         (WebInspector.TimelineSidebarPanel._refreshFrameSelectionChart.durationForRecordType):
2900         (WebInspector.TimelineSidebarPanel.prototype.treeElementForRepresentedObject):
2901         (WebInspector.TimelineSidebarPanel.set contentTreeOutlineLabel): Deleted.
2902         (WebInspector.TimelineSidebarPanel._recordingCreated.set this): Deleted.
2903         (WebInspector.TimelineSidebarPanel.get this): Deleted.
2904         Moved the selected frames chart to the navigation sidebar.
2905
2906         * UserInterface/Views/TimelineTabContentView.js:
2907         (WebInspector.TimelineTabContentView):
2908         RenderingFramesDetailsSidebar is no longer used.
2909
2910         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj:
2911         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters:
2912         Removed references to deleted files.
2913
2914 2015-05-02  Timothy Hatcher  <timothy@apple.com>
2915
2916         Web Inspector: Allow closing and reopening the Resources tab
2917         https://bugs.webkit.org/show_bug.cgi?id=144513
2918
2919         Reviewed by Joseph Pecoraro.
2920
2921         * UserInterface/Base/Main.js:
2922         (WebInspector._updateNewTabButtonState):
2923         * UserInterface/Views/NewTabContentView.js:
2924         (WebInspector.NewTabContentView):
2925         * UserInterface/Views/ResourceSidebarPanel.js:
2926         (WebInspector.ResourceSidebarPanel):
2927         (WebInspector.ResourceSidebarPanel.prototype.closed):
2928         * UserInterface/Views/ResourcesTabContentView.js:
2929         (WebInspector.ResourcesTabContentView):
2930
2931 2015-05-02  Timothy Hatcher  <timothy@apple.com>
2932
2933         Web Inspector: REGRESSION: Resources section doesn't update after changes are made to a local file
2934         https://bugs.webkit.org/show_bug.cgi?id=144512
2935
2936         The content view was being associated with the wrong represented object. This caused the code to use
2937         the old main resource when showing the frame again.
2938
2939         Reviewed by Joseph Pecoraro.
2940
2941         * UserInterface/Base/Main.js:
2942         (WebInspector._frameWasAdded.delayedWork):
2943         (WebInspector._frameWasAdded):
2944         With the changes in ResourceSidebarPanel, we need to delay showing the frame.
2945
2946         * UserInterface/Views/ContentBrowserTabContentView.js:
2947         (WebInspector.ContentBrowserTabContentView.prototype.showRepresentedObject):
2948         Avoid restoring state by calling cancelRestoringState(). Not fully related to this bug,
2949         but it was preventing testing the cases.
2950
2951         * UserInterface/Views/ContentViewContainer.js:
2952         (WebInspector.ContentViewContainer.prototype.contentViewForRepresentedObject):
2953         This fixes the bug. Don't associate the content view with the Frame, associate it with
2954         the Resource that we actually show.
2955
2956         * UserInterface/Views/NavigationSidebarPanel.js:
2957         (WebInspector.NavigationSidebarPanel.prototype.cancelRestoringState): Added.
2958
2959         * UserInterface/Views/ResourceSidebarPanel.js:
2960         (WebInspector.ResourceSidebarPanel): Remove unused _waitingForInitialMainFrame.
2961         (WebInspector.ResourceSidebarPanel.prototype.treeElementForRepresentedObject):
2962         (WebInspector.ResourceSidebarPanel.prototype._mainResourceDidChange):
2963         (WebInspector.ResourceSidebarPanel.prototype._mainFrameDidChange):
2964         (WebInspector.ResourceSidebarPanel.prototype._mainFrameMainResourceDidChange.delayedWork):
2965         (WebInspector.ResourceSidebarPanel.prototype._mainFrameMainResourceDidChange):
2966         Clean up how we show the main frame in the sidebar. This was a two step mess before.
2967
2968 2015-04-29  Timothy Hatcher  <timothy@apple.com>
2969
2970         Web Inspector: Remove FrameContentView.js
2971         https://bugs.webkit.org/show_bug.cgi?id=144415
2972
2973         Reviewed by Joseph Pecoraro.
2974
2975         * UserInterface/Images/DOMTree.svg: Removed.
2976         * UserInterface/Images/SourceCode.svg: Removed.
2977         * UserInterface/Main.html: Removed FrameContentView.js.
2978         * UserInterface/Views/FrameContentView.js: Removed.
2979         * UserInterface/Views/PathComponentIcons.css:
2980         (.source-code-icon .icon): Deleted.
2981         (.dom-tree-icon .icon): Deleted.
2982
2983         * UserInterface/Views/ResourceSidebarPanel.js:
2984         (WebInspector.ResourceSidebarPanel.prototype._mainFrameMainResourceDidChange.delayedWork):
2985         (WebInspector.ResourceSidebarPanel.prototype._mainFrameMainResourceDidChange):
2986         Simplify the code here. We don't need these checks now with tabs and the Storage tab.
2987
2988 2015-04-30  Nikita Vasilyev  <nvasilyev@apple.com>
2989
2990         REGRESSION: Web Inspector: Console message repeat count overlapped by icon
2991         https://bugs.webkit.org/show_bug.cgi?id=144344
2992
2993         Reviewed by Timothy Hatcher.
2994
2995         * UserInterface/Views/ConsoleMessageView.css:
2996         (.console-message .repeat-count):
2997
2998 2015-04-30  Jon Davis  <jond@apple.com>
2999
3000         Web Inspector: console should show an icon for console.info() messages
3001         https://bugs.webkit.org/show_bug.cgi?id=18530
3002
3003         Reviewed by Timothy Hatcher.
3004
3005         Added icons for console.log, console.info and console.debug messages.
3006
3007         Separated console.info from console.log.
3008
3009         * UserInterface/Images/Debug.svg: Added.
3010         * UserInterface/Images/Info.svg: Added.
3011         * UserInterface/Images/Log.svg: Added.
3012         New icon files.
3013
3014         * UserInterface/Models/ConsoleMessage.js:
3015         * UserInterface/Views/ConsoleMessageView.css:
3016         (.console-log-level::before):
3017         (.console-info-level::before):
3018         (.console-debug-level::before):
3019         (:matches(.console-warning-level, .console-error-level, .console-log-level, .console-info-level, .console-debug-level).console-message):
3020         (:matches(.console-warning-level, .console-error-level, .console-log-level, .console-info-level, .console-debug-level)::before):
3021         (:matches(.console-warning-level, .console-error-level, .console-log-level).console-message): Deleted.
3022         (:matches(.console-warning-level, .console-error-level, .console-log-level)::before): Deleted.
3023         Include console.info messages in layout adjustments.
3024
3025         * UserInterface/Views/ConsoleMessageView.js:
3026         (WebInspector.ConsoleMessageView):
3027         (WebInspector.ConsoleMessageView.prototype._levelString):
3028
3029 2015-04-30  Timothy Hatcher  <timothy@apple.com>
3030
3031         Web Inspector: Scope Chain sidebar should be selected immediately when paused
3032         https://bugs.webkit.org/show_bug.cgi?id=144352
3033
3034         Reviewed by Joseph Pecoraro.
3035
3036         * UserInterface/Base/Main.js:
3037         (WebInspector.showDebuggerTab): Added showScopeChainDetailsSidebarPanel argument.
3038         (WebInspector._debuggerDidPause): Pass true for showScopeChainDetailsSidebarPanel.
3039         * UserInterface/Views/ContentBrowserTabContentView.js:
3040         (WebInspector.ContentBrowserTabContentView): Wire the event to showDetailsSidebarPanels instead of
3041         _contentBrowserRepresentedObjectsDidChange, allowing subclasses to do work during the event.
3042         (WebInspector.ContentBrowserTabContentView.prototype.showDetailsSidebarPanels): Moved content of
3043         _contentBrowserRepresentedObjectsDidChange here.
3044         (WebInspector.ContentBrowserTabContentView.prototype._contentBrowserRepresentedObjectsDidChange): Deleted.
3045         * UserInterface/Views/DebuggerTabContentView.js:
3046         (WebInspector.DebuggerTabContentView.prototype.showDetailsSidebarPanels): Added. Show the scope sidebar panel
3047         if it is available and it was requested by showScopeChainDetailsSidebarPanel().
3048         (WebInspector.DebuggerTabContentView.prototype.showScopeChainDetailsSidebarPanel): Added.
3049
3050 2015-04-30  Andres Gomez  <agomez@igalia.com>
3051
3052         [GTK] Web Inspector: New Images for ObjectTreeView - Setter
3053         https://bugs.webkit.org/show_bug.cgi?id=143173
3054
3055         Reviewed by Martin Robinson.
3056
3057         * UserInterface/Images/gtk/Pencil.svg: Added.
3058
3059 2015-04-30  Andres Gomez  <agomez@igalia.com>
3060
3061         [GTK] Web Inspector: Remove some unused Images
3062         https://bugs.webkit.org/show_bug.cgi?id=144445
3063
3064         Reviewed by Carlos Garcia Campos.
3065
3066         * UserInterface/Images/gtk/BottomUpTree.svg: Removed.
3067         * UserInterface/Images/gtk/Log.png: Removed.
3068         * UserInterface/Images/gtk/Log@2x.png: Removed.
3069         * UserInterface/Images/gtk/NavigationItemAngleBrackets.svg: Removed.
3070         * UserInterface/Images/gtk/NavigationItemBrushAndRuler.svg: Removed.
3071         * UserInterface/Images/gtk/NavigationItemBug.svg: Removed.
3072         * UserInterface/Images/gtk/NavigationItemFile.svg: Removed.
3073         * UserInterface/Images/gtk/NavigationItemLayers.svg: Removed.
3074         * UserInterface/Images/gtk/NavigationItemLog.svg: Removed.
3075         * UserInterface/Images/gtk/NavigationItemProbes.svg: Removed.
3076         * UserInterface/Images/gtk/NavigationItemStopwatch.svg: Removed.
3077         * UserInterface/Images/gtk/NavigationItemStorage.svg: Removed.
3078         * UserInterface/Images/gtk/NavigationItemVariable.svg: Removed.
3079         * UserInterface/Images/gtk/Percent.svg: Removed.
3080         * UserInterface/Images/gtk/Reload.svg: Removed.
3081         * UserInterface/Images/gtk/SplitToggleDown.svg: Removed.
3082         * UserInterface/Images/gtk/Time.svg: Removed.
3083         * UserInterface/Images/gtk/Weight.svg: Removed.
3084
3085 2015-04-30  Joseph Pecoraro  <pecoraro@apple.com>
3086
3087         Web Inspector: Copy not working in Console
3088         https://bugs.webkit.org/show_bug.cgi?id=144354
3089
3090         Reviewed by Timothy Hatcher.
3091
3092         * UserInterface/Base/Main.js:
3093         (WebInspector._focusedContentView):
3094         Select the inner most content view to check if handleCopyEvent exists.
3095         Previously we were stopping at the top level TabContentView.
3096
3097 2015-04-29  Timothy Hatcher  <timothy@apple.com>
3098
3099         Web Inspector: Remove some unused Images
3100         https://bugs.webkit.org/show_bug.cgi?id=144412
3101
3102         Reviewed by Joseph Pecoraro.
3103
3104         * UserInterface/Images/BottomUpTree.svg: Removed.
3105         * UserInterface/Images/Log.png: Removed.
3106         * UserInterface/Images/Log@2x.png: Removed.
3107         * UserInterface/Images/NavigationItemAngleBrackets.svg: Removed.
3108         * UserInterface/Images/NavigationItemBrushAndRuler.svg: Removed.
3109         * UserInterface/Images/NavigationItemBug.svg: Removed.
3110         * UserInterface/Images/NavigationItemDoughnutChart.svg: Removed.
3111         * UserInterface/Images/NavigationItemFile.svg: Removed.
3112         * UserInterface/Images/NavigationItemLayers.svg: Removed.
3113         * UserInterface/Images/NavigationItemLog.svg: Removed.
3114         * UserInterface/Images/NavigationItemProbes.svg: Removed.
3115         * UserInterface/Images/NavigationItemStopwatch.svg: Removed.
3116         * UserInterface/Images/NavigationItemStorage.svg: Removed.
3117         * UserInterface/Images/NavigationItemVariable.svg: Removed.
3118         * UserInterface/Images/NetworkBarLabelCalloutLeft.svg: Removed.
3119         * UserInterface/Images/NetworkBarLabelCalloutRight.svg: Removed.
3120         * UserInterface/Images/NetworkBarLabelCalloutWhiteLeft.svg: Removed.
3121         * UserInterface/Images/NetworkBarLabelCalloutWhiteRight.svg: Removed.
3122         * UserInterface/Images/Percent.svg: Removed.
3123         * UserInterface/Images/Reload.svg: Removed.
3124         * UserInterface/Images/SplitToggleDown.svg: Removed.
3125         * UserInterface/Images/Time.svg: Removed.
3126         * UserInterface/Images/Weight.svg: Removed.
3127
3128 2015-04-29  Timothy Hatcher  <timothy@apple.com>
3129
3130         Web Inspector: Split Storage from Resources tab
3131         https://bugs.webkit.org/show_bug.cgi?id=144404
3132
3133         Reviewed by Joseph Pecoraro.
3134
3135         * Localizations/en.lproj/localizedStrings.js:
3136         * UserInterface/Base/Main.js:
3137         (WebInspector.loaded):
3138         (WebInspector.isTabTypeAllowed):
3139         (WebInspector._tabContentViewForType):
3140         (WebInspector._updateNewTabButtonState):
3141         (WebInspector.showStorageTab):
3142         (WebInspector._storageWasInspected):
3143         * UserInterface/Controllers/ApplicationCacheManager.js:
3144         (WebInspector.ApplicationCacheManager.prototype.initialize):
3145         (WebInspector.ApplicationCacheManager.prototype.get applicationCacheObjects):
3146         * UserInterface/Controllers/StorageManager.js:
3147         (WebInspector.StorageManager.prototype.get domStorageObjects):
3148         (WebInspector.StorageManager.prototype.get databases):
3149         (WebInspector.StorageManager.prototype.get indexedDatabases):
3150         (WebInspector.StorageManager.prototype.get cookieStorageObjects):
3151         * UserInterface/Images/Storage.svg: Added.
3152         * UserInterface/Main.html:
3153         * UserInterface/Views/DatabaseTableContentView.js:
3154         (WebInspector.DatabaseTableContentView.prototype._queryFinished): Clear _dataGrid,
3155         since it might have been allocated but still be empty. This avoids an exception in
3156         updateLayout next time layout is updated.
3157         * UserInterface/Views/NewTabContentView.js:
3158         (WebInspector.NewTabContentView):
3159         * UserInterface/Views/ResourceSidebarPanel.js:
3160         (WebInspector.ResourceSidebarPanel):
3161         (WebInspector.ResourceSidebarPanel.prototype._treeElementSelected):
3162         (WebInspector.ResourceSidebarPanel.prototype._domStorageObjectWasAdded): Deleted.
3163         (WebInspector.ResourceSidebarPanel.prototype._domStorageObjectWasInspected): Deleted.
3164         (WebInspector.ResourceSidebarPanel.prototype._databaseWasAdded): Deleted.
3165         (WebInspector.ResourceSidebarPanel.prototype._databaseWasInspected): Deleted.
3166         (WebInspector.ResourceSidebarPanel.prototype._indexedDatabaseWasAdded): Deleted.
3167         (WebInspector.ResourceSidebarPanel.prototype._cookieStorageObjectWasAdded): Deleted.
3168         (WebInspector.ResourceSidebarPanel.prototype._frameManifestAdded): Deleted.
3169         (WebInspector.ResourceSidebarPanel.prototype._frameManifestRemoved): Deleted.
3170         (WebInspector.ResourceSidebarPanel.prototype._addStorageChild): Deleted.
3171         (WebInspector.ResourceSidebarPanel.prototype._storageCleared): Deleted.
3172         * UserInterface/Views/ResourcesTabContentView.js:
3173         (WebInspector.ResourcesTabContentView):
3174         (WebInspector.ResourcesTabContentView.prototype.canShowRepresentedObject):
3175         * UserInterface/Views/StorageSidebarPanel.js: Added.
3176         (WebInspector.StorageSidebarPanel):
3177         (WebInspector.StorageSidebarPanel.prototype.showDefaultContentView):
3178         (WebInspector.StorageSidebarPanel.prototype.closed):
3179         (WebInspector.StorageSidebarPanel.prototype._treeElementSelected):
3180         (WebInspector.StorageSidebarPanel.prototype._domStorageObjectWasAdded):
3181         (WebInspector.StorageSidebarPanel.prototype._addDOMStorageObject):
3182         (WebInspector.StorageSidebarPanel.prototype._domStorageObjectWasInspected):
3183         (WebInspector.StorageSidebarPanel.prototype._databaseWasAdded):
3184         (WebInspector.StorageSidebarPanel.prototype._addDatabase):
3185         (WebInspector.StorageSidebarPanel.prototype._databaseWasInspected):
3186         (WebInspector.StorageSidebarPanel.prototype._indexedDatabaseWasAdded):
3187         (WebInspector.StorageSidebarPanel.prototype._addIndexedDatabase):
3188         (WebInspector.StorageSidebarPanel.prototype._cookieStorageObjectWasAdded):
3189         (WebInspector.StorageSidebarPanel.prototype._addCookieStorageObject):
3190         (WebInspector.StorageSidebarPanel.prototype._frameManifestAdded):
3191         (WebInspector.StorageSidebarPanel.prototype._addFrameManifest):
3192         (WebInspector.StorageSidebarPanel.prototype._frameManifestRemoved):
3193         (WebInspector.StorageSidebarPanel.prototype._compareTreeElements):
3194         (WebInspector.StorageSidebarPanel.prototype._addStorageChild):
3195         (WebInspector.StorageSidebarPanel.prototype._storageCleared):
3196         * UserInterface/Views/StorageTabContentView.js: Copied from Source/WebInspectorUI/UserInterface/Views/ResourcesTabContentView.js.
3197         (WebInspector.StorageTabContentView):
3198         (WebInspector.StorageTabContentView.prototype.get type):
3199         (WebInspector.StorageTabContentView.prototype.canShowRepresentedObject):
3200
3201 2015-04-29  Timothy Hatcher  <timothy@apple.com>
3202
3203         Web Inspector: Remove Legacy images and styles
3204         https://bugs.webkit.org/show_bug.cgi?id=144390
3205
3206         Reviewed by Joseph Pecoraro.
3207
3208         * UserInterface/Base/ImageUtilities.js:
3209         (.generateImage):
3210         (.generateImage.generateLegacyImage): Deleted.
3211         * UserInterface/Base/Main.js:
3212         (WebInspector.contentLoaded):
3213         (WebInspector._updateToolbarHeight):
3214         * UserInterface/Base/Platform.js:
3215         * UserInterface/Controllers/TimelineManager.js:
3216         (WebInspector.TimelineManager.prototype._loadNewRecording):
3217         * UserInterface/Images/Legacy/BackArrow.svg: Removed.
3218         * UserInterface/Images/Legacy/Breakpoints.svg: Removed.
3219         * UserInterface/Images/Legacy/Close.svg: Removed.
3220         * UserInterface/Images/Legacy/CloseLarge.svg: Removed.
3221         * UserInterface/Images/Legacy/Colors.png: Removed.
3222         * UserInterface/Images/Legacy/Colors@2x.png: Removed.
3223         * UserInterface/Images/Legacy/ColorsLarge.png: Removed.
3224         * UserInterface/Images/Legacy/ColorsLarge@2x.png: Removed.
3225         * UserInterface/Images/Legacy/DockBottom.svg: Removed.
3226         * UserInterface/Images/Legacy/DockRight.svg: Removed.
3227         * UserInterface/Images/Legacy/DownloadArrow.svg: Removed.
3228         * UserInterface/Images/Legacy/Errors.svg: Removed.
3229         * UserInterface/Images/Legacy/ErrorsEnabled.svg: Removed.
3230         * UserInterface/Images/Legacy/FilterFieldGlyph.svg: Removed.
3231         * UserInterface/Images/Legacy/FolderGeneric.png: Removed.
3232         * UserInterface/Images/Legacy/FolderGeneric@2x.png: Removed.
3233         * UserInterface/Images/Legacy/ForwardArrow.svg: Removed.
3234         * UserInterface/Images/Legacy/Issues.svg: Removed.
3235         * UserInterface/Images/Legacy/IssuesEnabled.svg: Removed.
3236         * UserInterface/Images/Legacy/LayerBorders.svg: Removed.
3237         * UserInterface/Images/Legacy/Logs.svg: Removed.
3238         * UserInterface/Images/Legacy/NavigationItemCurleyBraces.svg: Removed.
3239         * UserInterface/Images/Legacy/NavigationItemTrash.svg: Removed.
3240         * UserInterface/Images/Legacy/Network.png: Removed.
3241         * UserInterface/Images/Legacy/Network@2x.png: Removed.
3242         * UserInterface/Images/Legacy/NetworkLarge.png: Removed.
3243         * UserInterface/Images/Legacy/NetworkLarge@2x.png: Removed.
3244         * UserInterface/Images/Legacy/Pause.svg: Removed.
3245         * UserInterface/Images/Legacy/Plus.svg: Removed.
3246         * UserInterface/Images/Legacy/Recording.png: Removed.
3247         * UserInterface/Images/Legacy/Recording@2x.png: Removed.
3248         * UserInterface/Images/Legacy/RecordingHovered.png: Removed.
3249         * UserInterface/Images/Legacy/RecordingHovered@2x.png: Removed.
3250         * UserInterface/Images/Legacy/RecordingStopped.png: Removed.
3251         * UserInterface/Images/Legacy/RecordingStopped@2x.png: Removed.
3252         * UserInterface/Images/Legacy/Reload.svg: Removed.
3253         * UserInterface/Images/Legacy/Resources.svg: Removed.
3254         * UserInterface/Images/Legacy/Resume.svg: Removed.
3255         * UserInterface/Images/Legacy/ShadowDOM.svg: Removed.
3256         * UserInterface/Images/Legacy/SortIndicatorDownArrow.svg: Removed.
3257         * UserInterface/Images/Legacy/SortIndicatorUpArrow.svg: Removed.
3258         * UserInterface/Images/Legacy/SplitToggleDown.svg: Removed.
3259         * UserInterface/Images/Legacy/SplitToggleUp.svg: Removed.
3260         * UserInterface/Images/Legacy/StepInto.svg: Removed.
3261         * UserInterface/Images/Legacy/StepOut.svg: Removed.
3262         * UserInterface/Images/Legacy/StepOver.svg: Removed.
3263         * UserInterface/Images/Legacy/Time.svg: Removed.
3264         * UserInterface/Images/Legacy/Undock.svg: Removed.
3265         * UserInterface/Images/Legacy/UpDownArrows.svg: Removed.
3266         * UserInterface/Images/Legacy/Weight.svg: Removed.
3267         * UserInterface/Views/ButtonNavigationItem.css:
3268         (body.mac-platform.legacy .navigation-bar .item.button.text-only): Deleted.
3269         * UserInterface/Views/ButtonToolbarItem.css:
3270         (body.mac-platform.legacy .toolbar .item.button > .label): Deleted.
3271         * UserInterface/Views/CSSStyleDeclarationSection.css:
3272         (body.mac-platform.legacy .style-declaration-section): Deleted.
3273         (body.mac-platform.legacy .style-declaration-section + .style-declaration-section): Deleted.
3274         (body.mac-platform.legacy .style-declaration-section.last-in-group): Deleted.
3275         (body.mac-platform.legacy .style-declaration-section.last-in-group + .style-declaration-section): Deleted.
3276         (body.mac-platform.legacy .style-declaration-section.last-in-group + .style-declaration-section:matches(.last-in-group, :last-child)): Deleted.
3277         * UserInterface/Views/CSSStyleDetailsSidebarPanel.css:
3278         (body.mac-platform.legacy .sidebar > .panel.details.css-style > .content): Deleted.
3279         * UserInterface/Views/ContentBrowser.js:
3280         (WebInspector.ContentBrowser):
3281         * UserInterface/Views/ControlToolbarItem.css:
3282         (body.mac-platform.legacy .toolbar .item.control): Deleted.
3283         (body.mac-platform.legacy .toolbar .item.control:hover): Deleted.
3284         * UserInterface/Views/DOMTreeContentView.js:
3285         (WebInspector.DOMTreeContentView):
3286         * UserInterface/Views/DOMTreeOutline.css:
3287         (body.mac-platform.legacy .dom-tree-outline li.hovered:not(.selected) .selection): Deleted.
3288         (body.mac-platform.legacy .dom-tree-outline li.elements-drag-over .selection): Deleted.
3289         (body.mac-platform.legacy .dom-tree-outline:focus li.selected .selection): Deleted.
3290         * UserInterface/Views/DashboardContainerView.css:
3291         (body.mac-platform.legacy .toolbar .dashboard-container): Deleted.
3292         (body.mac-platform.legacy.window-inactive .toolbar .dashboard-container): Deleted.
3293         (body.mac-platform.legacy.window-inactive .toolbar .dashboard): Deleted.
3294         (body.mac-platform.legacy .dashboard-container .advance-arrow): Deleted.
3295         * UserInterface/Views/DataGrid.css:
3296         (body.mac-platform.legacy .data-grid:focus tr.selected td:not(:last-child)): Deleted.
3297         (body.mac-platform.legacy .data-grid:focus tr.selected): Deleted.
3298         * UserInterface/Views/DataGrid.js:
3299         (WebInspector.DataGrid.prototype.get _generateSortIndicatorImagesIfNeeded):
3300         * UserInterface/Views/DatabaseTableContentView.js:
3301         (WebInspector.DatabaseTableContentView):
3302         * UserInterface/Views/DebuggerDashboardView.js:
3303         (WebInspector.DebuggerDashboardView):
3304         * UserInterface/Views/DebuggerSidebarPanel.css:
3305         (body.mac-platform.legacy .sidebar > .panel.navigation.debugger > .content): Deleted.
3306         * UserInterface/Views/DebuggerSidebarPanel.js:
3307         * UserInterface/Views/DefaultDashboardView.css:
3308         (body.mac-platform.legacy .toolbar .dashboard.default > .item): Deleted.
3309         (body.mac-platform.legacy .toolbar .dashboard.default > .resourcesCount > img): Deleted.
3310         (body.mac-platform.legacy .toolbar .dashboard.default > .logs > img): Deleted.
3311         (body.mac-platform.legacy .toolbar .dashboard.default > .errors > img): Deleted.
3312         (body.mac-platform.legacy .toolbar .dashboard.default > .errors.enabled > img): Deleted.
3313         (body.mac-platform.legacy .toolbar .dashboard.default > .issues > img): Deleted.
3314         (body.mac-platform.legacy .toolbar .dashboard.default > .issues.enabled > img): Deleted.
3315         * UserInterface/Views/DetailsSection.css:
3316         (body.mac-platform.legacy .details-section): Deleted.
3317         (body.mac-platform.legacy .details-section .details-section): Deleted.
3318         (body.mac-platform.legacy .details-section .details-section:first-child): Deleted.
3319         (body.mac-platform.legacy .details-section > .header): Deleted.
3320         (body.mac-platform.legacy .details-section .details-section > .header): Deleted.
3321         (body.mac-platform.legacy .details-section .details-section.collapsed > .header): Deleted.
3322         (body.mac-platform.legacy .details-section:not(.collapsed) .data-grid.inline): Deleted.
3323         (body.mac-platform.legacy .details-section.computed-style-properties:not(.collapsed) > .header): Deleted.
3324         (body.mac-platform.legacy .details-section > .content > .group): Deleted.
3325         (body.mac-platform.legacy .details-section > .content > .group:nth-child(even)): Deleted.
3326         (body.mac-platform.legacy .details-section > .content > .group:matches(:nth-child(even), :last-child) > .row.simple:last-child > *): Deleted.
3327         (body.mac-platform.legacy .details-section > .content > .group > .row:matches(.empty, .text)): Deleted.
3328         * UserInterface/Views/DividerNavigationItem.css:
3329         (.navigation-bar .item.divider):
3330         (body.mac-platform.legacy .navigation-bar .item.divider): Deleted.
3331         * UserInterface/Views/FilterBar.css:
3332         (.filter-bar > input[type="search"]::-webkit-search-decoration):
3333         (body.mac-platform.legacy .filter-bar): Deleted.
3334         (body.mac-platform.legacy .filter-bar > input[type="search"]): Deleted.
3335         (body.mac-platform.legacy .filter-bar > input[type="search"]::-webkit-search-decoration): Deleted.
3336         * UserInterface/Views/FindBanner.css:
3337         (body.mac-platform.legacy .find-banner > input[type="search"]): Deleted.
3338         (body.mac-platform.legacy .find-banner > button > .glyph): Deleted.
3339         (body.mac-platform.legacy .find-banner > button.segmented.left > .glyph): Deleted.
3340         (body.mac-platform.legacy .find-banner > button.segmented.right > .glyph): Deleted.
3341         (body.mac-platform.legacy .find-banner > button.segmented): Deleted.
3342         * UserInterface/Views/FindBanner.js:
3343         (WebInspector.FindBanner.prototype._generateButtonsGlyphsIfNeeded):
3344         (WebInspector.FindBanner):
3345         * UserInterface/Views/FolderIcon.css:
3346         (.folder-icon .icon):
3347         (body.mac-platform.legacy .folder-icon .icon): Deleted.
3348         * UserInterface/Views/HierarchicalPathComponent.css:
3349         (body.mac-platform.legacy .hierarchical-path-component > .selector-arrows): Deleted.
3350         * UserInterface/Views/IndexedDatabaseObjectStoreContentView.js:
3351         (WebInspector.IndexedDatabaseObjectStoreContentView):
3352         * UserInterface/Views/LayerTreeDetailsSidebarPanel.css:
3353         (body.mac-platform.legacy .sidebar > .panel.details.layer-tree > .content): Deleted.
3354         (body.mac-platform.legacy .panel.details.layer-tree .bottom-bar): Deleted.
3355         (body.mac-platform.legacy .panel.details.layer-tree .bottom-bar > div): Deleted.
3356         (body.mac-platform.legacy .layer-tree-popover): Deleted.
3357         * UserInterface/Views/LogContentView.css:
3358         (body.mac-platform.legacy .search-bar.log-search-bar > input[type="search"]): Deleted.
3359         * UserInterface/Views/LogContentView.js:
3360         (WebInspector.LogContentView):
3361         * UserInterface/Views/Main.css:
3362         (body.mac-platform.legacy:not(.docked)): Deleted.
3363         (body.docked.bottom.mac-platform.legacy): Deleted.
3364         (body.docked.right.mac-platform.legacy): Deleted.
3365         (body.mac-platform.legacy #split-content-browser > .navigation-bar): Deleted.
3366         * UserInterface/Views/NavigationBar.css:
3367         (.navigation-bar .item):
3368         (body.mac-platform.legacy .navigation-bar): Deleted.
3369         (body.mac-platform.legacy .navigation-bar .item): Deleted.
3370         * UserInterface/Views/NavigationSidebarPanel.css:
3371         (body.mac-platform.legacy .sidebar > .panel.navigation > .content): Deleted.
3372         (body.mac-platform.legacy .sidebar > .panel.navigation > .overflow-shadow): Deleted.
3373         (body.mac-platform.legacy .sidebar > .panel.navigation > .overflow-shadow.top): Deleted.
3374         (body.mac-platform.legacy .sidebar > .panel.navigation > .empty-content-placeholder): Deleted.
3375         (body.mac-platform.legacy .navigation-sidebar-panel-content-tree-outline .item.selected): Deleted.
3376         (body.mac-platform.legacy .navigation-sidebar-panel-content-tree-outline:focus .item.selected): Deleted.
3377         (body.mac-platform.legacy.window-inactive .navigation-sidebar-panel-content-tree-outline .item.selected): Deleted.
3378         * UserInterface/Views/NavigationSidebarPanel.js:
3379         (WebInspector.NavigationSidebarPanel.prototype._updateContentOverflowShadowVisibility):
3380         (WebInspector.NavigationSidebarPanel.prototype._generateDisclosureTrianglesIfNeeded):
3381         * UserInterface/Views/Popover.js:
3382         * UserInterface/Views/ProbeDetailsSidebarPanel.css:
3383         (body.mac-platform.legacy .details-section.probe-set .options > .probe-clear-samples): Deleted.
3384         (body.mac-platform.legacy .details-section.probe-set .options > .probe-remove): Deleted.
3385         (body.mac-platform.legacy .details-section.probe-set .options > .probe-add): Deleted.
3386         * UserInterface/Views/QuickConsole.css:
3387         (body.mac-platform.legacy .quick-console): Deleted.
3388         * UserInterface/Views/RadioButtonNavigationItem.css:
3389         (.navigation-bar .item.radio.button.text-only.selected:active):
3390         (body.mac-platform.legacy .navigation-bar .item.radio.button.text-only:hover): Deleted.
3391         (body.mac-platform.legacy .navigation-bar .item.radio.button.text-only.selected): Deleted.
3392         (body.mac-platform.legacy .navigation-bar .item.radio.button.text-only.selected:active): Deleted.
3393         * UserInterface/Views/RulesStyleDetailsPanel.css:
3394         (body.mac-platform.legacy .sidebar > .panel.details.css-style .rules .label + .style-declaration-section): Deleted.
3395         (body.mac-platform.legacy .sidebar > .panel.details.css-style .rules .new-rule): Deleted.
3396         (body.mac-platform.legacy .sidebar > .panel.details.css-style .rules .new-rule + .style-declaration-section): Deleted.
3397         (body.mac-platform.legacy .sidebar > .panel.details.css-style .rules .new-rule img): Deleted.
3398         * UserInterface/Views/ScopeBar.css:
3399         (.scope-bar > li.selected:active):
3400         (body.mac-platform.legacy .scope-bar > li): Deleted.
3401         (body.mac-platform.legacy .scope-bar > li:hover): Deleted.
3402         (body.mac-platform.legacy .scope-bar > li.selected): Deleted.
3403         (body.mac-platform.legacy .scope-bar > li:active): Deleted.
3404         (body.mac-platform.legacy .scope-bar > li.selected:active): Deleted.
3405         * UserInterface/Views/ScriptContentView.js:
3406         (WebInspector.ScriptContentView):
3407         * UserInterface/Views/SearchBar.css:
3408         (body.mac-platform.legacy .search-bar > input[type="search"]): Deleted.
3409         * UserInterface/Views/SearchSidebarPanel.css:
3410         (.sidebar > .panel.navigation.search > .search-bar > input[type="search"]):
3411         (body.mac-platform.legacy .sidebar > .panel.navigation.search > :matches(.content, .empty-content-placeholder)): Deleted.
3412         (body.mac-platform.legacy .sidebar > .panel.navigation.search > .search-bar): Deleted.
3413         (body.mac-platform.legacy .sidebar > .panel.navigation.search > .search-bar > input[type="search"]): Deleted.
3414         * UserInterface/Views/Sidebar.css:
3415         (body.window-inactive .sidebar.right):
3416         (body.mac-platform.legacy .sidebar): Deleted.
3417         (body.mac-platform.legacy.window-inactive .sidebar): Deleted.
3418         (body.mac-platform.legacy .sidebar.right): Deleted.
3419         * UserInterface/Views/TextContentView.js:
3420         (WebInspector.TextContentView):
3421         * UserInterface/Views/TextResourceContentView.js:
3422         (WebInspector.TextResourceContentView):
3423         * UserInterface/Views/TimelineDataGrid.css:
3424         (body.mac-platform.legacy .data-grid.timeline > .navigation-bar-container > .navigation-bar): Deleted.
3425         * UserInterface/Views/TimelineIcons.css:
3426         (body.mac-platform.legacy .network-icon .icon): Deleted.
3427         (body.mac-platform.legacy .network-icon.large .icon): Deleted.
3428         (body.mac-platform.legacy .colors-icon .icon): Deleted.
3429         (body.mac-platform.legacy .colors-icon.large .icon): Deleted.
3430         * UserInterface/Views/TimelineRecordingContentView.js:
3431         (WebInspector.TimelineRecordingContentView):
3432         * UserInterface/Views/TimelineRuler.css:
3433         (body.mac-platform.legacy .timeline-ruler > .header): Deleted.
3434         (body.mac-platform.legacy .timeline-ruler > .selection-drag): Deleted.
3435         (body.mac-platform.legacy .timeline-ruler > .selection-handle): Deleted.
3436         * UserInterface/Views/TimelineSidebarPanel.css:
3437         (.sidebar > .panel.navigation.timeline.timeline-recording-content-view-showing > .content):
3438         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar): Deleted.
3439         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-glyph): Deleted.
3440         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-glyph.recording): Deleted.
3441         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-glyph:hover): Deleted.
3442         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-glyph.recording:hover): Deleted.
3443         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-glyph.forced): Deleted.
3444         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-glyph.recording.forced): Deleted.
3445         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .status-bar > .record-status): Deleted.
3446         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .title-bar): Deleted.
3447         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .title-bar.timelines): Deleted.
3448         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .title-bar.timeline-events): Deleted.
3449         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .timelines-content): Deleted.
3450         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .timelines-content .close-button): Deleted.
3451         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .timelines-content li.item.selected + li.item): Deleted.
3452         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .timelines-content :focus li.item.selected + li.item): Deleted.
3453         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > :matches(.content, .empty-content-placeholder)): Deleted.
3454         (body.mac-platform.legacy .sidebar > .panel.navigation.timeline > .content .item > .status > .status-button): Deleted.
3455         * UserInterface/Views/TimelineSidebarPanel.js:
3456         (WebInspector.TimelineSidebarPanel):
3457         * UserInterface/Views/Toolbar.css:
3458         (body.mac-platform:not(.docked) .toolbar):
3459         (body.mac-platform:not(.legacy, .docked) .toolbar): Deleted.
3460         (body.mac-platform.legacy .toolbar): Deleted.
3461         (body.mac-platform.legacy.docked .toolbar): Deleted.
3462         (body.mac-platform.legacy:not(.docked) .toolbar .item.button > .label): Deleted.
3463         (body.mac-platform.legacy.window-inactive .toolbar): Deleted.
3464         * UserInterface/Views/TreeElementStatusButton.css:
3465         (body.mac-platform.legacy .item > .status > .status-button > svg .filled): Deleted.
3466         (body.mac-platform.legacy .item > .status > .status-button > svg .stroked): Deleted.
3467
3468 2015-04-29  Andres Gomez  <agomez@igalia.com>
3469
3470         [GTK] Web Inspector: Optimize SVG images
3471         https://bugs.webkit.org/show_bug.cgi?id=143476
3472
3473         SVG images optimized with a combination of sed replacements and
3474         the usage of the scour tool (http://www.codedread.com/scour/).
3475
3476         Also, modified the spelling of the license word to use the US one
3477         in the copyright files.
3478
3479         Reviewed by Martin Robinson.
3480
3481         * UserInterface/Images/gtk/BackArrow.svg:
3482         * UserInterface/Images/gtk/BottomUpTree.svg:
3483         * UserInterface/Images/gtk/BreakpointActionAdd.svg:
3484         * UserInterface/Images/gtk/BreakpointActionRemove.svg:
3485         * UserInterface/Images/gtk/BreakpointButton.svg:
3486         * UserInterface/Images/gtk/BreakpointInactiveButton.svg:
3487         * UserInterface/Images/gtk/Breakpoints.svg:
3488         * UserInterface/Images/gtk/COPYING:
3489         * UserInterface/Images/gtk/COPYING_CCBYSA3:
3490         * UserInterface/Images/gtk/Checkers.svg:
3491         * UserInterface/Images/gtk/Circle.svg:
3492         * UserInterface/Images/gtk/Close.svg:
3493         * UserInterface/Images/gtk/CloseLarge.svg:
3494         * UserInterface/Images/gtk/CloseWhite.svg:
3495         * UserInterface/Images/gtk/ContentFlow.svg:
3496         * UserInterface/Images/gtk/Crosshair.svg:
3497         * UserInterface/Images/gtk/DOMCharacterData.svg:
3498         * UserInterface/Images/gtk/DOMComment.svg:
3499         * UserInterface/Images/gtk/DOMDocument.svg:
3500         * UserInterface/Images/gtk/DOMDocumentType.svg:
3501         * UserInterface/Images/gtk/DOMElement.svg:
3502         * UserInterface/Images/gtk/DOMNode.svg:
3503         * UserInterface/Images/gtk/DOMTextNode.svg:
3504         * UserInterface/Images/gtk/DOMTree.svg:
3505         * UserInterface/Images/gtk/DisclosureTriangleSmallClosed.svg:
3506         * UserInterface/Images/gtk/DisclosureTriangleSmallOpen.svg:
3507         * UserInterface/Images/gtk/DisclosureTriangleTinyClosed.svg:
3508         * UserInterface/Images/gtk/DisclosureTriangleTinyOpen.svg:
3509         * UserInterface/Images/gtk/DockBottom.svg:
3510         * UserInterface/Images/gtk/DockRight.svg:
3511         * UserInterface/Images/gtk/DownloadArrow.svg:
3512         * UserInterface/Images/gtk/Error.svg:
3513         * UserInterface/Images/gtk/Errors.svg:
3514         * UserInterface/Images/gtk/ErrorsEnabled.svg:
3515         * UserInterface/Images/gtk/EventListener.svg:
3516         * UserInterface/Images/gtk/Exception.svg:
3517         * UserInterface/Images/gtk/Eye.svg:
3518         * UserInterface/Images/gtk/FilterFieldGlyph.svg:
3519         * UserInterface/Images/gtk/ForwardArrow.svg:
3520         * UserInterface/Images/gtk/Function.svg:
3521         * UserInterface/Images/gtk/GoToArrow.svg:
3522         * UserInterface/Images/gtk/HierarchicalNavigationItemChevron.svg:
3523         * UserInterface/Images/gtk/IndeterminateProgressSpinner1.svg:
3524         * UserInterface/Images/gtk/IndeterminateProgressSpinner10.svg:
3525         * UserInterface/Images/gtk/IndeterminateProgressSpinner11.svg:
3526         * UserInterface/Images/gtk/IndeterminateProgressSpinner12.svg:
3527         * UserInterface/Images/gtk/IndeterminateProgressSpinner2.svg:
3528         * UserInterface/Images/gtk/IndeterminateProgressSpinner3.svg:
3529         * UserInterface/Images/gtk/IndeterminateProgressSpinner4.svg:
3530         * UserInterface/Images/gtk/IndeterminateProgressSpinner5.svg:
3531         * UserInterface/Images/gtk/IndeterminateProgressSpinner6.svg:
3532         * UserInterface/Images/gtk/IndeterminateProgressSpinner7.svg:
3533         * UserInterface/Images/gtk/IndeterminateProgressSpinner8.svg:
3534         * UserInterface/Images/gtk/IndeterminateProgressSpinner9.svg:
3535         * UserInterface/Images/gtk/Issues.svg:
3536         * UserInterface/Images/gtk/IssuesEnabled.svg:
3537         * UserInterface/Images/gtk/LayerBorders.svg:
3538         * UserInterface/Images/gtk/Locked.svg:
3539         * UserInterface/Images/gtk/Logs.svg:
3540         * UserInterface/Images/gtk/Native.svg:
3541         * UserInterface/Images/gtk/NavigationItemAngleBrackets.svg:
3542         * UserInterface/Images/gtk/NavigationItemBrushAndRuler.svg:
3543         * UserInterface/Images/gtk/NavigationItemBug.svg:
3544         * UserInterface/Images/gtk/NavigationItemCurleyBraces.svg:
3545         * UserInterface/Images/gtk/NavigationItemFile.svg:
3546         * UserInterface/Images/gtk/NavigationItemLayers.svg:
3547         * UserInterface/Images/gtk/NavigationItemLog.svg:
3548         * UserInterface/Images/gtk/NavigationItemProbes.svg:
3549         * UserInterface/Images/gtk/NavigationItemStopwatch.svg:
3550         * UserInterface/Images/gtk/NavigationItemStorage.svg:
3551         * UserInterface/Images/gtk/NavigationItemTrash.svg:
3552         * UserInterface/Images/gtk/NavigationItemTypes.svg:
3553         * UserInterface/Images/gtk/NavigationItemVariable.svg:
3554         * UserInterface/Images/gtk/PaintFlashing.svg:
3555         * UserInterface/Images/gtk/Pause.svg:
3556         * UserInterface/Images/gtk/PausedBreakpoint.svg:
3557         * UserInterface/Images/gtk/Percent.svg:
3558         * UserInterface/Images/gtk/Plus.svg:
3559         * UserInterface/Images/gtk/PseudoElement.svg:
3560         * UserInterface/Images/gtk/Record.svg:
3561         * UserInterface/Images/gtk/Reflection.svg:
3562         * UserInterface/Images/gtk/Reload.svg:
3563         * UserInterface/Images/gtk/ReloadFull.svg:
3564         * UserInterface/Images/gtk/ReplayPauseButton.svg:
3565         * UserInterface/Images/gtk/ReplayPlayButton.svg:
3566         * UserInterface/Images/gtk/ReplayRecordingButton.svg:
3567         * UserInterface/Images/gtk/Request.svg:
3568         * UserInterface/Images/gtk/Resources.svg:
3569         * UserInterface/Images/gtk/Response.svg:
3570         * UserInterface/Images/gtk/ResultLine.svg:
3571         * UserInterface/Images/gtk/Resume.svg:
3572         * UserInterface/Images/gtk/ShadowDOM.svg:
3573         * UserInterface/Images/gtk/SortIndicatorDownArrow.svg:
3574         * UserInterface/Images/gtk/SortIndicatorUpArrow.svg:
3575         * UserInterface/Images/gtk/SourceCode.svg:
3576         * UserInterface/Images/gtk/SplitToggleDown.svg:
3577         * UserInterface/Images/gtk/SplitToggleUp.svg:
3578         * UserInterface/Images/gtk/StepInto.svg:
3579         * UserInterface/Images/gtk/StepOut.svg:
3580         * UserInterface/Images/gtk/StepOver.svg:
3581         * UserInterface/Images/gtk/Stop.svg:
3582         * UserInterface/Images/gtk/StyleRuleAuthor.svg:
3583         * UserInterface/Images/gtk/StyleRuleInherited.svg:
3584         * UserInterface/Images/gtk/StyleRuleInheritedElement.svg:
3585         * UserInterface/Images/gtk/StyleRuleInspector.svg:
3586         * UserInterface/Images/gtk/StyleRuleUser.svg:
3587         * UserInterface/Images/gtk/StyleRuleUserAgent.svg:
3588         * UserInterface/Images/gtk/Time.svg:
3589         * UserInterface/Images/gtk/TimelineRecordAnimation.svg:
3590         * UserInterface/Images/gtk/TimelineRecordConsoleProfile.svg:
3591         * UserInterface/Images/gtk/TimelineRecordEvent.svg:
3592         * UserInterface/Images/gtk/TimelineRecordLayout.svg:
3593         * UserInterface/Images/gtk/TimelineRecordPaint.svg:
3594         * UserInterface/Images/gtk/TimelineRecordProbeSampled.svg:
3595         * UserInterface/Images/gtk/TimelineRecordScriptEvaluated.svg:
3596         * UserInterface/Images/gtk/TimelineRecordStyle.svg:
3597         * UserInterface/Images/gtk/TimelineRecordTimer.svg:
3598         * UserInterface/Images/gtk/TypeBoolean.svg:
3599         * UserInterface/Images/gtk/TypeNull.svg:
3600         * UserInterface/Images/gtk/TypeNumber.svg:
3601         * UserInterface/Images/gtk/TypeObject.svg:
3602         * UserInterface/Images/gtk/TypeRegex.svg:
3603         * UserInterface/Images/gtk/TypeString.svg:
3604         * UserInterface/Images/gtk/TypeSymbol.svg:
3605         * UserInterface/Images/gtk/TypeUndefined.svg:
3606         * UserInterface/Images/gtk/Undock.svg:
3607         * UserInterface/Images/gtk/UpDownArrows.svg:
3608         * UserInterface/Images/gtk/UserInputPrompt.svg:
3609         * UserInterface/Images/gtk/UserInputPromptPrevious.svg:
3610         * UserInterface/Images/gtk/UserInputResult.svg:
3611         * UserInterface/Images/gtk/Warning.svg:
3612         * UserInterface/Images/gtk/Weight.svg:
3613
3614 2015-04-29  Timothy Hatcher  <timothy@apple.com>
3615
3616         Web Inspector: Navigation bar often looses last button when full
3617         https://bugs.webkit.org/show_bug.cgi?id=144385
3618
3619         Added helpers to get the subpixel width and height of an element.
3620         Adopt them in the NavigationBar layout methods to get precise widths
3621         that don't accumulate rounding errors which lead to items overflowing.
3622
3623         Reviewed by Joseph Pecoraro.
3624
3625         * UserInterface/Base/Utilities.js:
3626         (Element.prototype.realOffsetWidth): Added.
3627         (Element.prototype.realOffsetHeight): Added.
3628         * UserInterface/Views/HierarchicalPathNavigationItem.js:
3629         (WebInspector.HierarchicalPathNavigationItem.prototype.updateLayout):
3630         * UserInterface/Views/NavigationBar.js:
3631         (WebInspector.NavigationBar.prototype.updateLayout):
3632         (WebInspector.NavigationBar.prototype._calculateMinimumWidth):
3633         * UserInterface/Views/TabBar.js:
3634         (WebInspector.TabBar.prototype._handleMouseMoved):
3635         * UserInterface/Views/Toolbar.js:
3636         (WebInspector.Toolbar.prototype.customUpdateLayout.isOverflowingToolbar):
3637         (WebInspector.Toolbar.prototype.customUpdateLayout):
3638
3639 2015-04-28  Matt Baker  <mattbaker@apple.com>
3640
3641         Web Inspector: add a separate overview for the Rendering Frames timeline
3642         https://bugs.webkit.org/show_bug.cgi?id=144245
3643
3644         Reviewed by Timothy Hatcher.
3645
3646         The Timelines tab now supports two view modes, labeled "Timelines" and "Rendering Frames", with each mode
3647         having a seperate timeline overview and selected range. The Timelines mode displays the original time-based
3648         graphs (Network, Layout, and Script), and switching to the Rendering Frames mode displays a frames graph
3649         with a timeline ruler which shows frame indices.
3650
3651         If the rendering frames timeline is supported by the backend, a navigation bar is added to the timelines
3652         sidebar with controls for switching between view modes. In addition to user-triggered view mode changes, the
3653         timelines sidebar will automatically change the current view mode in response to content view changes that
3654         are triggered elsewhere in the UI (for example, when a timeline that does not belong to the current view
3655         mode is selected via the navigation path).
3656
3657         * UserInterface/Controllers/TimelineManager.js:
3658         (WebInspector.TimelineManager.prototype.get activeRecording): Deleted.
3659         (WebInspector.TimelineManager.prototype.get recordings): Deleted.
3660         Removed unused code.
3661
3662         * UserInterface/Main.html:
3663         New files.
3664
3665         * UserInterface/Models/RenderingFrameTimelineRecord.js:
3666         (WebInspector.RenderingFrameTimelineRecord):
3667         (WebInspector.RenderingFrameTimelineRecord.resetFrameIndex):
3668         (WebInspector.RenderingFrameTimelineRecord.prototype.get frameIndex):
3669         (WebInspector.RenderingFrameTimelineRecord.prototype.get frameNumber):
3670         * UserInterface/Models/TimelineRecording.js:
3671         (WebInspector.TimelineRecording.prototype.reset):
3672         Frame number is now derived from frame index.
3673
3674         * UserInterface/Views/LinearTimelineOverview.js:
3675         (WebInspector.LinearTimelineOverview):
3676         (WebInspector.LinearTimelineOverview.prototype.canShowTimeline):
3677         New overview class for time-based timeline graphs.
3678
3679         * UserInterface/Views/RenderingFrameDetailsSidebarPanel.js:
3680         (WebInspector.RenderingFrameDetailsSidebarPanel):
3681         (WebInspector.RenderingFrameDetailsSidebarPanel.prototype.updateRangeSelection):
3682         (WebInspector.RenderingFrameDetailsSidebarPanel.prototype._getSelectedRecords):
3683         Changed type of selected range from time to frame indices.
3684
3685         * UserInterface/Views/RenderingFrameTimelineOverview.js:
3686         (WebInspector.RenderingFrameTimelineOverview.this.timelineRuler.formatLabelCallback):
3687         (WebInspector.RenderingFrameTimelineOverview):
3688         (WebInspector.RenderingFrameTimelineOverview.prototype.canShowTimeline):
3689         New overview class for frame-based timeline graphs.
3690
3691         * UserInterface/Views/RenderingFrameTimelineOverviewGraph.css:
3692         (.timeline-overview > .graphs-container > .timeline-overview-graph.rendering-frame):
3693         * UserInterface/Views/RenderingFrameTimelineOverviewGraph.js:
3694         (WebInspector.RenderingFrameTimelineOverviewGraph):
3695         (WebInspector.RenderingFrameTimelineOverviewGraph.prototype._updateDividers.createDividerAtPosition.get if):
3696         Updated to use frame index ruler and removed frame combining logic.
3697
3698         * UserInterface/Views/RenderingFrameTimelineView.js:
3699         (WebInspector.RenderingFrameTimelineView):
3700         Increased column widths.
3701
3702         * UserInterface/Views/TimelineOverview.css:
3703         (.timeline-overview > .graphs-container):
3704         (body.mac-platform.legacy .timeline-overview > .graphs-container):
3705         Updated for new ruler height.
3706
3707         * UserInterface/Views/TimelineOverview.js:
3708         (WebInspector.TimelineOverview):
3709         (WebInspector.TimelineOverview.prototype.get secondsPerPixel):
3710         (WebInspector.TimelineOverview.prototype.set secondsPerPixel):
3711         (WebInspector.TimelineOverview.prototype.get visibleDuration):
3712         (WebInspector.TimelineOverview.prototype.set selectionDuration):
3713         (WebInspector.TimelineOverview.prototype.updateLayout):
3714         (WebInspector.TimelineOverview.prototype.get timelineRuler):
3715         (WebInspector.TimelineOverview.prototype.canShowTimeline):
3716         (WebInspector.TimelineOverview.prototype._handleScrollEvent):
3717         (WebInspector.TimelineOverview.prototype._handleWheelEvent):
3718         (WebInspector.TimelineOverview.prototype._timelineRemoved):
3719         (WebInspector.TimelineOverview.prototype._timeRangeSelectionChanged):
3720         (WebInspector.TimelineOverview.prototype.set currentTime): Deleted.
3721         (WebInspector.TimelineOverview.prototype.updateLayoutIfNeeded): Deleted.
3722         (WebInspector.TimelineOverview.prototype._needsLayout): Deleted.
3723         Converted to base class. Derived classes provide settings and permitted timeline types.
3724
3725         * UserInterface/Views/TimelineRecordFrame.css:
3726         (.timeline-record-frame):
3727         (.timeline-record-frame > .frame):
3728         (.timeline-record-frame > .frame > .duration):
3729         (.timeline-record-frame > .frame > .duration.timeline-record-type-network):
3730         (.timeline-record-frame > .frame > .duration.timeline-record-type-layout):
3731         (.timeline-record-frame > .frame > .duration.timeline-record-type-script):
3732         (.timeline-record-frame > .frame > .duration:last-child): Deleted.
3733         New graph frames styles.
3734
3735         * UserInterface/Views/TimelineRecordFrame.js:
3736         (WebInspector.TimelineRecordFrame):
3737         (WebInspector.TimelineRecordFrame.prototype.get record):
3738         (WebInspector.TimelineRecordFrame.prototype.set record):
3739         (WebInspector.TimelineRecordFrame.prototype._updateChildElements.createDurationElement):
3740         (WebInspector.TimelineRecordFrame.prototype.get element): Deleted.
3741         Updated to use frame index ruler.
3742         Removed dropped frames and frame combining logic.
3743
3744         * UserInterface/Views/TimelineRecordingContentView.js:
3745         (WebInspector.TimelineRecordingContentView):
3746         (WebInspector.TimelineRecordingContentView.prototype.shown):
3747         (WebInspector.TimelineRecordingContentView.prototype.hidden):
3748         (WebInspector.TimelineRecordingContentView.prototype.updateLayout):
3749         (WebInspector.TimelineRecordingContentView.prototype._currentContentViewDidChange):
3750         (WebInspector.TimelineRecordingContentView.prototype._updateTimes):
3751         (WebInspector.TimelineRecordingContentView.prototype._updateTimelineOverviewHeight):
3752         (WebInspector.TimelineRecordingContentView.prototype._getRenderingFrameTimeline):