Web Inspector: Edit Breakpoint popover sometimes appears misplaced in top left
[WebKit-https.git] / Source / WebInspectorUI / ChangeLog
1 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
2
3         Web Inspector: Edit Breakpoint popover sometimes appears misplaced in top left
4         https://bugs.webkit.org/show_bug.cgi?id=120804
5
6         Reviewed by Timothy Hatcher.
7
8         Grab the bounding rect immediately, instead of grabbing it from the element
9         after the user has selected the "Edit Breakpoint" context menu item. When
10         the popover was misplaced it was when using an element had been removed or
11         replaced in the DOM, and caused a bogus bounding client rect.
12
13         * UserInterface/Breakpoint.js:
14         (WebInspector.Breakpoint.prototype.editBreakpoint):
15         (WebInspector.Breakpoint.prototype._showEditBreakpointPopover):
16
17 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
18
19         Web Inspector: Remove harmless assert, triggered hitting breakpoint in auto prettyprinted code on reload
20         https://bugs.webkit.org/show_bug.cgi?id=120332
21
22         Reviewed by Timothy Hatcher.
23
24         * UserInterface/TextEditor.js:
25
26 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
27
28         Web Inspector: Breakpoint Actions
29         https://bugs.webkit.org/show_bug.cgi?id=120576
30
31         Reviewed by Timothy Hatcher.
32
33         Give the CodeMirror editor for JavaScript Breakpoint Actions JS Runtime
34         completions (like window, document, etc.).
35
36         The logic was inside of JavaScriptLogViewController but was already
37         entirely independent. Factor it out into its own class and plug it into
38         CodeMirrorCompletionController as a "CompletionsProvider".
39
40         Because the class hooks into a global event to reset some state, make
41         it a singleton, so new instances are not leaked.
42
43         * UserInterface/Main.html:
44         * UserInterface/Main.js:
45         (WebInspector.loaded):
46         * UserInterface/RuntimeManager.js: Added.
47         (WebInspector.RuntimeManager):
48         (WebInspector.RuntimeManager.prototype.evalCallback):
49         (WebInspector.RuntimeManager.prototype.evaluateInInspectedWindow):
50         Move eval in window to new RuntimeManager. A slightly cleaner place to this
51         since it is used both by the console and JS completions provider.
52
53         * UserInterface/CodeMirrorCompletionController.js:
54         (WebInspector.CodeMirrorCompletionController):
55         (WebInspector.CodeMirrorCompletionController.prototype.setExtendedCompletionProvider):
56         (WebInspector.CodeMirrorCompletionController.prototype._completeAtCurrentPosition):
57         Allow a completions provider plugin to completions controller. If one
58         is available, this supercedes the delegate extend completions path.
59
60         * UserInterface/BreakpointActionView.js:
61         * UserInterface/ConsolePrompt.js:
62         (WebInspector.ConsolePrompt):
63         Use the new JS completions provider to get runtime JS completions.
64         NOTE: ConsolePrompt still needs the delegate path for SQL completions.
65
66         * UserInterface/JavaScriptLogViewController.js:
67         (WebInspector.JavaScriptLogViewController):
68         (WebInspector.JavaScriptLogViewController.prototype.consolePromptTextCommitted):
69         * UserInterface/JavaScriptRuntimeCompletionProvider.js: Added.
70         (WebInspector.JavaScriptRuntimeCompletionProvider):
71         (get WebInspector.JavaScriptRuntimeCompletionProvider.prototype.):
72         (get WebInspector.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded):
73         Move the JS completions code to a new class. No changes needed.
74
75 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
76
77         Web Inspector: Breakpoint Actions
78         https://bugs.webkit.org/show_bug.cgi?id=120576
79
80         Reviewed by Timothy Hatcher.
81
82         * UserInterface/Breakpoint.js:
83         (WebInspector.Breakpoint):
84         (WebInspector.Breakpoint.prototype.get actions):
85         (WebInspector.Breakpoint.prototype.get options):
86         (WebInspector.Breakpoint.prototype.get info):
87         (WebInspector.Breakpoint.prototype._serializableActions):
88         Saving, restoring, and serialization.
89
90         (WebInspector.Breakpoint.prototype.createAction):
91         (WebInspector.Breakpoint.prototype.recreateAction):
92         (WebInspector.Breakpoint.prototype.removeAction):
93         (WebInspector.Breakpoint.prototype.breakpointActionDidChange):
94         Modifying _actions ivar.
95
96         (WebInspector.Breakpoint.prototype._editBreakpointPopoverContentElement):
97         (WebInspector.Breakpoint.prototype._popoverActionsCreateAddActionButton):
98         (WebInspector.Breakpoint.prototype._popoverActionsAddActionButtonClicked):
99         (WebInspector.Breakpoint.prototype._popoverActionsInsertBreakpointActionView):
100         (WebInspector.Breakpoint.prototype.breakpointActionViewAppendActionView):
101         (WebInspector.Breakpoint.prototype.breakpointActionViewRemoveActionView):
102         (WebInspector.Breakpoint.prototype.breakpointActionViewResized):
103         Popover UI containing breakpoint action views and converting to and from
104         having no actions.
105
106         (WebInspector.Breakpoint.prototype.willDismissPopover):
107         Cleanup some ivars when the popover dismisses.
108
109         * UserInterface/Breakpoint.css:
110         (.popover .edit-breakpoint-popover-content.wide):
111         Wider setting when there are actions in the popover.
112
113         (.popover .edit-breakpoint-popover-content > table > tr > th):
114         Keep the title labels at the top of their section.
115
116         * UserInterface/BreakpointAction.js:
117         (WebInspector.BreakpointAction):
118         (WebInspector.BreakpointAction.prototype.get breakpoint):
119         (WebInspector.BreakpointAction.prototype.get type):
120         (WebInspector.BreakpointAction.prototype.get data):
121         (WebInspector.BreakpointAction.prototype.set data):
122         (WebInspector.BreakpointAction.prototype.get info):
123         Very basic BreakpointAction class. Notifies Breakpoint on data changes.
124         Type changes are not allowed, instead just create a new BreakpointAction.
125
126         * UserInterface/BreakpointActionView.css: Added.
127         (.breakpoint-action-block-header):
128         (.breakpoint-action-remove-button):
129         (.breakpoint-action-remove-button:active):
130         (.breakpoint-action-append-button):
131         (.breakpoint-action-block-body):
132         (.breakpoint-action-block-body > input):
133         (.breakpoint-action-eval-editor):
134         (.breakpoint-action-eval-editor > .CodeMirror):
135         (.breakpoint-action-eval-editor > .CodeMirror-scroll):
136         * UserInterface/BreakpointActionView.js: Added.
137         (WebInspector.BreakpointActionView):
138         (WebInspector.BreakpointActionView.displayStringForType):
139         (WebInspector.BreakpointActionView.prototype.get action):
140         (WebInspector.BreakpointActionView.prototype.get element):
141         (WebInspector.BreakpointActionView.prototype._pickerChanged):
142         (WebInspector.BreakpointActionView.prototype._appendActionButtonClicked):
143         (WebInspector.BreakpointActionView.prototype._removeActionButtonClicked):
144         (WebInspector.BreakpointActionView.prototype._updateBody.switch.break):
145         (WebInspector.BreakpointActionView.prototype._logInputChanged):
146         (WebInspector.BreakpointActionView.prototype._codeMirrorBlurred):
147         (WebInspector.BreakpointActionView.prototype._codeMirrorViewportChanged):
148         UI and form controls for individual breakpoint actions. The view
149         wraps a single BreakpointAction, and for any actions that could affect
150         other views the delegate is notified.
151
152         * UserInterface/DebuggerManager.js:
153         (WebInspector.DebuggerManager):
154         (WebInspector.DebuggerManager.prototype._debuggerBreakpointActionType):
155         When sending to the backend, make sure to send protocol enums.
156
157         * UserInterface/Popover.js:
158         (WebInspector.Popover.prototype.update):
159         Update the popover when content changes.
160
161         * UserInterface/Images/BreakpointActionAdd.svg: Added.
162         * UserInterface/Images/BreakpointActionRemove.svg: Added.
163         * UserInterface/InspectorBackendCommands.js:
164         * UserInterface/Main.html:
165         * Localizations/en.lproj/localizedStrings.js:
166         Misc. New strings, images, includes.
167
168 2013-09-03  Antoine Quint  <graouts@apple.com>
169
170         Web Inspector: exceptions triggered from console evaluation do not pause the debugger
171         https://bugs.webkit.org/show_bug.cgi?id=120460
172
173         We used to preclude any debugging from errors stemming from code evaluated in the console
174         as we would always set the doNotPauseOnExceptionsAndMuteConsole parameter to "false" when
175         calling JavaScriptLogViewController._evaluateInInspectedWindow(). However, it is desirable
176         to allow debugging code ran from the console.
177
178         We now allow debugging in such a scenario and we filter out call frames coming from the
179         Web Inspector injected script as well as the call frame for the console prompt such that
180         we only pause in the debugger in case the exception is in code under the console prompt
181         and not the console code prompt itself.
182
183         Additionally, to prevent stepping out to call frames we may have filtered out, we disable
184         the "step out" button in cases where there are no further frames in the frontend to go out to.
185
186         Reviewed by Timothy Hatcher.
187
188         * UserInterface/DebuggerManager.js:
189         (WebInspector.DebuggerManager.prototype.debuggerDidPause):
190         Filter out call frames that have a URL coming from Web Inspector injected script by looking
191         for a URL starting with the "__WebInspector" prefix. If we determine that there are no call
192         frames left after filtering, we resume code evaluation such that we only pause in the debugger
193         when the exception is in code evluated under the console prompt.
194
195         * UserInterface/DebuggerSidebarPanel.js:
196         (WebInspector.DebuggerSidebarPanel):
197         (WebInspector.DebuggerSidebarPanel.prototype._debuggerDidPause):
198         (WebInspector.DebuggerSidebarPanel.prototype._debuggerActiveCallFrameDidChange):
199         Monitor any change to the active call frame such that we may tie the state of the
200         "step out" button to the availability of a call frame to step out to in the filtered
201         list set on the DebuggerManager.
202
203         * UserInterface/JavaScriptLogViewController.js:
204         (WebInspector.JavaScriptLogViewController.prototype.consolePromptTextCommitted):
205         Set the doNotPauseOnExceptionsAndMuteConsole to "false" when calling _evaluateInInspectedWindow()
206         in order to allow pausing on exceptions coming from code evalued in the console. Also, explicitly
207         set a sourceURL for the script to evaluate such that we may identify its origin when filtering
208         call frames stemming from inspector code.
209
210         * UserInterface/ResourceSidebarPanel.js:
211         (WebInspector.ResourceSidebarPanel.prototype._scriptWasAdded):
212         Filter out any script resource starting with the Web Inspector-specific "__WebInspector" prefix
213         so that injected script does not show up.
214
215 2013-08-30  Brent Fulgham  <bfulgham@apple.com>
216
217         [Windows] Correct windows build. Get rid of unnecessary pre-build step. We don't build anything
218         in this project, just copy some files into the WebKit resource folder. This was fooling the
219         build system into thinking something failed, resulting in a build error.
220
221         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Remove reference to WebInspectorUIPreBuild.cmd
222         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters:
223         * WebInspectorUI.vcxproj/WebInspectorUIPreBuild.cmd: Removed.
224
225 2013-08-30  Brent Fulgham  <bfulgham@apple.com>
226
227         [Windows] Build correction after dependency change.
228
229         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Remove circular dependency on
230         WebKit, and control this at the solution level. The prior change broke external
231         builders.
232
233 2013-08-30  Brent Fulgham  <bfulgham@apple.com>
234
235         [Windows] Unreviewed build gardening.
236
237         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Adjust build dependencies so
238         that WebInspectorUI 'builds' after WebKit so that the expected resource directory
239         structure is always in place.
240
241 2013-08-30  Joseph Pecoraro  <pecoraro@apple.com>
242
243         Web Inspector: Breakpoints should have Automatically Continue Option
244         https://bugs.webkit.org/show_bug.cgi?id=120187
245
246         Reviewed by Timothy Hatcher.
247
248         * Localizations/en.lproj/localizedStrings.js:
249         * UserInterface/Breakpoint.css:
250         (#edit-breakpoint-popoover-auto-continue):
251         Misc. changes for UI.
252
253         * UserInterface/Breakpoint.js:
254         (WebInspector.Breakpoint):
255         (WebInspector.Breakpoint.prototype.get autoContinue):
256         (WebInspector.Breakpoint.prototype.set autoContinue):
257         (WebInspector.Breakpoint.prototype.get options):
258         (WebInspector.Breakpoint.prototype.get info):
259         General maintenance of the autoContinue state.
260
261         (WebInspector.Breakpoint.prototype._popoverToggleEnabledCheckboxChanged):
262         (WebInspector.Breakpoint.prototype._popoverToggleAutoContinueCheckboxChanged):
263         (WebInspector.Breakpoint.prototype._editBreakpointPopoverContentElement):
264         Edit Breakpoint UI for setting autoContinue state.
265
266         * UserInterface/InspectorBackend.js:
267         (InspectorBackendClass.prototype.registerCommand):
268         (InspectorBackendClass.prototype._supports):
269         Extension to check if a BackendCommands method supports a particular param.
270
271         * UserInterface/DebuggerManager.js:
272         (WebInspector.DebuggerManager):
273         (WebInspector.DebuggerManager.prototype._setBreakpoint):
274         * UserInterface/InspectorBackendCommands.js:
275         Change to backend agent calls for the new protocol API.
276
277 2013-08-29  Timothy Hatcher  <timothy@apple.com>
278
279         Make incrementing and decrementing numbers by 0.1 require the control key, and not near zero numbers.
280
281         https://bugs.webkit.org/show_bug.cgi?id=120492
282         <rdar://problem/13738935> Incrementing and decrementing numbers near zero is annoying compared to earlier releases
283
284         Reviewed by Joseph Pecoraro.
285
286         * UserInterface/CodeMirrorAdditions.js:
287         (alterNumber): Remove near zero check.
288
289 2013-08-29  Timothy Hatcher  <timothy@apple.com>
290
291         Only modify numbers if they are identified by CodeMirror as a number.
292
293         https://bugs.webkit.org/show_bug.cgi?id=120484
294
295         <rdar://problem/13877085> REGRESSION: Alt-up and Alt-down don't work when cursor is in unit
296         <rdar://problem/13058697> PARITY: Option-Up arrow in "translate3d" should not modify number to make" translate4d"
297
298         Reviewed by Joseph Pecoraro.
299
300         * UserInterface/CodeMirrorAdditions.js:
301         (CodeMirror.prototype.alterNumberInRange): Correctly preserve the selection, even if it differs from
302         the range passed in.
303         (alterNumber): Find number tokens and pass those to alterNumberInRange.
304         (alterNumber.findNumberToken): Added. Helper.
305
306 2013-08-29  Timothy Hatcher  <timothy@apple.com>
307
308         Make incrementing and decrementing numbers by 0.1 require the control key, and not near zero numbers.
309
310         https://bugs.webkit.org/show_bug.cgi?id=120492
311         <rdar://problem/13738935> Incrementing and decrementing numbers near zero is annoying compared to earlier releases
312
313         Reviewed by Joseph Pecoraro.
314
315         * UserInterface/CodeMirrorAdditions.js:
316         (alterNumber): Remove near zero check.
317
318 2013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
319
320         Web Inspector: Download Web Archive of Inspected Page
321         https://bugs.webkit.org/show_bug.cgi?id=119774
322
323         Reviewed by Timothy Hatcher.
324
325         * UserInterface/ContentBrowser.js:
326         (WebInspector.ContentBrowser.prototype._saveDataToFile):
327         Allow a custom save handler which will do all the work.
328
329         * UserInterface/DOMTreeContentView.js:
330         (WebInspector.DOMTreeContentView):
331         (WebInspector.DOMTreeContentView.prototype.get supportsSave):
332         (WebInspector.DOMTreeContentView.prototype.get saveData.saveHandler):
333         (WebInspector.DOMTreeContentView.prototype.get saveData):
334         Allow Save keyboard shortcut to download an archive viewing the DOM Tree.
335
336         * UserInterface/ResourceTreeElement.js:
337         (WebInspector.ResourceTreeElement.prototype._updateStatus):
338         * UserInterface/FrameTreeElement.js:
339         (WebInspector.FrameTreeElement):
340         (WebInspector.FrameTreeElement.prototype.updateStatusForMainFrame):
341         (WebInspector.FrameTreeElement.prototype._mainResourceDidChange):
342         (WebInspector.FrameTreeElement.prototype._shouldGroupIntoFolders):
343         (WebInspector.FrameTreeElement.prototype._reloadPageClicked):
344         (WebInspector.FrameTreeElement.prototype._downloadButtonClicked):
345         (WebInspector.FrameTreeElement.prototype._updateDownloadButton):
346         (WebInspector.FrameTreeElement.prototype._pageArchiveStarted):
347         (WebInspector.FrameTreeElement.prototype._pageArchiveEnded):
348         Move handling of main frame TreeElement buttons to FrameTreeElement.
349         Add a Download button, and enable/disable it appropriately.
350
351         * UserInterface/ResourceTreeElement.css:
352         * UserInterface/TreeElementStatusButton.css: Copied from Source/WebInspectorUI/UserInterface/ResourceTreeElement.css.
353         (.item > .status > .status-button):
354         (.item > .status > .status-button > svg *):
355         (.item.selected > .status > .status-button > svg *):
356         (.item.selected > .status > .status-button:active > svg *):
357         (.item > .status > .status-button.disabled > svg *):
358         (.item.selected > .status > .status-button.disabled > svg *):
359         * UserInterface/TreeElementStatusButton.js: Added.
360         (WebInspector.TreeElementStatusButton):
361         (WebInspector.TreeElementStatusButton.prototype.get element):
362         (WebInspector.TreeElementStatusButton.prototype.get hidden):
363         (WebInspector.TreeElementStatusButton.prototype.set hidden):
364         (WebInspector.TreeElementStatusButton.prototype.get enabled):
365         (WebInspector.TreeElementStatusButton.prototype.set enabled):
366         (WebInspector.TreeElementStatusButton.prototype._clicked):
367         Make buttons in the TreeElement status a generic class to share styling
368         and handling of the buttons. New "disabled" state with even more
369         transparent is used when the page is downloading.
370
371         * UserInterface/Main.html:
372         * UserInterface/Main.js:
373         (WebInspector.archiveMainFrame):
374         (WebInspector.canArchiveMainFrame):
375         Generic API for archiving the page and determining if you can archive it.
376
377         * UserInterface/InspectorBackendCommands.js:
378         * UserInterface/InspectorFrontendHostStub.js:
379         (.WebInspector.InspectorFrontendHostStub.prototype.save):
380         * UserInterface/Images/DownloadArrow.svg: Added.
381         * Localizations/en.lproj/localizedStrings.js:
382         Misc. updates and new files.
383
384 2013-08-28  Joseph Pecoraro  <pecoraro@apple.com>
385
386         Web Inspector: Give reload icon an :active state and allow CSS to style some SVG images
387         https://bugs.webkit.org/show_bug.cgi?id=120384
388
389         Reviewed by Timothy Hatcher.
390
391         The Reload icon is duplicated just to provide different fill colors.
392         Convert from using <img> to an <svg> document for this image, and style
393         it with CSS. This also makes it trivial to add an :active state.
394
395         * UserInterface/ImageUtilities.js:
396         (.invokeCallbackWithDocument):
397         (.imageLoad):
398         (.imageError):
399         (wrappedSVGDocument):
400         Helpers for downloading and in memory caching SVG images.
401
402         * UserInterface/Images/Reload.svg:
403         * UserInterface/Images/ReloadSelected.svg: Removed.
404         Updated Reload image better matches the original design (slightly
405         larger). And the duplicate image can be removed.
406
407         * UserInterface/ResourceTreeElement.css:
408         (.item.resource > .status > .reload-button):
409         (.item.resource > .status > .reload-button > svg *):
410         (.item.resource.selected > .status > .reload-button > svg *):
411         (.item.resource.selected > .status > .reload-button:active > svg *):
412         Different styles, including a new :active style.
413
414         * UserInterface/ResourceTreeElement.js:
415         (WebInspector.ResourceTreeElement.prototype._updateStatusWithMainFrameButtons):
416         (WebInspector.ResourceTreeElement.prototype._updateStatus):
417         Handle updating the main frame's state asynchronously since loading the SVG
418         image document is asynchronous.
419
420 2013-08-27  Joseph Pecoraro  <pecoraro@apple.com>
421
422         Web Inspector: Debugger should have Continue to Here Context Menu
423         https://bugs.webkit.org/show_bug.cgi?id=120189
424
425         Reviewed by Timothy Hatcher.
426
427         When paused in the debugger and presenting a Context Menu in the
428         gutter, include a "Continue to Here" option. This requires a
429         script/line/column location combination.
430
431         * UserInterface/DebuggerManager.js:
432         (WebInspector.DebuggerManager.prototype.continueToLocation):
433         * UserInterface/Resource.js:
434         (WebInspector.Resource.prototype.scriptForLocation):
435         * UserInterface/SourceCodeTextEditor.js:
436         (WebInspector.SourceCodeTextEditor.prototype.continueToLocation):
437         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
438
439 2013-08-26  Joseph Pecoraro  <pecoraro@apple.com>
440
441         Web Inspector: We should regenerate InspectorBackendCommands.js for Legacy Inspector.json versions
442         https://bugs.webkit.org/show_bug.cgi?id=120242
443
444         Reviewed by Timothy Hatcher.
445
446         - Include the iOS 6.0 Inspector.json which maps to Legacy/6.0/InspectorBackendCommands.js.
447         - Provide a helper script to regenerate the backend commands file for trunk and Versions.
448         - Regenerated file now includes enums and other minor changes.
449
450         * Scripts/update-InspectorBackendCommands.rb: Added.
451         * UserInterface/InspectorBackendCommands.js:
452         * UserInterface/Legacy/6.0/InspectorBackendCommands.js:
453         * Versions/Inspector-iOS-6.0.json: Added.
454
455 2013-08-24  Joseph Pecoraro  <pecoraro@apple.com>
456
457         Web Inspector: Breakpoints in the editors gutter should have a contextmenu
458         https://bugs.webkit.org/show_bug.cgi?id=120169
459
460         Reviewed by Timothy Hatcher.
461
462         Updated CodeMirror now has a gutterContextMenu event. Use that to give
463         breakpoint related context menus. Add, Edit, Enable/Disable, Delete, and
464         Reveal in Debugger Navigation Sidebar.
465
466         * Localizations/en.lproj/localizedStrings.js:
467         "Add Breakpoint", and "Reveal in Debugger Navigation Sidebar".
468
469         * UserInterface/SourceCodeTextEditor.js:
470         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.addBreakpoint):
471         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.revealInSidebar):
472         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.removeBreakpoints):
473         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.toggleBreakpoints):
474         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
475         Show a context menu when clicking on the gutter for 0 breakpoints,
476         1 breakpoint, or >1 breakpoints. The only tricky handler is addBreakpoint,
477         since that must update the TextEditor for the new breakpoint info.
478
479         * UserInterface/TextEditor.js:
480         (WebInspector.TextEditor):
481         (WebInspector.TextEditor.prototype._gutterContextMenu):
482         Send to delegate if the delegate implements textEditorGutterContextMenu.
483
484 2013-08-23  Joseph Pecoraro  <pecoraro@apple.com>
485
486         Web Inspector: Fix js minification of updated CodeMirror
487         https://bugs.webkit.org/show_bug.cgi?id=120231
488
489         Reviewed by Andy Estes.
490
491         Workaround a jsmin issue with "return //.test();" lines when
492         minifying JavaScript in production builds.
493
494         * Scripts/copy-user-interface-resources.sh:
495         * UserInterface/External/CodeMirror/codemirror.js:
496         (window.CodeMirror):
497
498 2013-08-22  Joseph Pecoraro  <pecoraro@apple.com>
499
500         <https://webkit.org/b/120165> Web Inspector: Update CodeMirror to 3.16.1
501
502         Reviewed by Andy Estes.
503
504         * Tools/PrettyPrinting/codemirror.css:
505         * Tools/PrettyPrinting/codemirror.js:
506         * Tools/PrettyPrinting/css.js:
507         * Tools/PrettyPrinting/javascript.js:
508         * UserInterface/External/CodeMirror/codemirror.css:
509         * UserInterface/External/CodeMirror/codemirror.js:
510         * UserInterface/External/CodeMirror/css.js:
511         * UserInterface/External/CodeMirror/javascript.js:
512         * UserInterface/External/CodeMirror/xml.js:
513
514 2013-08-21  Brent Fulgham  <bfulgham@apple.com>
515
516         [Windows] Clean up project file after %PlatformArchitecture% change landed.
517
518         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Remove hard-coded settings covered
519         by our configuration files.
520         * WebInspectorUI.vcxproj/WebInspectorUIPostBuild.cmd: Use the %PlatformArchitecture%
521         macro to support 32- and 64-bit builds.
522
523 2013-08-20  Brent Fulgham  <bfulgham@apple.com>
524
525         <http://webkit.org/b/120098> [Windows] Enable the New Web Inspector
526
527         Reviewed by Brian Weinstein.
528
529         Add a new project to copy files to the appropriate spots in the
530         Windows port.
531
532         * WebInspectorUI.vcxproj: Added.
533         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Added.
534         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters: Added.
535         * WebInspectorUI.vcxproj/WebInspectorUIPostBuild.cmd: Added.
536         * WebInspectorUI.vcxproj/WebInspectorUIPreBuild.cmd: Added.
537
538 2013-08-19  James Craig  <james@cookiecrook.com>
539
540         <https://webkit.org/b/118106> Web Inspector: AX: Add additional contextual labels for Error/Warnings/Logs that will be spoken for screen readers
541
542         Reviewed by Joseph Pecoraro.
543
544         Changed general console "Output" string to more specific "Error", "Warning", etc for accessibility.
545
546         * Localizations/en.lproj/localizedStrings.js:
547         * UserInterface/ConsoleCommandResult.js:
548         * UserInterface/ConsoleMessageImpl.js:
549
550 2013-08-16  James Craig  <james@cookiecrook.com>
551
552         <https://webkit.org/b/118105> Web Inspector: AX: Add support for ARIA tablists/tabs to inspector tabs
553
554         Reviewed by Joseph Pecoraro.
555
556         Updating accessibility roles and attributes for single-select toolbar item sets.
557
558         * UserInterface/ActivateButtonNavigationItem.js:
559         (WebInspector.ActivateButtonNavigationItem):
560         (WebInspector.ActivateButtonNavigationItem.prototype.set activated):
561         * UserInterface/ActivateButtonToolbarItem.js:
562         (WebInspector.ActivateButtonToolbarItem):
563         * UserInterface/ButtonToolbarItem.js:
564         (WebInspector.ButtonToolbarItem):
565         * UserInterface/SidebarPanel.js:
566         (WebInspector.SidebarPanel):
567         * UserInterface/Toolbar.js:
568         (WebInspector.Toolbar):
569
570 2013-08-13  Dean Jackson  <dino@apple.com>
571
572         <https://webkit.org/b/119778> Add Canvas protocol observer
573
574         Reviewed by Joseph Pecoraro.
575
576         In preparation for listening to backend events about canvas profiling,
577         add a canvas observer.
578
579         * UserInterface/CanvasObserver.js: New empty CanvasObserver object.
580         (WebInspector.CanvasObserver):
581         (WebInspector.CanvasObserver.prototype.contextCreated):
582         (WebInspector.CanvasObserver.prototype.traceLogsRemoved):
583         * UserInterface/Main.html:
584         * UserInterface/Main.js:
585         (WebInspector.loaded):
586
587 2013-08-11  Dean Jackson  <dino@apple.com>
588
589         Update localizedStrings - I think I checked in an unmerged version
590         in the previous commit.
591
592         * Localizations/en.lproj/localizedStrings.js:
593
594 2013-08-11  Dean Jackson  <dino@apple.com>
595
596         Bootstrap canvas profiler
597         https://bugs.webkit.org/show_bug.cgi?id=119652
598         <rdar://problem/14703665>
599
600         Reviewed by Joseph Pecoraro.
601
602         Add enough to get an empty Canvas profile recording
603         and displayed.
604
605         * Localizations/en.lproj/localizedStrings.js: Add canvas strings.
606         * UserInterface/CanvasProfileObject.js: Added. Mostly copied from CSS Selector Profiles.
607         * UserInterface/CanvasProfileType.js: Added. Ditto.
608         * UserInterface/CanvasDataGridNode.js: Added. Ditto.
609         * UserInterface/CanvasProfileView.js: Added. Ditto.
610         * UserInterface/ContentView.js:
611         (WebInspector.ContentView): Add support for the new View type.
612         (WebInspector.ContentView.isViewable):
613         * UserInterface/InstrumentSidebarPanel.js:
614         (WebInspector.InstrumentSidebarPanel): Add support for canvas profiles.
615         (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphMousedOver):
616         (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphMousedDown):
617         (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphClicked):
618         (WebInspector.InstrumentSidebarPanel.prototype._profileTypeWasSelected):
619         (WebInspector.InstrumentSidebarPanel.prototype._profilesCleared):
620         * UserInterface/Main.html: Load the new files.
621         * UserInterface/ProfileManager.js: New methods and support for canvas profiles.
622         (WebInspector.ProfileManager):
623         (WebInspector.ProfileManager.prototype.initialize):
624         (WebInspector.ProfileManager.prototype.isProfilingCanvas):
625         (WebInspector.ProfileManager.prototype.startProfilingCanvas):
626         (WebInspector.ProfileManager.prototype.stopProfilingCanvas):
627         (WebInspector.ProfileManager.prototype._checkForInterruptions):
628         (WebInspector.ProfileManager.prototype._attemptToResumeProfiling):
629
630 2013-08-07  Timothy Hatcher  <timothy@apple.com>
631
632         Switch the generated images off of PDFs and onto SVGs now that bug 119492 is fixed.
633
634         https://bugs.webkit.org/show_bug.cgi?id=118677
635
636         Reviewed by Joseph Pecoraro.
637
638         * UserInterface/ApplicationCacheDetailsSidebarPanel.js:
639         (WebInspector.ApplicationCacheDetailsSidebarPanel):
640         * UserInterface/CSSStyleDeclarationSection.js:
641         (WebInspector.CSSStyleDeclarationSection):
642         * UserInterface/CSSStyleDetailsSidebarPanel.js:
643         (WebInspector.CSSStyleDetailsSidebarPanel):
644         * UserInterface/ContentBrowser.js:
645         (WebInspector.ContentBrowser):
646         * UserInterface/DOMNodeDetailsSidebarPanel.js:
647         (WebInspector.DOMNodeDetailsSidebarPanel):
648         * UserInterface/DOMTreeContentView.js:
649         (WebInspector.DOMTreeContentView):
650         * UserInterface/DataGrid.js:
651         (WebInspector.DataGrid.prototype._generateSortIndicatorImagesIfNeeded):
652         * UserInterface/DebuggerSidebarPanel.js:
653         (WebInspector.DebuggerSidebarPanel):
654         * UserInterface/DetailsSection.js:
655         (WebInspector.DetailsSection.prototype._generateDisclosureTrianglesIfNeeded):
656         * UserInterface/FindBanner.js:
657         (WebInspector.FindBanner.prototype._generateButtonsGlyphsIfNeeded):
658         * UserInterface/Images/BackArrow.pdf: Removed.
659         * UserInterface/Images/BottomUpTree.pdf: Removed.
660         * UserInterface/Images/Breakpoints.pdf: Removed.
661         * UserInterface/Images/Close.pdf: Removed.
662         * UserInterface/Images/Crosshair.pdf: Removed.
663         * UserInterface/Images/DisclosureTriangleSmallClosed.pdf: Removed.
664         * UserInterface/Images/DisclosureTriangleSmallOpen.pdf: Removed.
665         * UserInterface/Images/DisclosureTriangleTinyClosed.pdf: Removed.
666         * UserInterface/Images/DisclosureTriangleTinyOpen.pdf: Removed.
667         * UserInterface/Images/DockBottom.pdf: Removed.
668         * UserInterface/Images/DockRight.pdf: Removed.
669         * UserInterface/Images/ForwardArrow.pdf: Removed.
670         * UserInterface/Images/GoToArrow.pdf: Removed.
671         * UserInterface/Images/LayerBorders.pdf: Removed.
672         * UserInterface/Images/LessColumns.pdf: Removed.
673         * UserInterface/Images/Locked.pdf: Removed.
674         * UserInterface/Images/MoreColumns.pdf: Removed.
675         * UserInterface/Images/NavigationItemAngleBrackets.pdf: Removed.
676         * UserInterface/Images/NavigationItemBrushAndRuler.pdf: Removed.
677         * UserInterface/Images/NavigationItemBug.pdf: Removed.
678         * UserInterface/Images/NavigationItemCurleyBraces.pdf: Removed.
679         * UserInterface/Images/NavigationItemFile.pdf: Removed.
680         * UserInterface/Images/NavigationItemLayers.pdf: Removed.
681         * UserInterface/Images/NavigationItemLog.pdf: Removed.
682         * UserInterface/Images/NavigationItemMagnifyingGlass.pdf: Removed.
683         * UserInterface/Images/NavigationItemStopwatch.pdf: Removed.
684         * UserInterface/Images/NavigationItemStorage.pdf: Removed.
685         * UserInterface/Images/NavigationItemTrash.pdf: Removed.
686         * UserInterface/Images/NavigationItemVariable.pdf: Removed.
687         * UserInterface/Images/Pause.pdf: Removed.
688         * UserInterface/Images/Percent.pdf: Removed.
689         * UserInterface/Images/Plus.pdf: Removed.
690         * UserInterface/Images/Resume.pdf: Removed.
691         * UserInterface/Images/ShadowDOM.pdf: Removed.
692         * UserInterface/Images/SortIndicatorDownArrow.pdf: Removed.
693         * UserInterface/Images/SortIndicatorUpArrow.pdf: Removed.
694         * UserInterface/Images/SplitToggleDown.pdf: Removed.
695         * UserInterface/Images/SplitToggleUp.pdf: Removed.
696         * UserInterface/Images/StepInto.pdf: Removed.
697         * UserInterface/Images/StepOut.pdf: Removed.
698         * UserInterface/Images/StepOver.pdf: Removed.
699         * UserInterface/Images/Undock.pdf: Removed.
700         * UserInterface/InstrumentSidebarPanel.js:
701         (WebInspector.InstrumentSidebarPanel):
702         * UserInterface/JavaScriptProfileView.js:
703         (WebInspector.JavaScriptProfileView):
704         * UserInterface/LayerTreeSidebarPanel.js:
705         (WebInspector.LayerTreeSidebarPanel):
706         * UserInterface/LogContentView.js:
707         (WebInspector.LogContentView):
708         * UserInterface/Main.js:
709         (WebInspector.contentLoaded):
710         (WebInspector._updateDockNavigationItems):
711         (WebInspector._generateDisclosureTriangleImages):
712         * UserInterface/NavigationSidebarPanel.js:
713         (WebInspector.NavigationSidebarPanel.prototype._generateDisclosureTrianglesIfNeeded):
714         * UserInterface/ProfileView.js:
715         (WebInspector.ProfileView):
716         * UserInterface/ResourceDetailsSidebarPanel.js:
717         (WebInspector.ResourceDetailsSidebarPanel):
718         * UserInterface/ResourceSidebarPanel.js:
719         (WebInspector.ResourceSidebarPanel):
720         * UserInterface/ScopeChainDetailsSidebarPanel.js:
721         (WebInspector.ScopeChainDetailsSidebarPanel):
722         * UserInterface/ScriptContentView.js:
723         (WebInspector.ScriptContentView):
724         * UserInterface/TextContentView.js:
725         (WebInspector.TextContentView):
726         * UserInterface/TextResourceContentView.js:
727         (WebInspector.TextResourceContentView):
728         * UserInterface/TimelinesContentView.js:
729
730 2013-08-08  Dean Jackson  <dino@apple.com>
731
732         Remove use of prefixed transition event
733         https://bugs.webkit.org/show_bug.cgi?id=119598
734
735         Reviewed by Joseph Pecoraro.
736
737         "webkitTransitionEnd" -> "transitionend".
738
739         * UserInterface/Popover.js:
740         (WebInspector.Popover):
741         (WebInspector.Popover.prototype.handleEvent):
742
743 2013-08-08  Dean Jackson  <dino@apple.com>
744
745         Unprefix use of transitions in Web Inspector code
746         https://bugs.webkit.org/show_bug.cgi?id=119588
747
748         Reviewed by Tim Hatcher.
749
750         Replace "-webkit-transition" with "transition".
751
752         * UserInterface/CSSCompletions.js:
753         (WebInspector.CSSCompletions.requestCSSNameCompletions.collectPropertyNameForCodeMirror):
754         * UserInterface/FindBanner.css:
755         (.find-banner):
756         (.find-banner.showing):
757         (.supports-find-banner.no-find-banner-transition):
758         (.supports-find-banner):
759         (.supports-find-banner.showing-find-banner):
760         * UserInterface/NetworkTimeline.css:
761         (.network-graph-side:hover .network-graph-label):
762         * UserInterface/Popover.css:
763         (.popover.fade-out):
764
765 2013-08-08  Vivek Galatage  <vivek.vg@samsung.com>
766
767         Web Inspector: Use granular DOMStorage modification events to avoid complete DataGrid update.
768         https://bugs.webkit.org/show_bug.cgi?id=119541
769
770         Reviewed by Joseph Pecoraro.
771
772         InspectorDOMStorageAgent sends more granular events about the storage modifications.
773         Using these would avoid the complete rebuilding of the DataGrid.
774
775         * UserInterface/DOMStorageContentView.js:
776         (WebInspector.DOMStorageContentView.prototype.itemsCleared):
777         (WebInspector.DOMStorageContentView.prototype.itemRemoved):
778         (WebInspector.DOMStorageContentView.prototype.itemAdded):
779         (WebInspector.DOMStorageContentView.prototype.itemUpdated):
780         * UserInterface/DOMStorageObserver.js:
781         (WebInspector.DOMStorageObserver.prototype.domStorageItemsCleared):
782         (WebInspector.DOMStorageObserver.prototype.domStorageItemRemoved):
783         (WebInspector.DOMStorageObserver.prototype.domStorageItemAdded):
784         (WebInspector.DOMStorageObserver.prototype.domStorageItemUpdated):
785         * UserInterface/StorageManager.js:
786         (WebInspector.StorageManager.prototype.domStorageItemsCleared):
787         (WebInspector.StorageManager.prototype.domStorageItemRemoved):
788         (WebInspector.StorageManager.prototype.domStorageItemAdded):
789         (WebInspector.StorageManager.prototype.domStorageItemUpdated):
790
791 2013-08-06  Joseph Pecoraro  <pecoraro@apple.com>
792
793         Web Inspector: Remove stale code in ResourceContentView
794         https://bugs.webkit.org/show_bug.cgi?id=119527
795
796         The handling of Resource Type changes moved to ResourceClusterContentView,
797         this removeEventListener is stale and doesn't do anything anymore.
798
799         Reviewed by Timothy Hatcher.
800
801         * UserInterface/ResourceContentView.js:
802         (WebInspector.ResourceContentView.prototype.closed):
803
804 2013-08-06  Timothy Hatcher  <timothy@apple.com>
805
806         Convert all Web Inspector PDFs to SVGs.
807
808         Some PDFs need to stay around until bug 119492 is fixed. But the SVGs are there for when they are needed.
809         Updated some of the existing SVGs to be consistent with the format of the new SVGs.
810
811         https://bugs.webkit.org/show_bug.cgi?id=118677
812
813         Rubber-stamped by Joseph Pecoraro.
814
815         * UserInterface/BreakpointIcons.css:
816         * UserInterface/BreakpointTreeElement.css:
817         * UserInterface/CallFrameIcons.css:
818         * UserInterface/DatabaseContentView.css:
819         * UserInterface/FilterBar.css:
820         * UserInterface/HierarchicalPathComponent.css:
821         * UserInterface/Images/BackArrow.svg: Added.
822         * UserInterface/Images/BottomUpTree.svg: Added.
823         * UserInterface/Images/BreakpointButton.pdf: Removed.
824         * UserInterface/Images/BreakpointButton.svg: Added.
825         * UserInterface/Images/BreakpointInactiveButton.pdf: Removed.
826         * UserInterface/Images/BreakpointInactiveButton.svg: Added.
827         * UserInterface/Images/Breakpoints.svg: Added.
828         * UserInterface/Images/Close.svg: Added.
829         * UserInterface/Images/Crosshair.svg: Added.
830         * UserInterface/Images/DOMCharacterData.pdf: Removed.
831         * UserInterface/Images/DOMCharacterData.svg: Added.
832         * UserInterface/Images/DOMComment.pdf: Removed.
833         * UserInterface/Images/DOMComment.svg: Added.
834         * UserInterface/Images/DOMDocument.pdf: Removed.
835         * UserInterface/Images/DOMDocument.svg: Added.
836         * UserInterface/Images/DOMDocumentType.pdf: Removed.
837         * UserInterface/Images/DOMDocumentType.svg: Added.
838         * UserInterface/Images/DOMElement.pdf: Removed.
839         * UserInterface/Images/DOMElement.svg: Added.
840         * UserInterface/Images/DOMNode.pdf: Removed.
841         * UserInterface/Images/DOMNode.svg: Added.
842         * UserInterface/Images/DOMTextNode.pdf: Removed.
843         * UserInterface/Images/DOMTextNode.svg: Added.
844         * UserInterface/Images/DOMTree.pdf: Removed.
845         * UserInterface/Images/DOMTree.svg: Added.
846         * UserInterface/Images/DisclosureTriangleSmallClosed.svg: Added.
847         * UserInterface/Images/DisclosureTriangleSmallOpen.svg: Added.
848         * UserInterface/Images/DisclosureTriangleTinyClosed.svg: Added.
849         * UserInterface/Images/DisclosureTriangleTinyOpen.svg: Added.
850         * UserInterface/Images/DockBottom.svg: Added.
851         * UserInterface/Images/DockRight.svg: Added.
852         * UserInterface/Images/Error.pdf: Removed.
853         * UserInterface/Images/Error.svg: Added.
854         * UserInterface/Images/ErrorSmall.pdf: Removed.
855         * UserInterface/Images/Errors.svg:
856         * UserInterface/Images/ErrorsEnabled.svg:
857         * UserInterface/Images/EventListener.pdf: Removed.
858         * UserInterface/Images/EventListener.svg: Added.
859         * UserInterface/Images/Exception.pdf: Removed.
860         * UserInterface/Images/Exception.svg: Added.
861         * UserInterface/Images/FilterFieldGlyph.pdf: Removed.
862         * UserInterface/Images/FilterFieldGlyph.svg: Added.
863         * UserInterface/Images/ForwardArrow.svg: Added.
864         * UserInterface/Images/Function.pdf: Removed.
865         * UserInterface/Images/Function.svg: Added.
866         * UserInterface/Images/GoToArrow.svg: Added.
867         * UserInterface/Images/HierarchicalNavigationItemChevron.pdf: Removed.
868         * UserInterface/Images/HierarchicalNavigationItemChevron.svg: Added.
869         * UserInterface/Images/IndeterminateProgressSpinner1.pdf: Removed.
870         * UserInterface/Images/IndeterminateProgressSpinner1.svg: Added.
871         * UserInterface/Images/IndeterminateProgressSpinner10.pdf: Removed.
872         * UserInterface/Images/IndeterminateProgressSpinner10.svg: Added.
873         * UserInterface/Images/IndeterminateProgressSpinner11.pdf: Removed.
874         * UserInterface/Images/IndeterminateProgressSpinner11.svg: Added.
875         * UserInterface/Images/IndeterminateProgressSpinner12.pdf: Removed.
876         * UserInterface/Images/IndeterminateProgressSpinner12.svg: Added.
877         * UserInterface/Images/IndeterminateProgressSpinner2.pdf: Removed.
878         * UserInterface/Images/IndeterminateProgressSpinner2.svg: Added.
879         * UserInterface/Images/IndeterminateProgressSpinner3.pdf: Removed.
880         * UserInterface/Images/IndeterminateProgressSpinner3.svg: Added.
881         * UserInterface/Images/IndeterminateProgressSpinner4.pdf: Removed.
882         * UserInterface/Images/IndeterminateProgressSpinner4.svg: Added.
883         * UserInterface/Images/IndeterminateProgressSpinner5.pdf: Removed.
884         * UserInterface/Images/IndeterminateProgressSpinner5.svg: Added.
885         * UserInterface/Images/IndeterminateProgressSpinner6.pdf: Removed.
886         * UserInterface/Images/IndeterminateProgressSpinner6.svg: Added.
887         * UserInterface/Images/IndeterminateProgressSpinner7.pdf: Removed.
888         * UserInterface/Images/IndeterminateProgressSpinner7.svg: Added.
889         * UserInterface/Images/IndeterminateProgressSpinner8.pdf: Removed.
890         * UserInterface/Images/IndeterminateProgressSpinner8.svg: Added.
891         * UserInterface/Images/IndeterminateProgressSpinner9.pdf: Removed.
892         * UserInterface/Images/IndeterminateProgressSpinner9.svg: Added.
893         * UserInterface/Images/Issues.svg:
894         * UserInterface/Images/IssuesEnabled.svg:
895         * UserInterface/Images/LayerBorders.svg: Added.
896         * UserInterface/Images/LessColumns.svg: Added.
897         * UserInterface/Images/Locked.svg: Added.
898         * UserInterface/Images/Logs.svg:
899         * UserInterface/Images/Memory.svg:
900         * UserInterface/Images/MoreColumns.svg: Added.
901         * UserInterface/Images/Native.pdf: Removed.
902         * UserInterface/Images/Native.svg: Added.
903         * UserInterface/Images/NavigationItemAngleBrackets.svg: Added.
904         * UserInterface/Images/NavigationItemBrushAndRuler.svg: Added.
905         * UserInterface/Images/NavigationItemBug.svg: Added.
906         * UserInterface/Images/NavigationItemCurleyBraces.svg: Added.
907         * UserInterface/Images/NavigationItemFile.svg: Added.
908         * UserInterface/Images/NavigationItemLayers.svg: Added.
909         * UserInterface/Images/NavigationItemLog.svg: Added.
910         * UserInterface/Images/NavigationItemMagnifyingGlass.svg: Added.
911         * UserInterface/Images/NavigationItemStopwatch.svg: Added.
912         * UserInterface/Images/NavigationItemStorage.svg: Added.
913         * UserInterface/Images/NavigationItemTrash.svg: Added.
914         * UserInterface/Images/NavigationItemVariable.svg: Added.
915         * UserInterface/Images/NetworkBarLabelCalloutLeft.pdf: Removed.
916         * UserInterface/Images/NetworkBarLabelCalloutLeft.svg: Added.
917         * UserInterface/Images/NetworkBarLabelCalloutRight.pdf: Removed.
918         * UserInterface/Images/NetworkBarLabelCalloutRight.svg: Added.
919         * UserInterface/Images/NetworkBarLabelCalloutWhiteLeft.pdf: Removed.
920         * UserInterface/Images/NetworkBarLabelCalloutWhiteLeft.svg: Added.
921         * UserInterface/Images/NetworkBarLabelCalloutWhiteRight.pdf: Removed.
922         * UserInterface/Images/NetworkBarLabelCalloutWhiteRight.svg: Added.
923         * UserInterface/Images/Pause.svg: Added.
924         * UserInterface/Images/Percent.svg: Added.
925         * UserInterface/Images/Plus.svg: Added.
926         * UserInterface/Images/PseudoElement.pdf: Removed.
927         * UserInterface/Images/PseudoElement.svg: Added.
928         * UserInterface/Images/Reflection.pdf: Removed.
929         * UserInterface/Images/Reflection.svg: Added.
930         * UserInterface/Images/Reload.svg:
931         * UserInterface/Images/ReloadSelected.svg:
932         * UserInterface/Images/Request.pdf: Removed.
933         * UserInterface/Images/Request.svg: Added.
934         * UserInterface/Images/Resources.svg:
935         * UserInterface/Images/Response.pdf: Removed.
936         * UserInterface/Images/Response.svg: Added.
937         * UserInterface/Images/ResultLine.pdf: Removed.
938         * UserInterface/Images/ResultLine.svg: Added.
939         * UserInterface/Images/Resume.svg: Added.
940         * UserInterface/Images/ShadowDOM.svg: Added.
941         * UserInterface/Images/SortIndicatorDownArrow.svg: Added.
942         * UserInterface/Images/SortIndicatorUpArrow.svg: Added.
943         * UserInterface/Images/SourceCode.pdf: Removed.
944         * UserInterface/Images/SourceCode.svg: Added.
945         * UserInterface/Images/SplitToggleDown.svg: Added.
946         * UserInterface/Images/SplitToggleUp.svg: Added.
947         * UserInterface/Images/StepInto.svg: Added.
948         * UserInterface/Images/StepOut.svg: Added.
949         * UserInterface/Images/StepOver.svg: Added.
950         * UserInterface/Images/StyleRuleAuthor.pdf: Removed.
951         * UserInterface/Images/StyleRuleAuthor.svg: Added.
952         * UserInterface/Images/StyleRuleInherited.pdf: Removed.
953         * UserInterface/Images/StyleRuleInherited.svg: Added.
954         * UserInterface/Images/StyleRuleInheritedElement.pdf: Removed.
955         * UserInterface/Images/StyleRuleInheritedElement.svg: Added.
956         * UserInterface/Images/StyleRuleInspector.pdf: Removed.
957         * UserInterface/Images/StyleRuleInspector.svg: Added.
958         * UserInterface/Images/StyleRuleUser.pdf: Removed.
959         * UserInterface/Images/StyleRuleUser.svg: Added.
960         * UserInterface/Images/StyleRuleUserAgent.pdf: Removed.
961         * UserInterface/Images/StyleRuleUserAgent.svg: Added.
962         * UserInterface/Images/Time.svg:
963         * UserInterface/Images/Undock.svg: Added.
964         * UserInterface/Images/UpDownArrows.svg:
965         * UserInterface/Images/UserInputPrompt.pdf: Removed.
966         * UserInterface/Images/UserInputPrompt.svg: Added.
967         * UserInterface/Images/UserInputPromptPrevious.pdf: Removed.
968         * UserInterface/Images/UserInputPromptPrevious.svg: Added.
969         * UserInterface/Images/UserInputPromptPreviousSelected.pdf: Removed.
970         * UserInterface/Images/UserInputPromptPreviousSelected.svg: Added.
971         * UserInterface/Images/UserInputResult.pdf: Removed.
972         * UserInterface/Images/UserInputResult.svg: Added.
973         * UserInterface/Images/UserInputResultSelected.pdf: Removed.
974         * UserInterface/Images/UserInputResultSelected.svg: Added.
975         * UserInterface/Images/Warning.pdf: Removed.
976         * UserInterface/Images/Warning.svg: Added.
977         * UserInterface/Images/WarningSmall.pdf: Removed.
978         * UserInterface/Images/Weight.svg:
979         * UserInterface/IndeterminateProgressSpinner.css:
980         * UserInterface/LayerTreeSidebarPanel.css:
981         * UserInterface/LogContentView.css:
982         * UserInterface/Main.css:
983         * UserInterface/NetworkTimeline.css:
984         * UserInterface/PathComponentIcons.css:
985         * UserInterface/QuickConsole.css:
986         * UserInterface/RulesStyleDetailsPanel.css:
987         * UserInterface/SearchIcons.css:
988         * UserInterface/StyleRuleIcons.css:
989
990 2013-07-23  David Farler  <dfarler@apple.com>
991
992         Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
993         https://bugs.webkit.org/show_bug.cgi?id=117762
994
995         Reviewed by Mark Rowe.
996
997         * Configurations/DebugRelease.xcconfig:
998         Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
999
1000 2013-07-30  Roland Tak√°cs  <rtakacs@inf.u-szeged.hu>
1001
1002         Web Inspector: doesn't use localized user interface at remote inspector
1003         https://bugs.webkit.org/show_bug.cgi?id=119252
1004
1005         Reviewed by Timothy Hatcher.
1006
1007         Added a flag in order to not use localizedStrings in remote inspector.
1008
1009         * UserInterface/InspectorFrontendHostStub.js:
1010         * UserInterface/LoadLocalizedStrings.js:
1011         * UserInterface/Main.js:
1012         (WebInspector.UIString):
1013
1014 2013-07-24  Antoine Quint  <graouts@apple.com>
1015
1016         Web Inspector: control+clicking on a numeric token should not show the context menu
1017         https://bugs.webkit.org/show_bug.cgi?id=119048
1018
1019         Reviewed by Timothy Hatcher.
1020
1021         Track "contextmenu" events when we're hovering a token containing a numeric value
1022         and call preventDefault() in the event handler to ensure that the context menu does
1023         not appear.
1024
1025         * UserInterface/CodeMirrorDragToAlterNumberController.js:
1026         (WebInspector.CodeMirrorDragToAlterNumberController.prototype.handleEvent):
1027         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setTracksMouseClickAndDrag):
1028
1029 2013-07-24  Antoine Quint  <graouts@apple.com>
1030
1031         Web Inspector: support click-and-drag editing of CSS numeric values
1032         https://bugs.webkit.org/show_bug.cgi?id=118896
1033
1034         Reviewed by Timothy Hatcher.
1035
1036         Add support for adjustment of numeric values in the various CodeMirror editors
1037         by holding the option key and dragging the mouse. By default, dragging one pixel
1038         changes the value by 1, but key modifiers allow to customize that behavior by using
1039         the control key to change the value to 0.1 and the shift key to change the value to 10.
1040
1041         * UserInterface/CodeMirrorAdditions.js:
1042         Split adjustNumber() into two methods such that we may use its logic from the
1043         CodeMirrorDragToAlterNumberController. The new method, CodeMirror.prototype.alterNumberInRange()
1044         allow to set begin and end CodeMirror positions such that the existing alterNumber()
1045         can use information based on the current cursor position, and CodeMirrorDragToAlterNumberController
1046         can use information based on the hovered token.
1047
1048         * UserInterface/CodeMirrorDragToAlterNumberController.css: Added.
1049         (.CodeMirror.drag-to-adjust .CodeMirror-lines):
1050         Set the cursor to "col-resize" when a number token is hovered and the option key
1051         modifier is pressed.
1052
1053         * UserInterface/CodeMirrorDragToAlterNumberController.js: Added.
1054         (WebInspector.CodeMirrorDragToAlterNumberController):
1055         We define the new "dragToAdjustNumbers" CodeMirror option.
1056
1057         (WebInspector.CodeMirrorDragToAlterNumberController.prototype.set enabled):
1058         The "enabled" property controls whether the associated CodeMirror instance
1059         may act upon hovering numeric values to adjust them via a drag interaction.
1060
1061         (WebInspector.CodeMirrorDragToAlterNumberController.prototype.handleEvent):
1062         Proxy for various event-specific methods to deal with mouse events. We also bind
1063         the value of the "active" property to the "mouseenter" and "mouseleave" events
1064         if we're not currently dragging-to-adjust.
1065
1066         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setActive):
1067         The "active" property is set when the mouse is over the associated CodeMirror
1068         editor and when it's on we track all "mousemove" events such that we may
1069         identify tokens containing numeric values. We also start tracking changes to the
1070         option modifier key press state such that we may change the cursor accordingly.
1071         We ensure that the CodeMirror instance is not read-only such that we don't
1072         allow adjustment of numeric values in places where they couldn't be committed.
1073
1074         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setDragging):
1075         The "dragging" property reflects whether a dragging-to-adjust interaction
1076         is underway. We call into WebInspector.elementDragStart() and WebInspector.elementDragEnd()
1077         to set the cursor to "col-resize" for the whole document while tracking mousemove
1078         and mouseup events at the window level such that we can drag-to-adjust even outside
1079         of the inspector window.
1080
1081         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setTracksMouseClickAndDrag):
1082         The "tracksMouseClickAndDrag" property is set to true whenever the controller
1083         has detected that a token containing a numeric value is being hovered and the
1084         option modifier key is pressed. This property controls the cursor value for the
1085         hovered token to reflect that a drag-to-adjust interaction is allowed and tracks
1086         "mousedown" events for when a dragging interaction may be initiated.
1087
1088         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._modifiersDidChange):
1089         Sets the "tracksMouseClickAndDrag" property depending on the availability of a hovered
1090         token containing a numeric value and the pressed state of the option modified key.
1091
1092         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseMoved):
1093         Handles "mousemove" events when we're not in the "dragging" state such that we
1094         check the currently hovered token, if any, to see if it contains a number that
1095         we may drag-to-adjust. Subsequently, we may enter the "tracksMouseClickAndDrag"
1096         state.
1097
1098         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseWasPressed):
1099         Handles "mousedown" events during a drag-to-adjust interaction. We simply track
1100         the current mouse position in the x-axis and enter the "dragging" state.
1101
1102         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseWasDragged):
1103         Handles "mousemove" events when we are in the "dragging" state. We compare the
1104         current mouse position in the x-axis with the last recoreded value and determine
1105         the amount by which we should adjust the value, taking into account the shift and
1106         control modifier keys. We then call into WebInspector.alterNumberInRange() to
1107         apply the change amount to the associated CodeMirror editor.
1108
1109         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseWasReleased):
1110         Handles "mouseup" events, simply exiting the "dragging" state and resetting other
1111         parameters we would have customized as a result of the drag-to-adjust interaction.
1112
1113         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._reset):
1114         Resetting some parameters we would have customized as a result of the drag-to-adjust
1115         interaction.
1116
1117         * UserInterface/Main.html:
1118         Include the new CodeMirrorDragToAlterNumberController.{js|css} files.
1119
1120         * UserInterface/Main.js:
1121         (WebInspector.elementDragStart):
1122         (WebInspector.elementDragEnd):
1123         Add an extra parameter to elementDragStart() such that the caller may specify the event
1124         target for the "mousemove" and "mouseup" events.
1125
1126 2013-07-23  Roland Takacs  <rtakacs@inf.u-szeged.hu>
1127
1128         WebSocket initialization to use remote inspector
1129         https://bugs.webkit.org/show_bug.cgi?id=118678
1130
1131         Reviewed by Timothy Hatcher.
1132
1133         Add WebSocket initialization and define a 'connect-src' directive in the
1134         Content-Security-Policy HTTP header to enable the connection.
1135
1136         * UserInterface/InspectorFrontendHostStub.js:
1137         (.WebInspector.InspectorFrontendHostStub.prototype.sendMessageToBackend):
1138         * UserInterface/Main.html:
1139         * UserInterface/Main.js:
1140         (WebInspector.loaded):
1141         (WebInspector._initializeWebSocketIfNeeded.createSocket.WebInspector):
1142         (WebInspector._initializeWebSocketIfNeeded.createSocket):
1143         (WebInspector._initializeWebSocketIfNeeded):
1144
1145 2013-07-22  Diego Pino Garcia  <dpino@igalia.com>
1146
1147         Web Inspector: When right-clicking on a DataGrid column, show editing 
1148         menu option as "Edit <columnName>" instead of just "Edit"
1149         https://bugs.webkit.org/show_bug.cgi?id=118970
1150
1151         Reviewed by Timothy Hatcher.
1152
1153         * Localizations/en.lproj/localizedStrings.js: Add literal "Edit '%s'"
1154         * UserInterface/DataGrid.js: Change "Edit" for "Edit <columnTitle>"
1155         (WebInspector.DataGrid.prototype._contextMenuInDataTable):
1156
1157 2013-07-21  Seokju Kwon  <seokju.kwon@gmail.com>
1158
1159         Web Inspector: Cleanup InspectorFrontendHostStub.js
1160         https://bugs.webkit.org/show_bug.cgi?id=118959
1161
1162         Reviewed by Timothy Hatcher.
1163
1164         Remove some functions because we dont use on New Inspector.
1165
1166         * UserInterface/InspectorFrontendHostStub.js:
1167         (.WebInspector.InspectorFrontendHostStub):
1168         (.WebInspector.InspectorFrontendHostStub.prototype.save):
1169
1170 2013-07-17  Seokju Kwon  <seokju.kwon@gmail.com>
1171
1172         Web Inspector: Fix a typo in WebInspector.loaded
1173         https://bugs.webkit.org/show_bug.cgi?id=118834
1174
1175         Reviewed by Timothy Hatcher.
1176
1177         * UserInterface/Main.js:
1178         (WebInspector.loaded):
1179
1180 2013-07-16  Seokju Kwon  <seokju.kwon@gmail.com>
1181
1182         Web Inspector: InspectorFrontendHost is undefined
1183         https://bugs.webkit.org/show_bug.cgi?id=118715
1184
1185         Reviewed by Timothy Hatcher.
1186
1187         Add InspectorFrontendHostStub.js to New Inspector because of the InspectorFrontendHost initialization.
1188
1189         * UserInterface/InspectorFrontendHostStub.js: Added.
1190         (.WebInspector.InspectorFrontendHostStub):
1191         (.WebInspector.InspectorFrontendHostStub.prototype.platform):
1192         (.WebInspector.InspectorFrontendHostStub.prototype.port):
1193         (.WebInspector.InspectorFrontendHostStub.prototype.bringToFront):
1194         (.WebInspector.InspectorFrontendHostStub.prototype.closeWindow):
1195         (.WebInspector.InspectorFrontendHostStub.prototype.requestSetDockSide):
1196         (.WebInspector.InspectorFrontendHostStub.prototype.setAttachedWindowHeight):
1197         (.WebInspector.InspectorFrontendHostStub.prototype.setAttachedWindowWidth):
1198         (.WebInspector.InspectorFrontendHostStub.prototype.setToolbarHeight):
1199         (.WebInspector.InspectorFrontendHostStub.prototype.moveWindowBy):
1200         (.WebInspector.InspectorFrontendHostStub.prototype.loaded):
1201         (.WebInspector.InspectorFrontendHostStub.prototype.localizedStringsURL):
1202         (.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
1203         (.WebInspector.InspectorFrontendHostStub.prototype.copyText):
1204         (.WebInspector.InspectorFrontendHostStub.prototype.openInNewTab):
1205         (.WebInspector.InspectorFrontendHostStub.prototype.canSave):
1206         (.WebInspector.InspectorFrontendHostStub.prototype.save):
1207         (.WebInspector.InspectorFrontendHostStub.prototype.append):
1208         (.WebInspector.InspectorFrontendHostStub.prototype.close.cleanup):
1209         (.WebInspector.InspectorFrontendHostStub.prototype.close):
1210         (.WebInspector.InspectorFrontendHostStub.prototype.sendMessageToBackend):
1211         (.WebInspector.InspectorFrontendHostStub.prototype.loadResourceSynchronously):
1212         * UserInterface/Main.html:
1213
1214 2013-07-15  Seokju Kwon  <seokju.kwon@gmail.com>
1215
1216         Web Inspector: Remove unused columns from select query in ImageUtilities.js
1217         https://bugs.webkit.org/show_bug.cgi?id=118694
1218
1219         Reviewed by Timothy Hatcher.
1220
1221         * UserInterface/ImageUtilities.js: Remove pixelRatio and formatVersion from select query.
1222
1223 2013-07-15  Timothy Hatcher  <timothy@apple.com>
1224
1225         Update CodeMirror to 3.14.1.
1226
1227         https://bugs.webkit.org/show_bug.cgi?id=118605
1228
1229         Reviewed by Joseph Pecoraro.
1230
1231         * Scripts/update-codemirror-resources.rb: Updated the list to add closebrackets.js and sorted the files.
1232         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
1233         * Tools/PrettyPrinting/Formatter.js:
1234         * Tools/PrettyPrinting/FormatterContentBuilder.js:
1235         * Tools/PrettyPrinting/codemirror.css:
1236         * Tools/PrettyPrinting/codemirror.js:
1237         * Tools/PrettyPrinting/css.js:
1238         * Tools/PrettyPrinting/javascript.js:
1239         * UserInterface/External/CodeMirror/closebrackets.js:
1240         * UserInterface/External/CodeMirror/codemirror.css:
1241         * UserInterface/External/CodeMirror/codemirror.js:
1242         * UserInterface/External/CodeMirror/coffeescript.js:
1243         * UserInterface/External/CodeMirror/comment.js:
1244         * UserInterface/External/CodeMirror/css.js:
1245         * UserInterface/External/CodeMirror/javascript.js:
1246         * UserInterface/External/CodeMirror/matchbrackets.js:
1247         * UserInterface/External/CodeMirror/sql.js:
1248         * UserInterface/External/CodeMirror/xml.js:
1249
1250 2013-07-15  Timothy Hatcher  <timothy@apple.com>
1251
1252         Make sure to add main resources for sub-frames to the Network Timeline.
1253
1254         https://bugs.webkit.org/show_bug.cgi?id=118649
1255
1256         Reviewed by Joseph Pecoraro.
1257
1258         * UserInterface/TimelineManager.js:
1259         (WebInspector.TimelineManager.prototype._mainResourceDidChange): Remove the
1260         call to _clear() and early return for event.target.isMainFrame(). The _clear()
1261         is already handled if needed by the call to _startAutoRecording(), so it was
1262         redundant here and caused the erroneous addition of isMainFrame() early return.
1263
1264 2013-07-15  Timothy Hatcher  <timothy@apple.com>
1265
1266         Properly handle style text changes while the color popover is open.
1267
1268         https://bugs.webkit.org/show_bug.cgi?id=118575
1269
1270         Reviewed by Joseph Pecoraro.
1271
1272         * UserInterface/CSSStyleDeclarationTextEditor.js:
1273         (WebInspector.CSSStyleDeclarationTextEditor.prototype._colorSwatchClicked.updateCodeMirror):
1274         The original text marker might have been cleared by a style update, in this case we need to
1275         find the new color text marker so we know the right range for the new style color text.
1276
1277 2013-07-14  Commit Queue  <commit-queue@webkit.org>
1278
1279         Unreviewed, rolling out r152598.
1280         http://trac.webkit.org/changeset/152598
1281         https://bugs.webkit.org/show_bug.cgi?id=118658
1282
1283         totally broke the web inspector (JS ERROR: SyntaxError:
1284         Expected token '}') (Requested by thorton on #webkit).
1285
1286         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
1287         * Tools/PrettyPrinting/Formatter.js:
1288         * Tools/PrettyPrinting/FormatterContentBuilder.js:
1289         * Tools/PrettyPrinting/codemirror.css:
1290         (.CodeMirror-scrollbar-filler):
1291         (.CodeMirror-gutters):
1292         (.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler):
1293         (.CodeMirror-widget):
1294         * Tools/PrettyPrinting/codemirror.js:
1295         (window.CodeMirror):
1296         (window.CodeMirror.):
1297         (.do):
1298         (moveVisually):
1299         * Tools/PrettyPrinting/css.js:
1300         (.):
1301         (CodeMirror):
1302         * Tools/PrettyPrinting/javascript.js:
1303         (.):
1304         * UserInterface/External/CodeMirror/codemirror.css:
1305         (.CodeMirror-widget):
1306         * UserInterface/External/CodeMirror/codemirror.js:
1307         (window.CodeMirror):
1308         (window.CodeMirror.):
1309         * UserInterface/External/CodeMirror/coffeescript.js:
1310         * UserInterface/External/CodeMirror/comment.js:
1311         (.):
1312         * UserInterface/External/CodeMirror/css.js:
1313         (.):
1314         (CodeMirror):
1315         * UserInterface/External/CodeMirror/javascript.js:
1316         (.):
1317         * UserInterface/External/CodeMirror/matchbrackets.js:
1318         (.):
1319         * UserInterface/External/CodeMirror/sql.js:
1320         * UserInterface/External/CodeMirror/xml.js:
1321
1322 2013-07-12  Timothy Hatcher  <timothy@apple.com>
1323
1324         Update CodeMirror to 7f560afa1c (3.14+).
1325
1326         https://bugs.webkit.org/show_bug.cgi?id=118605
1327
1328         Reviewed by Sam Weinig.
1329
1330         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
1331         * Tools/PrettyPrinting/Formatter.js:
1332         * Tools/PrettyPrinting/FormatterContentBuilder.js:
1333         * Tools/PrettyPrinting/codemirror.css:
1334         * Tools/PrettyPrinting/codemirror.js:
1335         * Tools/PrettyPrinting/css.js:
1336         * Tools/PrettyPrinting/javascript.js:
1337         * UserInterface/External/CodeMirror/codemirror.css:
1338         * UserInterface/External/CodeMirror/codemirror.js:
1339         * UserInterface/External/CodeMirror/coffeescript.js:
1340         * UserInterface/External/CodeMirror/comment.js:
1341         * UserInterface/External/CodeMirror/css.js:
1342         * UserInterface/External/CodeMirror/javascript.js:
1343         * UserInterface/External/CodeMirror/matchbrackets.js:
1344         * UserInterface/External/CodeMirror/sql.js:
1345         * UserInterface/External/CodeMirror/xml.js:
1346
1347 2013-07-12  Seokju Kwon  <seokju.kwon@gmail.com>
1348
1349         Web Inspector: Pass null for sidebarPanels and role in WebInspector.Sidebar()
1350         https://bugs.webkit.org/show_bug.cgi?id=118589
1351
1352         Reviewed by Timothy Hatcher.
1353
1354         sidebarPanels : It is necessary to get correct argument after r152141.
1355         Without this, error messages can be displayed.
1356         role : Could pass null for it since default value is "group".
1357
1358         * UserInterface/Main.js:
1359         (WebInspector.contentLoaded):
1360
1361 2013-07-03  Timothy Hatcher  <timothy@apple.com>
1362
1363         Guard remaining calls to decodeURIComponent with a try/catch.
1364
1365         https://bugs.webkit.org/show_bug.cgi?id=118371
1366
1367         Reviewed by Joseph Pecoraro.
1368
1369         * UserInterface/Main.js:
1370         (WebInspector.displayNameForURL):
1371         (WebInspector.updateWindowTitle):
1372         * UserInterface/Utilities.js:
1373         (arrayResult):
1374         (queryString):
1375
1376 2013-07-03  Jessie Berlin  <jberlin@apple.com>
1377
1378         Ran update-webkit-localizable-strings.
1379
1380         Rubber-stamped by Joseph Pecoraro.
1381
1382         * Localizations/en.lproj/localizedStrings.js:
1383
1384 2013-06-28  Dean Jackson  <dino@apple.com>
1385
1386         Update Apple System fonts in auto-complete
1387         https://bugs.webkit.org/show_bug.cgi?id=118205
1388         <rdar://problem/14308488>
1389
1390         Reviewed by Joseph Pecoraro.
1391
1392         Update for the new Apple System font names, and remove some invalid entries.
1393
1394         * UserInterface/CSSKeywordCompletions.js: General cleanup. Note that
1395         "apple-system-short-caption2" looks like it was accidentally omitted. It wasn't :)
1396
1397 2013-06-28  James Craig  <james@cookiecrook.com>
1398
1399         Web Inspector: AX: VoiceOver speaks all inspector search fields as 'required'
1400         https://bugs.webkit.org/show_bug.cgi?id=118122
1401
1402         Reviewed by Timothy Hatcher.
1403
1404         Removed bogus "required" state, and switched :valid selector to use :not(:placeholder-shown)
1405         so that screen readers will not indicate a bogus :required/:invalid state to the user.
1406         Minor cosmetic difference blocked by http://webkit.org/b/118162
1407
1408         * UserInterface/FilterBar.css:
1409         (.filter-bar > input[type="search"]:focus):
1410         (.filter-bar > input[type="search"]:not(:placeholder-shown)):
1411         * UserInterface/FilterBar.js:
1412         (WebInspector.FilterBar):
1413         * UserInterface/ResourceSidebarPanel.js:
1414         (WebInspector.ResourceSidebarPanel):
1415         * UserInterface/SearchBar.css:
1416         (.search-bar > input[type="search"]:focus):
1417         (.search-bar > input[type="search"]:not(:placeholder-shown)):
1418         * UserInterface/SearchBar.js:
1419         (WebInspector.SearchBar):
1420
1421 2013-06-27  James Craig  <james@cookiecrook.com>
1422
1423         Web Inspector: AX: Add container ARIA roles (toolbar, main, labeled regions, etc.) 
1424         so the layout is more discoverable to screen reader users
1425         https://bugs.webkit.org/show_bug.cgi?id=118104
1426
1427         Reviewed by Timothy Hatcher.
1428
1429         Made the basic layout (toolbar, sidebars, main) of the Web Inspector understandable
1430         and navigable with VoiceOver.
1431
1432         * Localizations/en.lproj/localizedStrings.js:
1433         * UserInterface/ButtonNavigationItem.js:
1434         * UserInterface/CSSStyleDetailsSidebarPanel.js:
1435         * UserInterface/DashboardManager.js:
1436         * UserInterface/Main.js:
1437         * UserInterface/NavigationBar.js:
1438         * UserInterface/NavigationItem.js:
1439         * UserInterface/NavigationSidebarPanel.js:
1440         * UserInterface/RadioButtonNavigationItem.js:
1441         * UserInterface/Sidebar.js:
1442         * UserInterface/SidebarPanel.js:
1443         * UserInterface/Toolbar.js:
1444
1445 2013-06-27  James Craig  <james@cookiecrook.com>
1446
1447         Web Inspector: AX: Console log of the Inspector does not announce output for screen readers
1448         https://bugs.webkit.org/show_bug.cgi?id=115976
1449
1450         Reviewed by Timothy Hatcher.
1451
1452         Main console log area (div.console-messages) is now an ARIA live region (role="log")
1453         so screen readers speak plain text updates.
1454         
1455         Also added contextual labels (e.g. input/output) but speech output verification of
1456         those is currently blocked by http://webkit.org/b/118096
1457
1458         * Localizations/en.lproj/localizedStrings.js:
1459         * UserInterface/ConsoleCommand.js:
1460         (WebInspector.ConsoleCommand.prototype.toMessageElement):
1461         * UserInterface/ConsoleCommandResult.js:
1462         (WebInspector.ConsoleCommandResult.prototype.toMessageElement):
1463         * UserInterface/LogContentView.css:
1464         (@media reader):
1465         * UserInterface/LogContentView.js:
1466         (WebInspector.LogContentView):
1467
1468
1469 2013-06-27  Matthew Holden  <jftholden@yahoo.com>
1470
1471         Web Inspector: Display color picker in popover on color swatch click
1472         https://bugs.webkit.org/show_bug.cgi?id=117919
1473
1474         Reviewed by Timothy Hatcher.
1475
1476         Includes fixes from second code review.
1477
1478         * Localizations/en.lproj/localizedStrings.js:
1479         * UserInterface/CSSColorPicker.css: Added.
1480         (.colorpicker-container):
1481         (.colorpicker-fill-parent):
1482         (.colorpicker-top):
1483         (.colorpicker-color):
1484         (.colorpicker-bottom span):
1485         (.colorpicker-text):
1486         (.colorpicker-color-text-value):
1487         (.colorpicker-hue):
1488         (.colorpicker-fill):
1489         (.colorpicker-range-container):
1490         (.colorpicker-range-container *):
1491         (.colorpicker-range-container label):
1492         (.colorpicker-range-container input):
1493         (.colorpicker-saturation):
1494         (.colorpicker-value):
1495         (.colorpicker-dragger):
1496         (.colorpicker-slider):
1497         (.colorpicker-container .swatch):
1498         (.colorpicker-container .swatch-inner):
1499         * UserInterface/CSSColorPicker.js: Added.
1500         (WebInspector.CSSColorPicker.consume):
1501         (WebInspector.CSSColorPicker.move):
1502         (WebInspector.CSSColorPicker.start):
1503         (WebInspector.CSSColorPicker.stop):
1504         (WebInspector.CSSColorPicker.makeDraggable):
1505         (WebInspector.CSSColorPicker.hueDrag):
1506         (WebInspector.CSSColorPicker.colorDragStart):
1507         (WebInspector.CSSColorPicker.colorDrag):
1508         (WebInspector.CSSColorPicker.alphaDrag):
1509         (WebInspector.CSSColorPicker.colorSwatchClicked):
1510         (WebInspector.CSSColorPicker):
1511         (WebInspector.CSSColorPicker.prototype.get element):
1512         (WebInspector.CSSColorPicker.prototype.set color):
1513         (WebInspector.CSSColorPicker.prototype.get color):
1514         (WebInspector.CSSColorPicker.prototype.get outputColorFormat):
1515         (WebInspector.CSSColorPicker.prototype.get colorHueOnly):
1516         (WebInspector.CSSColorPicker.prototype.set displayText):
1517         (WebInspector.CSSColorPicker.prototype.shown):
1518         (WebInspector.CSSColorPicker.prototype._updateHelperLocations):
1519         (WebInspector.CSSColorPicker.prototype._updateDisplay):
1520         (WebInspector.CSSColorPicker.hsvaToRGBA):
1521         (WebInspector.CSSColorPicker.rgbaToHSVA):
1522         * UserInterface/CSSStyleDeclarationTextEditor.js:
1523         (WebInspector.CSSStyleDeclarationTextEditor.prototype.didDismissPopover):
1524         (WebInspector.CSSStyleDeclarationTextEditor.prototype.):
1525         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches):
1526         (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText.colorTextMarker):
1527         (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText):
1528         * UserInterface/Main.html:
1529
1530 2013-06-26  Antoine Quint  <graouts@apple.com>
1531
1532         Web Inspector: stepping through while paused in debugger makes a popover appear
1533         https://bugs.webkit.org/show_bug.cgi?id=117994
1534
1535         There is no obvious need to call tokenTrackingControllerNewHighlightCandidate when the
1536         active call frame changes and it leads to an extraneous display of the popover.
1537
1538         Reviewed by Timothy Hatcher.
1539
1540         * UserInterface/SourceCodeTextEditor.js:
1541         (WebInspector.SourceCodeTextEditor.prototype._activeCallFrameDidChange):
1542
1543 2013-06-24  Antoine Quint  <graouts@apple.com>
1544
1545         Web Inspector: WebInspector.displayNameForURL() failure prevents DOM inspection
1546         https://bugs.webkit.org/show_bug.cgi?id=117927
1547
1548         Handle possible mis-encoded URI fragments passed to decodeURIComponent() which
1549         could prevent inspection of the DOM.
1550
1551         Reviewed by Timothy Hatcher.
1552
1553         * UserInterface/Main.js:
1554         (WebInspector.displayNameForURL):
1555
1556 2013-06-17  Darin Adler  <darin@apple.com>
1557
1558         Sort all the Xcode project files
1559         https://bugs.webkit.org/show_bug.cgi?id=117696
1560
1561         Reviewed by Anders Carlsson.
1562
1563         * WebInspectorUI.xcodeproj/project.pbxproj: Ran the sort-Xcode-project-file script.
1564
1565 2013-06-21  Joseph Pecoraro  <pecoraro@apple.com>
1566
1567         Web Inspector: Uncaught exception when pretty printing WebInspector.Script
1568         https://bugs.webkit.org/show_bug.cgi?id=117893
1569
1570         This was an issue with an earlier refactoring. The sourceCode is a Script,
1571         so replace the non-existent local variable "script" with "this._sourceCode".
1572
1573         Reviewed by Timothy Hatcher.
1574
1575         * UserInterface/SourceCodeTextEditor.js:
1576         (WebInspector.SourceCodeTextEditor.prototype.textEditorUpdatedFormatting):
1577
1578 2013-06-21  Timothy Hatcher  <timothy@apple.com>
1579
1580         Stop removing and re-adding breakpoints from the backend on reload.
1581
1582         On reload the sourceCode for breakpoints are nulled out, which fires DisplayLocationDidChange.
1583         Then the sourceCode is reassociated, firing DisplayLocationDidChange again. In these cases we
1584         don't need to update the backend, since nothing really changed.
1585
1586         https://bugs.webkit.org/show_bug.cgi?id=117877
1587
1588         Reviewed by Joseph Pecoraro.
1589
1590         * UserInterface/DebuggerManager.js:
1591         (WebInspector.DebuggerManager.prototype._breakpointDisplayLocationDidChange): Return early when
1592         _ignoreBreakpointDisplayLocationDidChangeEvent is true.
1593         (WebInspector.DebuggerManager.prototype.reset): Set _ignoreBreakpointDisplayLocationDidChangeEvent.
1594         (WebInspector.DebuggerManager.prototype._associateBreakpointsWithSourceCode): Ditto.
1595
1596 2013-06-19  Antoine Quint  <graouts@apple.com>
1597
1598         Web Inspector: Copying array or object output does not contain values
1599         https://bugs.webkit.org/show_bug.cgi?id=117669
1600
1601         ConsoleCommandResult was overriding toClipboardString() but wasn't using the complex code
1602         in ConsoleMessageImpl's toClipboardString() to provide a nicely formatted output for objects.
1603         We now use a "clipboarPrefixString" property to customize the prefix used in the clipboard
1604         and, additionally, only use that prefix if we're copying more than a single message since it's
1605         the only situation where it's useful to have the ">" or "<" prefix shown. Console messages with
1606         a log level always print the level and when saving the console log using Cmd+S, all messages
1607         contain their prefix as well.
1608
1609         Reviewed by Timothy Hatcher.
1610
1611         * UserInterface/ConsoleCommand.js:
1612         (WebInspector.ConsoleCommand.prototype.toClipboardString):
1613         Handle the new isPrefixOptional argument.
1614
1615         * UserInterface/ConsoleCommandResult.js:
1616         (WebInspector.ConsoleCommandResult.prototype.get clipboarPrefixString):
1617         Provide a custom "< " prefix and set "enforcesClipboardPrefixString" to false such that
1618         the prefix isn't printed out in situations when it may not.
1619
1620         * UserInterface/ConsoleMessageImpl.js:
1621         Set "enforcesClipboardPrefixString" to true since we always want to log the log level
1622         prefix in all situations.
1623
1624         (WebInspector.ConsoleMessageImpl.prototype.get clipboarPrefixString):
1625         Implement this new getter to return our clipboard string such that subclasses may
1626         customize it.
1627
1628         (WebInspector.ConsoleMessageImpl.prototype.toClipboardString):
1629         Take into account both isPrefixOptional and the "enforcesClipboardPrefixString" property
1630         to only log the prefix if necessary.
1631
1632         * UserInterface/LogContentView.js:
1633         (WebInspector.LogContentView.prototype._formatMessagesAsData):
1634         Make the logging of prefix optional when we have a single message selected and we're
1635         not saving via Cmd+S.
1636
1637 2013-06-18  Joseph Pecoraro  <pecoraro@apple.com>
1638
1639         Web Inspector: Infrequent uncaught exception with debugger popovers breaks inspector
1640         https://bugs.webkit.org/show_bug.cgi?id=117755
1641
1642         Create the ZERO_SIZE and ZERO_RECT objects after we've setup the Size
1643         and Rect prototypes, so they get the expected methods. We then need to
1644         handle the ZERO_RECT case better, and not attempt to draw a background
1645         in a canvas with a 0 size, which would produce an exception.
1646
1647         Reviewed by Timothy Hatcher.
1648
1649         * UserInterface/Geometry.js:
1650         * UserInterface/Popover.js:
1651         (WebInspector.Popover.prototype._update):
1652
1653 2013-06-18  Timothy Hatcher  <timothy@apple.com>
1654
1655         If the tree outline is processing a selection currently, then don't change the selection.
1656
1657         This is needed to allow breakpoints tree elements to be selected without jumping back to
1658         selecting the resource tree element.
1659
1660         https://bugs.webkit.org/show_bug.cgi?id=117746
1661
1662         Reviewed by Joseph Pecoraro.
1663
1664         * UserInterface/Main.js:
1665         (WebInspector._revealAndSelectRepresentedObjectInNavigationSidebar):
1666         * UserInterface/TreeOutline.js:
1667         (TreeElement.prototype.select):
1668
1669 2013-06-18  Timothy Hatcher  <timothy@apple.com>
1670
1671         Update breakpoints to match Xcode 5.
1672
1673         This updates the breakpoint images, line colors, and moves breakpoints toggle button
1674         to the Debugger sidebar navigation bar.
1675
1676         https://bugs.webkit.org/show_bug.cgi?id=117723
1677
1678         Reviewed by Joseph Pecoraro.
1679
1680         * Localizations/en.lproj/localizedStrings.js: Updated.
1681         * UserInterface/DebuggerSidebarPanel.css: Removed custom toggle button rules.
1682         * UserInterface/DebuggerSidebarPanel.js:
1683         (WebInspector.DebuggerSidebarPanel):
1684         (WebInspector.DebuggerSidebarPanel.prototype._breakpointsToggleButtonClicked):
1685         * UserInterface/Images/Breakpoint.png: Updated.
1686         * UserInterface/Images/Breakpoints.pdf: Added.
1687         * UserInterface/Images/Breakpoint@2x.png: Updated.
1688         * UserInterface/Images/BreakpointButton.pdf: Updated.
1689         * UserInterface/Images/BreakpointInactive.png: Updated.
1690         * UserInterface/Images/BreakpointInactive@2x.png: Updated.
1691         * UserInterface/Images/BreakpointInactiveButton.pdf: Updated.
1692         * UserInterface/Images/InstructionPointer.png: Updated.
1693         * UserInterface/Images/InstructionPointer@2x.png: Updated.
1694         * UserInterface/SourceCodeTextEditor.css:
1695         (.source-code.text-editor > .CodeMirror .error): Updated background-color and removed box-shadow.
1696         (.source-code.text-editor > .CodeMirror .warning): Ditto.
1697         * UserInterface/TextEditor.css:
1698         (.text-editor > .CodeMirror .has-breakpoint .CodeMirror-linenumber::before): Changed left position to 0.
1699         (.text-editor > .CodeMirror .execution-line .CodeMirror-linenumber::after): Updated position.
1700         (.text-editor > .CodeMirror .execution-line): Updated background-color and removed box-shadow.
1701
1702 2013-06-13  Joseph Pecoraro  <pecoraro@apple.com>
1703
1704         <http://webkit.org/b/117615> Web Inspector: JS PrettyPrinting Should have space between "do" and "{"
1705
1706         Reviewed by Timothy Hatcher.
1707
1708         * UserInterface/CodeMirrorFormatters.js:
1709
1710 2013-06-13  Joseph Pecoraro  <pecoraro@apple.com>
1711
1712         <http://webkit.org/b/117612> Web Inspector: "Search Resource Content" should cancel when I remove all text search text
1713
1714         Reviewed by Timothy Hatcher.
1715
1716         * UserInterface/ResourceSidebarPanel.js:
1717         (WebInspector.ResourceSidebarPanel):
1718         (WebInspector.ResourceSidebarPanel.prototype._searchFieldInput):
1719
1720 == Rolled over to ChangeLog-2013-06-11 ==