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