Remove references to OS X 10.7 from Xcode configuration settings.
[WebKit-https.git] / Source / WebInspectorUI / ChangeLog
1 2013-10-24  Mark Rowe  <mrowe@apple.com>
2
3         Remove references to OS X 10.7 from Xcode configuration settings.
4
5         Now that we're not building for OS X 10.7 they're no longer needed.
6
7         Reviewed by Anders Carlsson.
8
9         * Configurations/Base.xcconfig:
10         * Configurations/DebugRelease.xcconfig:
11         * Configurations/Version.xcconfig:
12
13 2013-10-24  Mark Rowe  <mrowe@apple.com>
14
15         <rdar://problem/15312643> Prepare for the mysterious future.
16
17         Reviewed by David Kilzer.
18
19         * Configurations/Base.xcconfig:
20         * Configurations/DebugRelease.xcconfig:
21         * Configurations/Version.xcconfig:
22
23 2013-10-24  Timothy Hatcher  <timothy@apple.com>
24
25         Allow editing CSS resources after they have been pretty printed.
26
27         https://bugs.webkit.org/show_bug.cgi?id=123297
28
29         Reviewed by Joseph Pecoraro.
30
31         * UserInterface/TextEditor.js:
32         (WebInspector.TextEditor): Remove the need for _readOnly.
33         (WebInspector.TextEditor.prototype.set readOnly): Set CodeMirror readOnly directly.
34         (WebInspector.TextEditor.prototype.set formatted): Don't call _updateCodeMirrorReadOnly.
35         (WebInspector.TextEditor.prototype._updateCodeMirrorReadOnly): Removed.
36         (WebInspector.TextEditor.prototype._contentChanged): Clear _formatted and _formatterSourceMap
37         on edit and notify the delegate and fire the FormattingDidChange event.
38
39 2013-10-24  Timothy Hatcher  <timothy@apple.com>
40
41         Adjust the precision of byte strings in Web Inspector.
42
43         https://bugs.webkit.org/show_bug.cgi?id=123281
44
45         Reviewed by Joseph Pecoraro.
46
47         * UserInterface/Utilities.js:
48         (Number.bytesToString): More precision for MB and less precision for 10..1023 KB.
49
50 2013-10-24  Alexandru Chiculita  <achicu@adobe.com>
51
52         Web Inspector: Add a way to test the Manager and model classes
53         https://bugs.webkit.org/show_bug.cgi?id=123223
54
55         Reviewed by Timothy Hatcher.
56
57         Moved some global functions out of Main.js, so that they can be used in the 
58         layout tests without including Main.js.
59
60         * UserInterface/Main.html: Referenced the new JS files.
61         * UserInterface/Main.js:
62         * UserInterface/MessageDispatcher.js: Added.
63         (WebInspector.dispatchNextQueuedMessageFromBackend):
64         (WebInspector.dispatchMessageFromBackend):
65         * UserInterface/URLUtilities.js: Added.
66         (removeURLFragment):
67         (relativePath):
68         (parseURL):
69         (absoluteURL):
70         (parseLocationQueryParameters):
71         (parseQueryString):
72         (WebInspector.displayNameForURL):
73         (WebInspector.displayNameForHost):
74         * UserInterface/Utilities.js:
75
76 2013-10-21  Alexandru Chiculita  <achicu@adobe.com>
77
78         Web Inspector: [CSS Regions] Flows are not loading if you refresh the page several times
79         https://bugs.webkit.org/show_bug.cgi?id=123123
80
81         Reviewed by Joseph Pecoraro.
82
83         There was a typo in the code where an exception was thrown because "flowKey" was undefined.
84
85         * UserInterface/DOMTree.js:
86         (WebInspector.DOMTree.prototype._contentFlowListWasUpdated):
87
88 2013-10-21  Oliver Hunt  <oliver@apple.com>
89
90         Restore accidentally removed files.
91
92         * UserInterface/GoToLineDialog.css: Added.
93         (.go-to-line-dialog):
94         (.go-to-line-dialog > div):
95         (.go-to-line-dialog > div > input):
96         (.go-to-line-dialog > div > input::-webkit-input-placeholder):
97         (.go-to-line-dialog > div > img):
98         (.go-to-line-dialog > div > img:active):
99         (.go-to-line-dialog.non-empty > div > img):
100         * UserInterface/GoToLineDialog.js: Added.
101         (WebInspector.GoToLineDialog):
102         (WebInspector.GoToLineDialog.prototype.present):
103         (WebInspector.GoToLineDialog.prototype.dismiss):
104         (WebInspector.GoToLineDialog.prototype.handleEvent):
105         (WebInspector.GoToLineDialog.prototype._handleInputEvent):
106         (WebInspector.GoToLineDialog.prototype._handleKeydownEvent):
107         (WebInspector.GoToLineDialog.prototype._handleBlurEvent):
108         (WebInspector.GoToLineDialog.prototype._handleMousedownEvent):
109         (WebInspector.GoToLineDialog.prototype._handleClickEvent):
110         (WebInspector.GoToLineDialog.prototype._clear):
111         * UserInterface/Images/CloseWhite.svg: Added.
112
113 2013-10-18  Alexandru Chiculita  <achicu@adobe.com>
114
115         Web Inspector: CSS Regions: Add the list of flows in the FrameTreeElement
116         https://bugs.webkit.org/show_bug.cgi?id=122924
117
118         Reviewed by Timothy Hatcher.
119
120         Added code to collect the flows from the backend into the DOMTree object
121         on the frontend. Added ContentFlow to represent the flows on the frontend
122         side and created ContentFlowTreeElement to display the flows in the FrameTreeElement.
123
124         * Localizations/en.lproj/localizedStrings.js:
125         * Scripts/copy-user-interface-resources.sh:
126         * UserInterface/CSSObserver.js:
127         (WebInspector.CSSObserver.prototype.namedFlowCreated):
128         (WebInspector.CSSObserver.prototype.namedFlowRemoved):
129         (WebInspector.CSSObserver.prototype.regionLayoutUpdated):
130         (WebInspector.CSSObserver.prototype.regionOversetChanged):
131         * UserInterface/ContentFlow.js: Added.
132         (WebInspector.ContentFlow):
133         (WebInspector.ContentFlow.prototype.get id):
134         (WebInspector.ContentFlow.prototype.get documentNodeIdentifier):
135         (WebInspector.ContentFlow.prototype.get name):
136         (WebInspector.ContentFlow.prototype.get overset):
137         (WebInspector.ContentFlow.prototype.set overset):
138         * UserInterface/ContentFlowIcon.css: Added.
139         (.content-flow-icon .icon):
140         * UserInterface/ContentFlowTreeElement.js: Added.
141         (WebInspector.ContentFlowTreeElement):
142         * UserInterface/DOMTree.js:
143         (WebInspector.DOMTree):
144         (WebInspector.DOMTree.prototype.get flowMap):
145         (WebInspector.DOMTree.prototype.get flowsCount):
146         (WebInspector.DOMTree.prototype._framePageExecutionContextChanged):
147         (WebInspector.DOMTree.prototype.requestContentFlowList):
148         (WebInspector.DOMTree.prototype._isContentFlowInCurrentDocument):
149         (WebInspector.DOMTree.prototype._contentFlowListWasUpdated):
150         (WebInspector.DOMTree.prototype._contentFlowWasAdded):
151         (WebInspector.DOMTree.prototype._contentFlowWasRemoved):
152         * UserInterface/DOMTreeManager.js:
153         (WebInspector.DOMTreeManager):
154         (WebInspector.DOMTreeManager._flowPayloadHashKey):
155         (WebInspector.DOMTreeManager.prototype._buildHighlightConfig):
156         (WebInspector.DOMTreeManager.prototype._createContentFlowFromPayload):
157         (WebInspector.DOMTreeManager.prototype._updateContentFlowFromPayload):
158         (WebInspector.DOMTreeManager.prototype.getNamedFlowCollection):
159         (WebInspector.DOMTreeManager.prototype.namedFlowCreated):
160         (WebInspector.DOMTreeManager.prototype.namedFlowRemoved):
161         (WebInspector.DOMTreeManager.prototype._sendNamedFlowUpdateEvents):
162         (WebInspector.DOMTreeManager.prototype.regionLayoutUpdated):
163         (WebInspector.DOMTreeManager.prototype.regionOversetChanged):
164         * UserInterface/FrameTreeElement.js:
165         (WebInspector.FrameTreeElement):
166         (WebInspector.FrameTreeElement.prototype.onpopulate):
167         (WebInspector.FrameTreeElement.prototype.onexpand):
168         (WebInspector.FrameTreeElement.prototype._childContentFlowWasAdded):
169         (WebInspector.FrameTreeElement.prototype._childContentFlowWasRemoved):
170         (WebInspector.FrameTreeElement.prototype._rootDOMNodeInvalidated):
171         (WebInspector.FrameTreeElement.prototype._addChildForRepresentedObject):
172         (WebInspector.FrameTreeElement.prototype._removeChildForRepresentedObject):
173         (WebInspector.FrameTreeElement.prototype._addTreeElementForRepresentedObject):
174         (WebInspector.FrameTreeElement.prototype._compareResourceTreeElements):
175         (WebInspector.FrameTreeElement.prototype._insertResourceTreeElement):
176         (WebInspector.FrameTreeElement.prototype._parentTreeElementForRepresentedObject):
177         (WebInspector.FrameTreeElement.prototype._shouldGroupIntoFolders):
178         * UserInterface/Images/ContentFlow.svg: Added.
179         * UserInterface/Main.html:
180         * UserInterface/ResourceSidebarPanel.js:
181         (WebInspector.ResourceSidebarPanel.prototype._treeElementSelected):
182
183 2013-10-17  Antoine Quint  <graouts@apple.com>
184
185         Web Inspector: Go to line keyboard command and dialog
186         https://bugs.webkit.org/show_bug.cgi?id=122893
187
188         Reviewed by Timothy Hatcher.
189
190         Add a text input over source code text editors, centered within the width of the editor
191         and towards the top of the editor, upon pressing Command+L or Control+G to match the
192         behavior in Chrome.
193
194         * Localizations/en.lproj/localizedStrings.js:
195         New localized string "Line Number".
196
197         * UserInterface/GoToLineDialog.css: Added.
198         Styling for the go-to-line dialog.
199
200         * UserInterface/GoToLineDialog.js: Added.
201         (WebInspector.GoToLineDialog):
202         Generate the DOM structure for the dialog.
203
204         (WebInspector.GoToLineDialog.prototype.present):
205         Present the dialog as a child of a parent element. The dialog's text field automatically
206         gets focus and resets to be empty.
207
208         (WebInspector.GoToLineDialog.prototype.dismiss):
209         Dismiss the dialog if visible, this triggers the goToLineDialogWasDismissed delegate method.
210
211         (WebInspector.GoToLineDialog.prototype.handleEvent):
212         Route the various events registered in the dialog's DOM tree: input, keydown, blur, mousedown
213         and click.
214
215         (WebInspector.GoToLineDialog.prototype._handleInputEvent):
216         Update the "non-empty" class on the dialog's element depending on the content of the dialog's
217         text field. If there is content in the text field, this will make the clear icon visible.
218
219         (WebInspector.GoToLineDialog.prototype._handleKeydownEvent):
220         If the Esc. key is pressed when there is text in the dialog's input field, clear the input field.
221         If no text is in the input field, dismiss the input field. When the Enter key is pressed, we call
222         the isGoToLineDialogValueValid() method on the delegate to figure out if the text field value is
223         valid. If it's not, we select the text field value so that it may be easily replaced and play
224         en error sound. If it's valid, we call the goToLineDialogValueWasValidated() delegate method
225         and dismiss the dialog.
226
227         (WebInspector.GoToLineDialog.prototype._handleBlurEvent):
228         Dismiss the dialog when its text field loses focus. This ensures that clicking anywhere outside
229         of the dialog removes it from display.
230
231         (WebInspector.GoToLineDialog.prototype._handleMousedownEvent):
232         Upon pressing the mouse down on the clear icon, select the entire text field content (matches
233         the behavior of Xcode) and prevent the default event action that would blur the text field
234         which would dismiss the dialog.
235
236         (WebInspector.GoToLineDialog.prototype._handleClickEvent):
237         Clear the content of the dialog's text field upon clicking on its clear button.
238
239         (WebInspector.GoToLineDialog.prototype._clear):
240         Reset the dialog's text field's value to an empty string and remove the "non-empty" CSS class name
241         controlling the display of the clear button.
242
243         * UserInterface/Images/CloseWhite.svg: Added.
244         Variation of the Close.svg icon with a white cross.
245
246         * UserInterface/Main.html:
247         Link to the newly added resources for GoToLineDialog.
248
249         * UserInterface/SourceCodeTextEditor.js:
250         (WebInspector.SourceCodeTextEditor):
251         Register the Command+L and Control+G keyboard shortcuts to bring up the go-to-line dialog.
252
253         (WebInspector.SourceCodeTextEditor.prototype.showGoToLineDialog):
254         Method called upon pressing the Command+L and Control+G keyboard shorcuts creating an instance
255         of a GoToDialog if necessary, becoming its delegate and presenting it in the context of the
256         editor's root element.
257
258         (WebInspector.SourceCodeTextEditor.prototype.isGoToLineDialogValueValid):
259         Delegate method called to validate the line number presently set in the go-to-dialog's text field,
260         checking it's a number between 1 and the number of lines in the source code.
261
262         (WebInspector.SourceCodeTextEditor.prototype.goToLineDialogValueWasValidated):
263         Delegate method called when the line number set in the go-to-dialog's text field has been validated.
264         We reveal and select the line at the number provided.
265
266         (WebInspector.SourceCodeTextEditor.prototype.goToLineDialogWasDismissed):
267         Ensure the source code editor regains focus upon dismissing the go-to-dialog.
268
269         * UserInterface/TextEditor.js:
270         (WebInspector.TextEditor.prototype.revealPosition):
271         Add a new opt-in option to not highlight the revealed position. The code in goToLineDialogValueWasValidated()
272         sets that new flag to true to avoid an unnecessary highlight on top of the selection.
273
274         (WebInspector.TextEditor.prototype.get lineCount):
275         Expose the lineCount() method on the private CodeMirror instance.
276
277         (WebInspector.TextEditor.prototype.focus):
278         Expose the focus() method on the private CodeMirror instance.
279
280 2013-10-17  Antoine Quint  <graouts@apple.com>
281
282         Web Inspector: logged objects are highlighted in blue
283         https://bugs.webkit.org/show_bug.cgi?id=122897
284
285         Reviewed by Joseph Pecoraro.
286
287         Switch to using the system highlight color for the background selected messages.
288         Also removing SVG assets no longer needed since we won't be showing white prompt
289         and result icons anymore as well as a few generated canvas states.
290
291         * UserInterface/Images/UserInputPromptPreviousSelected.svg: Removed.
292         * UserInterface/Images/UserInputResultSelected.svg: Removed.
293         * UserInterface/LogContentView.css:
294         (.console-messages:focus .console-item.selected):
295         * UserInterface/Main.js:
296         (WebInspector._generateDisclosureTriangleImages):
297
298 2013-10-17  Antoine Quint  <graouts@apple.com>
299
300         Web Inspector: allow front-end to trigger the system beep sound to signal an error
301         https://bugs.webkit.org/show_bug.cgi?id=122955
302
303         Reviewed by Timothy Hatcher.
304
305         Provide a stub method for the new InspectorFrontendHost.beep() method.
306
307         * UserInterface/InspectorFrontendHostStub.js:
308         (WebInspector.InspectorFrontendHostStub.prototype.beep):
309
310 2013-10-15  Antoine Quint  <graouts@apple.com>
311
312         Web Inspector: can't select text inside a text node
313         https://bugs.webkit.org/show_bug.cgi?id=122828
314
315         Reviewed by Timothy Hatcher.
316
317         Cancel the default user interaction when a drag action starts if the
318         element is being edited.
319
320         * UserInterface/DOMTreeElement.js:
321         (WebInspector.DOMTreeElement.prototype.onattach):
322         (WebInspector.DOMTreeElement.prototype.handleEvent):
323
324 2013-10-10  Brian J. Burg  <burg@cs.washington.edu>
325
326         Web Inspector: content views and managers should save/restore view state.
327         https://bugs.webkit.org/show_bug.cgi?id=122546
328
329         To restore the same content view and sidebars when re-opening the
330         inspector, a cookie is saved whenever a new content view is shown
331         in the main content browser. Previously, this cookie was created
332         and restored using navigation sidebar-specific logic. This has two
333         major flaws: non-default sidebars for a represented object are not
334         restored correctly; and it centralizes storage of view-specific
335         state such as subview selections.
336
337         This patch adds ContentView methods for saving a key for the
338         view's represented object, and saving/restoring any view-specific
339         state as the view is shown. The 'type' field of the cookie
340         specifies the manager which deserializes the cookie into a
341         represented object.
342
343         Reviewed by Timothy Hatcher.
344
345         * UserInterface/ApplicationCacheFrameContentView.js:
346         (WebInspector.ApplicationCacheFrameContentView):
347         (WebInspector.ApplicationCacheFrameContentView.prototype.saveToCookie):
348         (WebInspector.ApplicationCacheFrameContentView.prototype._maybeUpdate):
349         (WebInspector.ApplicationCacheFrameContentView.prototype._updateStatus):
350         (WebInspector.ApplicationCacheFrameContentView.prototype.updateStatus):
351         (WebInspector.ApplicationCacheFrameContentView.prototype._updateCallback):
352         * UserInterface/ApplicationCacheManager.js:
353         (WebInspector.ApplicationCacheManager.prototype.networkStateUpdated):
354         (WebInspector.ApplicationCacheManager.prototype.applicationCacheStatusUpdated):
355         (WebInspector.ApplicationCacheManager.prototype.):
356         (WebInspector.ApplicationCacheManager.prototype.requestApplicationCache):
357         (WebInspector.ApplicationCacheManager.prototype.objectForCookie):
358         (WebInspector.ApplicationCacheManager.prototype._manifestForFrameLoaded):
359         (WebInspector.ApplicationCacheManager.prototype._framesWithManifestsLoaded):
360         (WebInspector.ApplicationCacheManager.prototype._frameManifestUpdated):
361         * UserInterface/BackForwardEntry.js:
362         (WebInspector.BackForwardEntry):
363         (WebInspector.BackForwardEntry.prototype._restoreFromCookie):
364         * UserInterface/ContentBrowser.js:
365         (WebInspector.ContentBrowser.prototype.showContentViewForRepresentedObject):
366         (WebInspector.ContentBrowser.prototype.showContentView):
367         * UserInterface/ContentView.js:
368         (WebInspector.ContentView.prototype.saveToCookie):
369         (WebInspector.ContentView.prototype.restoreFromCookie):
370         * UserInterface/ContentViewContainer.js:
371         (WebInspector.ContentViewContainer.prototype.showContentView):
372         * UserInterface/CookieStorageContentView.js:
373         (WebInspector.CookieStorageContentView.prototype.update):
374         (WebInspector.CookieStorageContentView.prototype.saveToCookie):
375         (WebInspector.CookieStorageContentView.prototype._rebuildTable):
376         (WebInspector.CookieStorageContentView.prototype._filterCookies):
377         * UserInterface/DOMStorageContentView.js:
378         (WebInspector.DOMStorageContentView.prototype.saveToCookie):
379         * UserInterface/DatabaseContentView.js:
380         (WebInspector.DatabaseContentView.prototype.saveToCookie):
381         (WebInspector.DatabaseContentView.prototype._messagesClicked):
382         * UserInterface/DatabaseTableContentView.js:
383         (WebInspector.DatabaseTableContentView):
384         (WebInspector.DatabaseTableContentView.prototype.saveToCookie):
385         * UserInterface/FrameContentView.js:
386         (WebInspector.FrameContentView.prototype.saveToCookie):
387         (WebInspector.FrameContentView.prototype.restoreFromCookie):
388         * UserInterface/FrameResourceManager.js:
389         (WebInspector.FrameResourceManager.prototype.objectForCookie):
390         * UserInterface/InstrumentSidebarPanel.js:
391         (WebInspector.InstrumentSidebarPanel):
392         (WebInspector.InstrumentSidebarPanel.prototype.showTimeline):
393         (WebInspector.InstrumentSidebarPanel.prototype.shown):
394         (WebInspector.InstrumentSidebarPanel.prototype._timelinesTreeElementSelected):
395         * UserInterface/Main.js:
396         (WebInspector.loaded):
397         (WebInspector.contentLoaded):
398         (WebInspector.openURL):
399         (WebInspector._updateCurrentContentViewCookie):
400         (WebInspector._showContentViewForCookie.lastAttemptToRestoreFromCookie):
401         (WebInspector._showContentViewForCookie):
402         (WebInspector._resolveAndShowPendingContentViewCookie.delayedWork):
403         (WebInspector._resolveAndShowPendingContentViewCookie):
404         (WebInspector.elementDragStart):
405         (WebInspector.elementDragEnd):
406         (WebInspector.createMessageTextView):
407         (WebInspector.linkifyStringAsFragment):
408         * UserInterface/NavigationSidebarPanel.js:
409         * UserInterface/ResourceClusterContentView.js:
410         (WebInspector.ResourceClusterContentView.prototype.saveToCookie):
411         (WebInspector.ResourceClusterContentView.prototype.restoreFromCookie):
412         * UserInterface/ResourceSidebarPanel.js:
413         (WebInspector.ResourceSidebarPanel.prototype.showSourceCode):
414         (WebInspector.ResourceSidebarPanel.prototype._mainFrameDidChange):
415         (WebInspector.ResourceSidebarPanel.prototype._domStorageObjectWasAdded):
416         (WebInspector.ResourceSidebarPanel.prototype._databaseWasAdded):
417         (WebInspector.ResourceSidebarPanel.prototype._cookieStorageObjectWasAdded):
418         (WebInspector.ResourceSidebarPanel.prototype._frameManifestAdded):
419         * UserInterface/ScriptContentView.js:
420         (WebInspector.ScriptContentView.prototype.saveToCookie):
421         (WebInspector.ScriptContentView.prototype.restoreFromCookie):
422         * UserInterface/StorageManager.js:
423         (WebInspector.StorageManager.prototype.findMatchingObjectInArray):
424         (WebInspector.StorageManager.prototype.objectForCookie):
425         * UserInterface/TimelineManager.js:
426         (WebInspector.TimelineManager):
427         (WebInspector.TimelineManager.prototype.get timelines):
428         (WebInspector.TimelineManager.prototype.objectForCookie):
429         * UserInterface/TimelinesContentView.js:
430         (WebInspector.TimelinesContentView.prototype.saveToCookie):
431         (WebInspector.TimelinesContentView.prototype.restoreFromCookie):
432         (WebInspector.TimelinesContentView.prototype._makeColumnScopeBar):
433
434 2013-10-10  Mark Rowe  <mrowe@apple.com>
435
436         <rdar://problem/13341666> WebKit should always build against an SDK.
437
438         Have all projects default to building against the OS X Internal SDK for the Production
439         configuration. For the Debug and Release configurations, look for UseInternalSDK.xcconfig
440         to determine whether the OS X Internal SDK should be used. If not, use the normal OS X SDK.
441
442         Reviewed by Dan Bernstein.
443
444         * Configurations/Base.xcconfig:
445         * Configurations/DebugRelease.xcconfig:
446
447 2013-10-04  Antoine Quint  <graouts@apple.com>
448
449         Web Inspector: pressing the Cmd key over a CSS property should underline it immediately (jump to definition mode)
450         https://bugs.webkit.org/show_bug.cgi?id=119012
451
452         Reviewed by Joseph Pecoraro.
453
454         We add an "enabled" state to the tokenTrackingController to indicate that we're interested
455         in tracking hovered tokens. The tokenTrackingController is now only enabled in the
456         CSSStyleDeclarationTextEditor when the Cmd key is pressed and in the SourceCodeTextEditor
457         when either the Cmd key is pressed (NonSymbolTokens mode) or when the debugger is paused
458         (JavaScriptExpression mode).
459         
460         The tokenTrackingController is now smarter about how it tracks mouse events when it's enabled,
461         tracking "mouseenter" and "mouseleave" events to enable tracking allowing immediate detection of
462         tokens being hovered or no longer being hovered even with quick mouse movements. Additioanlly,
463         using the new top-level mouse coordinates tracking, we can detect a hovered token as soon as
464         it's being enabled to provide instant feedback to the user.
465
466         This new top-level mouse coordinates tracking couple with tracking of modifier keys also fixes
467         http://webkit.org/b/119011.
468
469         * UserInterface/CSSStyleDeclarationTextEditor.js:
470         (WebInspector.CSSStyleDeclarationTextEditor.prototype._updateJumpToSymbolTrackingMode):
471         Highlight the last known hovered candidate's range as soon as the Cmd key is pressed and enable
472         the tokenTrackingController if we're dealing with a non-read-only editor. When the Cmd key is
473         released, disable the tokenTrackingController.
474
475         * UserInterface/CodeMirrorTokenTrackingController.js:
476         (WebInspector.CodeMirrorTokenTrackingController):
477         (WebInspector.CodeMirrorTokenTrackingController.prototype.get enabled):
478         (WebInspector.CodeMirrorTokenTrackingController.prototype.set enabled):
479         New enabled state for the tokenTrackingController which indicates whether it should be tracking
480         mouse events to track hovered tokens in the editor. Upon being enabled, the tokenTrackingController
481         looks up the mouse coordinates continuously tracked at the window level to check for a token
482         at the last known mouse coordinates in case we're already over a token that may be highlighted.
483
484         (WebInspector.CodeMirrorTokenTrackingController.prototype.highlightLastHoveredRange):
485         New public method allowing to highlight the last know candidate range, if any. This is used from
486         editor code when the Cmd key is pressed and we want to force the last know candidate to be
487         highlighted.
488
489         (WebInspector.CodeMirrorTokenTrackingController.prototype._startTracking):
490         (WebInspector.CodeMirrorTokenTrackingController.prototype._stopTracking):
491         Make these two methods private now that they're automatically called by the "mouseenter" and
492         "mouseleave" event handling when we're in the "enabled" state. Additionally, the public
493         "tracking" property has been removed since it is no longer useful to the developer.
494
495         (WebInspector.CodeMirrorTokenTrackingController.prototype.handleEvent):
496         (WebInspector.CodeMirrorTokenTrackingController.prototype._mouseEntered):
497         (WebInspector.CodeMirrorTokenTrackingController.prototype._mouseLeft):
498         New handlers for the "mouseenter" and "mouseleave" events enabling tracking of hovered tokens.
499
500         (WebInspector.CodeMirrorTokenTrackingController.prototype._mouseMovedOverEditor):
501         (WebInspector.CodeMirrorTokenTrackingController.prototype._updateHoveredTokenInfo):
502         Refactor _mouseMovedOverEditor() into two methods with the new _updateHoveredTokenInfo()
503         allowing to customize the mouse coordinates to be used since we may call
504         _updateHoveredTokenInfo() outside of the context of a mouse event (ie. a keypress event).
505
506         (WebInspector.CodeMirrorTokenTrackingController.prototype._windowLostFocus):
507         (WebInspector.CodeMirrorTokenTrackingController.prototype._resetTrackingStates):
508         New private method combining all the various states that need to be reset when tracking
509         is turned off, including the removal of the highlighted range if any. This is now called
510         when the window loses focus.
511
512         * UserInterface/Main.js:
513         (WebInspector.loaded):
514         (WebInspector._mouseMoved):
515         Add a new window-level "mousemove" event handler to always track mouse coordinates and key modifier
516         states. This ensures that we may have the most accurate information possible for key modifiers and
517         allow code to query the last recorded mouse position in situations where it wouldn't be possible
518         to have dealt with a mouse event, as is the case when the tokenTrackingController just started tracking.
519
520         * UserInterface/SourceCodeTextEditor.js:
521         (WebInspector.SourceCodeTextEditor.prototype._updateTokenTrackingControllerEnabled):
522         (WebInspector.SourceCodeTextEditor.prototype._debuggerDidPause):
523         (WebInspector.SourceCodeTextEditor.prototype._debuggerDidResume):
524         (WebInspector.SourceCodeTextEditor.prototype._enableJumpToSymbolTrackingModeSettings):
525         (WebInspector.SourceCodeTextEditor.prototype._disableJumpToSymbolTrackingModeSettings):
526         Update the "enabled" state on the tokenTrackingController when it may have changed based
527         on those two conditions: we should have either an active debugger call frame or the
528         Cmd key should have been pressed. This ensures we only track hovered tokens as needed.
529
530         (WebInspector.SourceCodeTextEditor.prototype._updateJumpToSymbolTrackingMode):
531         Highlight the last known hovered candidate's range as soon as the Cmd key is pressed.
532
533 2013-10-02  Brian J. Burg  <burg@cs.washington.edu>
534
535         Web Inspector: save and restore source positions in back/forward history
536         https://bugs.webkit.org/show_bug.cgi?id=122062
537
538         Reviewed by Timothy Hatcher.
539
540         Previously, the back/forward entries comprised of only the content
541         views, but not their positions if navigated via hyperlink (i.e.,
542         handling script.js:42).  When multiple instances of the same
543         content view appeared in the back/forward list, the most recent
544         navigation was displayed rather than the linked position.
545
546         We now store context necessary to re-navigate such hyperlinks by
547         storing view- specific data inside a cookie object, and invoke a
548         supplied callback to take any position initialization actions,
549         such as calling TextEditor.revealPosition.  This state is
550         encapsulated into BackForwardEntry instances.
551
552         Functions that save and restore scroll positions inside content
553         views have been changed to store state in BackForwardEntry
554         instances, so multiple scroll positions can be saved for a content
555         view appearing in the navigation history more than once.
556
557         * UserInterface/BackForwardEntry.js: Added.
558         (WebInspector.BackForwardEntry):
559         (WebInspector.BackForwardEntry.prototype.get contentView):
560         (WebInspector.BackForwardEntry.prototype.get cookie):
561         (WebInspector.BackForwardEntry.prototype.prepareToShow):
562         (WebInspector.BackForwardEntry.prototype.prepareToHide):
563         (WebInspector.BackForwardEntry.prototype._restoreFromCookie):
564         (WebInspector.BackForwardEntry.prototype._restoreScrollPositions):
565         (WebInspector.BackForwardEntry.prototype._saveScrollPositions):
566         * UserInterface/ContentBrowser.js:
567         (WebInspector.ContentBrowser.prototype.showContentView):
568         (WebInspector.ContentBrowser.prototype._updateContentViewNavigationItems):
569         (WebInspector.ContentBrowser.prototype._updateFindBanner):
570         * UserInterface/ContentViewContainer.js:
571         (WebInspector.ContentViewContainer.prototype.get currentContentView):
572         (WebInspector.ContentViewContainer.prototype.get currentBackForwardEntry):
573         (WebInspector.ContentViewContainer.prototype.showContentView):
574         (WebInspector.ContentViewContainer.prototype.showBackForwardEntryForIndex):
575         (WebInspector.ContentViewContainer.prototype.replaceContentView):
576         (WebInspector.ContentViewContainer.prototype.closeAllContentViewsOfPrototype):
577         (WebInspector.ContentViewContainer.prototype.closeAllContentViews):
578         (WebInspector.ContentViewContainer.prototype.goBack):
579         (WebInspector.ContentViewContainer.prototype.goForward):
580         (WebInspector.ContentViewContainer.prototype.shown):
581         (WebInspector.ContentViewContainer.prototype.hidden):
582         (WebInspector.ContentViewContainer.prototype._showEntry):
583         (WebInspector.ContentViewContainer.prototype._hideEntry):
584         * UserInterface/Main.html:
585         * UserInterface/Main.js:
586         (WebInspector.openURL):
587         * UserInterface/ResourceSidebarPanel.js:
588         (WebInspector.ResourceSidebarPanel.prototype.restoreCallback):
589         (WebInspector.ResourceSidebarPanel.prototype.showSourceCode):
590
591 2013-10-02  Antoine Quint  <graouts@apple.com>
592
593         Web Inspector: highlight newly added console messages in the Activity Viewer
594         https://bugs.webkit.org/show_bug.cgi?id=122093
595
596         Reviewed by Joseph Pecoraro.
597
598         Fade the appropriate console log button in the Activity Viewer for a short duration
599         to call attention to it when its count is incremented. The animation may be restarted
600         in-flight if the count is incremented as we were pulsing the opacity.
601
602         * UserInterface/DashboardView.css:
603         (.toolbar .dashboard > .item.pulsing):
604         (@-webkit-keyframes console-item-pulse):
605         New pulse animation for a console item in the Activity Viewer, the new "pulsing" CSS
606         class is applied in WebInspector.DashboardView.prototype._setConsoleItemValue().
607
608         * UserInterface/DashboardView.js:
609         (WebInspector.DashboardView.prototype.set logs):
610         (WebInspector.DashboardView.prototype.set issues):
611         (WebInspector.DashboardView.prototype.set errors):
612         Refactor setters to use the new WebInspector.DashboardView.prototype._setConsoleItemValue()
613         method.
614
615         (WebInspector.DashboardView.prototype._setConsoleItemValue):
616         We now set the ivar backing console item values in this new refactored method and additionally
617         apply an animation to the DOM element for the given item if its value is incremented such that
618         it pulses, subtly calling out the developer's attention to it.
619
620         * UserInterface/Utilities.js:
621         New Element.prototype.recalculateStyles() method to abstract the hack required to force
622         a style recalc on a given element.
623
624 2013-10-01  Antoine Quint  <graouts@apple.com>
625
626         Web Inspector: evaluate and show a popover for selected text in JS source when paused
627         https://bugs.webkit.org/show_bug.cgi?id=122151
628
629         Reviewed by Joseph Pecoraro.
630
631         Identify if the hovered token is contained within the text selection (if any) and use
632         the selection as the hovered expression to allow the user to select text and hover it
633         to see what it evaluates to.
634
635         * UserInterface/CodeMirrorTokenTrackingController.js:
636         (WebInspector.CodeMirrorTokenTrackingController.prototype.highlightRange):
637         Check we're trying to highlight a different range before removing the highlight
638         and applying the new one, this prevents the marked text from flashing if it's
639         being re-hovered which would easily happen when hovering multiple tokens within
640         the same selection.
641
642         (WebInspector.CodeMirrorTokenTrackingController.prototype._processJavaScriptExpression):
643         In the case where there is selected text, check whether the hovered token is at least
644         partially contained within the selection, and if so use the selection text as the
645         hovered expression to evaluate.
646
647 2013-10-01  Antoine Quint  <graouts@apple.com>
648
649         Console buttons don’t show after page reload
650         https://bugs.webkit.org/show_bug.cgi?id=116515
651
652         Reviewed by Darin Adler.
653
654         The correct display of navigation items in the ContentBrowser is contingent on
655         the ContentViewContainer's _backForwardList being up-to-date when the navigation
656         items are retrieved from it. However, when the main resource changes (in this case
657         the user refreshes the browser), calls are made to ContentViewContainer's
658         closeAllContentViewsOfPrototype() which may modify the _backForwardList but doesn't
659         necessarily notify of a change to the currentContentView since we may be still showing
660         the same view in case it wasn't directly related to the main resource, for instance
661         the console log.
662
663         We now check if the _backForwardList is changed as a result of calling
664         closeAllContentViewsOfPrototype() and in that case also dispatch the
665         CurrentContentViewDidChange event which will restore the correct state
666         for the back/forward buttons and navigation items of the navigation bar.
667
668         * UserInterface/ContentViewContainer.js:
669         (WebInspector.ContentViewContainer.prototype.closeAllContentViewsOfPrototype):
670         Track changes to the _backForwardList and dispatch the CurrentContentViewDidChange
671         event in case such changes happened.
672
673 2013-09-30  Antoine Quint  <graouts@apple.com>
674
675         Web Inspector: rows in the Layer sidebar panel may have the incorrect background color
676         https://bugs.webkit.org/show_bug.cgi?id=122108
677
678         Reviewed by Darin Adler.
679
680         The LayerTreeDataGrid is a custom DataGrid subclass which exposes a .setChildren() method
681         used to sort chidren without DOM order manipulation, for performance reason. However, since
682         the way the alternating background color is usually implemented is based on the built-in
683         CSS pseudo-classes working with DOM order, the background colors of nodes in the LayerTreeDataGrid
684         can be incorrect depending on the sort order and the number of nodes. To fix this, we now manually
685         set "even" and "odd" CSS classes on those nodes when they're sorted such that we have a chance
686         to style them as intended.
687
688         * UserInterface/LayerTreeDataGrid.js:
689         (WebInspector.LayerTreeDataGrid.prototype._updateChildren):
690         Check if the data grid node index is even or odd and reflect this via an exclusive "even"
691         or "odd" CSS class name.
692
693         * UserInterface/LayerTreeSidebarPanel.css:
694         (.layer-tree.panel .data-container tbody > tr.even):
695         (.layer-tree.panel .data-container tbody > tr.odd):
696         Apply alternating colors based on the exclusive "even" and "odd" CSS class names as applied in
697         WebInspector.LayerTreeDataGrid.prototype._updateChildren().
698
699 2013-09-30  Antoine Quint  <graouts@apple.com>
700
701         Web Inspector: Popover displaying "reasons for compositing" may remain on screen after selected layer is removed
702         https://bugs.webkit.org/show_bug.cgi?id=117575
703
704         Ensure the popover attached to the selected data grid node is updated when the
705         content or sort order of the Layer sidebar panel is updated.
706
707         Reviewed by Darin Adler.
708
709         * UserInterface/LayerTreeSidebarPanel.js:
710         (WebInspector.LayerTreeSidebarPanel.prototype._sortDataGrid):
711
712 2013-09-30  Antoine Quint  <graouts@apple.com>
713
714         Web Inspector: nodes can be dragged from the console log
715         https://bugs.webkit.org/show_bug.cgi?id=122105
716
717         Reviewed by Darin Adler.
718
719         Catch "dragstart" events targeting nodes hosted in a DOMTreeOutline within the console
720         log view and prevent the default logic to trigger so that these nodes can't be dragged
721         off the console as it wouldn't make sense to.
722
723         * UserInterface/DOMTreeOutline.js:
724         (WebInspector.DOMTreeOutline):
725         Create a class property to allow the CSS class name to be used in WebInspector.LogContentView.
726
727         * UserInterface/LogContentView.js:
728         (WebInspector.LogContentView):
729         (WebInspector.LogContentView.prototype._ondragstart):
730         Track the "dragstart" events in their capture phase such that, if the event target is
731         a DOM node hosted in a DOMTreeOutline, we can prevent the event from propagating and
732         cancel its default behavior such that no dragging at all is performed.
733
734 2013-09-26  Brian J. Burg  <burg@cs.washington.edu>
735
736         Web Inspector: dissociate old content views that are spliced from back/forward list
737         https://bugs.webkit.org/show_bug.cgi?id=121987
738
739         Reviewed by Timothy Hatcher.
740
741         There was a bug where old back/forward list entries were not being dissociated when
742         the newly-shown content view was already in the list. Instead, dissociation should be
743         skipped if the old list entry is not already in the list.
744
745         * UserInterface/ContentViewContainer.js:
746         (WebInspector.ContentViewContainer.prototype.showContentView):
747
748 2013-09-26  Antoine Quint  <graouts@apple.com>
749
750         Web Inspector: Activity viewer not properly reset when reloading
751         https://bugs.webkit.org/show_bug.cgi?id=121958
752
753         Reviewed by Darin Adler.
754
755         Reset the resources count and accumulated size when we detect the main frame
756         has changed, which will work with documents where there are no resources besides
757         frames in which case WebInspector.Frame.Event.AllResourcesRemoved was not fired
758         and our counts wouldn't be reset correctly.
759
760         * UserInterface/DashboardManager.js:
761         (WebInspector.DashboardManager):
762         (WebInspector.DashboardManager.prototype._mainResourceDidChange):
763
764 2013-09-26  Antoine Quint  <graouts@apple.com>
765
766         Web Inspector: Keep DOM tree expanded on page reload
767         https://bugs.webkit.org/show_bug.cgi?id=121665
768
769         Reviewed by Darin Adler.
770
771         Allow the node that was selected before reloading the page to be selected
772         at the page is reloaded. Credit goes to Joseph Pecoraro for the fix.
773
774         * UserInterface/DOMTreeContentView.js:
775         (WebInspector.DOMTreeContentView.prototype._rootDOMNodeAvailable.selectNode):
776
777 2013-09-24  Joseph Pecoraro  <pecoraro@apple.com>
778
779         Web Inspector: Using Breakpoint Actions Breaks iOS inspection
780         https://bugs.webkit.org/show_bug.cgi?id=121862
781
782         Reviewed by Timothy Hatcher.
783
784         Only use DebuggerAgent.BreakpointActionType if it is available.
785         Otherwise leave options undefined for breakpoints since the backend
786         does not support it.
787
788         * UserInterface/DebuggerManager.js:
789         (WebInspector.DebuggerManager.prototype._setBreakpoint):
790
791 2013-09-24  Joseph Pecoraro  <pecoraro@apple.com>
792
793         Web Inspector: Include iOS 7 Inspector.json Version
794         https://bugs.webkit.org/show_bug.cgi?id=121852
795
796         Reviewed by Timothy Hatcher.
797
798         * UserInterface/Legacy/7.0/InspectorBackendCommands.js: Added.
799         * Versions/Inspector-iOS-7.0.json: Added.
800
801 2013-09-24  Mark Rowe  <mrowe@apple.com>
802
803         <rdar://problem/14971518> WebKit should build against the Xcode default toolchain when targeting OS X 10.8
804
805         Reviewed by Dan Bernstein.
806
807         * Configurations/Base.xcconfig:
808
809 2013-09-24  Joseph Pecoraro  <pecoraro@apple.com>
810
811         Web Inspector: Breakpoint Actions input should disable spellchecking
812         https://bugs.webkit.org/show_bug.cgi?id=121846
813
814         Reviewed by Timothy Hatcher.
815
816         * UserInterface/BreakpointActionView.js:
817
818 2013-09-21  Timothy Hatcher  <timothy@apple.com>
819
820         Hook up the initiator info and show it in the Resource details sidebar.
821
822         https://bugs.webkit.org/show_bug.cgi?id=121741
823
824         Reviewed by Joseph Pecoraro.
825
826         * UserInterface/FrameResourceManager.js:
827         (WebInspector.FrameResourceManager.prototype.resourceRequestWillBeSent):
828         (WebInspector.FrameResourceManager.prototype.resourceRequestWasServedFromMemoryCache):
829         (WebInspector.FrameResourceManager.prototype._addNewResourceToFrame):
830         (WebInspector.FrameResourceManager.prototype._initiatorSourceCodeLocationFromPayload):
831         * UserInterface/NetworkObserver.js:
832         (WebInspector.NetworkObserver.prototype.requestWillBeSent):
833         (WebInspector.NetworkObserver.prototype.requestServedFromMemoryCache):
834         * UserInterface/Resource.js:
835         (WebInspector.Resource):
836         (WebInspector.Resource.prototype.get initiatorSourceCodeLocation):
837         * UserInterface/ResourceDetailsSidebarPanel.js:
838         (WebInspector.ResourceDetailsSidebarPanel):
839         (WebInspector.ResourceDetailsSidebarPanel.prototype._refreshURL):
840
841 2013-09-20  Timothy Hatcher  <timothy@apple.com>
842
843         Parse MIME-types and strip them down to the base type when needed.
844
845         The use of charset in a MIME-type interferes with our type maps,
846         preventing the right syntax highlighting mode and pretty printing.
847
848         https://bugs.webkit.org/show_bug.cgi?id=121723
849
850         Reviewed by Joseph Pecoraro.
851
852         * UserInterface/ConsolePrompt.js:
853         (WebInspector.ConsolePrompt):
854         * UserInterface/FontResourceContentView.js:
855         * UserInterface/Resource.js:
856         (WebInspector.Resource.Type.fromMIMEType):
857         (WebInspector.Resource.prototype.get mimeTypeComponents):
858         (WebInspector.Resource.prototype.get syntheticMIMEType):
859         (WebInspector.Resource.prototype.get contentURL):
860         (WebInspector.Resource.prototype.updateForResponse):
861         * UserInterface/ResourceDetailsSidebarPanel.js:
862         (WebInspector.ResourceDetailsSidebarPanel.prototype._refreshRequestDataSection):
863         * UserInterface/SourceMapResource.js:
864         (WebInspector.SourceMapResource.prototype.requestContentFromBackend):
865         * UserInterface/SyntaxHighlightingSupport.js:
866         (WebInspector.syntaxHighlightStringAsDocumentFragment):
867         * UserInterface/TextEditor.js:
868         (WebInspector.TextEditor.prototype.set mimeType):
869         * UserInterface/Utilities.js:
870         (parseMIMEType): Added.
871
872 2013-09-20  Marcelo Morais  <m.morais@samsung.com>
873
874         Web Inspector: Fix keyboard shortcuts for other platforms
875         https://bugs.webkit.org/show_bug.cgi?id=120657
876
877         Reviewed by Timothy Hatcher.
878
879         Handling keyboard shortcuts according to the current platform.
880
881         * UserInterface/InspectorFrontendHostStub.js:
882         (.WebInspector.InspectorFrontendHostStub.prototype.loadResourceSynchronously):
883         (.WebInspector.InspectorFrontendHostStub.prototype.platform): Added. Return the
884         current platform.
885         * UserInterface/KeyboardShortcut.js:
886         (WebInspector.KeyboardShortcut.Modifier.get CommandOrControl): Added. Created keyboard
887         modifier to return Control or Command key according to current platform.
888         * UserInterface/ContentBrowser.js:
889         (WebInspector.ContentBrowser): Returning Control or Command key for keyboard
890         shortcuts according to current platform.
891         * UserInterface/DebuggerSidebarPanel.js:
892         (WebInspector.DebuggerSidebarPanel): Ditto.
893         * UserInterface/FindBanner.js:
894         (WebInspector.FindBanner): Ditto.
895         * UserInterface/JavaScriptLogViewController.js:
896         (WebInspector.JavaScriptLogViewController): Ditto.
897         * UserInterface/LogContentView.js:
898         (WebInspector.LogContentView): Ditto.
899         * UserInterface/Main.js:
900         (WebInspector.contentLoaded): Ditto.
901         * UserInterface/ResourceSidebarPanel.js:
902         (WebInspector.ResourceSidebarPanel): Ditto.
903
904 2013-09-20  Brent Fulgham  <bfulgham@apple.com>
905
906         [Windows] Unreviewed gardening. Teach WebInspectorUI.vcxproj folder to
907         ignore Visual Studio's local user settings file.
908
909         * WebInspectorUI.vcxproj: Added property svn:ignore.
910
911 2013-09-17  Gustavo Noronha Silva  <gns@gnome.org>
912
913         [GTK] Cannot find WebInspectorUI/UserInterface/Main.html referenced in GResourceBundle.xml
914         https://bugs.webkit.org/show_bug.cgi?id=121405
915
916         Reviewed by Carlos Garcia Campos.
917
918         * GNUmakefile.am: if srcdir == builddir the WebInspectorUI variable that is used both to list
919         the dependencies of the GResourceBundle and to normalize the paths added to the XML through sed
920         replacement will end up starting with ./, which would be fine if automake did not remove that
921         from the paths in the target's dependency. We deal with that by normalizing the path we use to
922         take that quirk into account.
923
924 2013-09-17  Timothy Hatcher  <timothy@apple.com>
925
926         Clean up the Inspector's WebSocket code and prevent it from dropping messages.
927
928         https://bugs.webkit.org/show_bug.cgi?id=121391
929
930         Reviewed by Joseph Pecoraro.
931
932         * UserInterface/InspectorFrontendHostStub.js:
933         (.WebInspector.InspectorFrontendHostStub.prototype.initializeWebSocket): Added. Create the socket
934         and call _sendPendingMessagesToBackendIfNeeded.
935         (.WebInspector.InspectorFrontendHostStub.prototype.sendMessageToBackend): Store messages as pending
936         if the socket isn't ready yet. Call _sendPendingMessagesToBackendIfNeeded.
937         (.WebInspector.InspectorFrontendHostStub.prototype._sendPendingMessagesToBackendIfNeeded): Added.
938         * UserInterface/Main.js:
939         (WebInspector._initializeWebSocketIfNeeded): Move socket creation to initializeWebSocket.
940
941 2013-09-16  Timothy Hatcher  <timothy@apple.com>
942
943         Make InspectorTimelineAgent use an enum for the record type instead of a string.
944
945         https://bugs.webkit.org/show_bug.cgi?id=121461
946
947         Reviewed by Joseph Pecoraro.
948
949         * UserInterface/InspectorBackendCommands.js:
950         * UserInterface/Legacy/6.0/InspectorBackendCommands.js:
951         * UserInterface/TimelineManager.js:
952         (WebInspector.TimelineManager.prototype.eventRecorded.processRecord):
953         (WebInspector.TimelineManager.prototype.eventRecorded):
954         * Versions/Inspector-iOS-6.0.json:
955
956 2013-09-16  Joseph Pecoraro  <pecoraro@apple.com>
957
958         Web Inspector: TypeError when updating ResourceTreeElement created in strange order
959         https://bugs.webkit.org/show_bug.cgi?id=121382
960
961         Reviewed by Timothy Hatcher.
962
963         Patch by Brian Burg. Fix an uncaught exception that can happen on navigations.
964
965         * UserInterface/ResourceTreeElement.js:
966         (WebInspector.ResourceTreeElement.prototype._updateStatus):
967
968 2013-09-16  Timothy Hatcher  <timothy@apple.com>
969
970         Make InspectorTypeBuilder generate better enums in C++.
971
972         https://bugs.webkit.org/show_bug.cgi?id=121440
973
974         Reviewed by Joseph Pecoraro.
975
976         * UserInterface/InspectorBackendCommands.js: Updated to make Css be CSS.
977
978 2013-09-13  Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
979
980         [GTK] Move to the new web inspector
981         https://bugs.webkit.org/show_bug.cgi?id=120647
982
983         Reviewed by Carlos Garcia Campos.
984
985         * GNUmakefile.am: Added. Generate the GResource source and link it into libWebCore.
986
987 2013-09-12  Joseph Pecoraro  <pecoraro@apple.com>
988
989         Web Inspector: Duplicated color swatches changing autocompletes color names
990         https://bugs.webkit.org/show_bug.cgi?id=121265
991
992         Reviewed by Timothy Hatcher.
993
994         CodeMirror bookmarks at position used to be unique but no longer are.
995         Define an extension to give us unique bookmarks as we expected, and
996         update all the old locations using setBookmark.
997
998         * UserInterface/CSSStyleDeclarationTextEditor.js:
999         (WebInspector.CSSStyleDeclarationTextEditor.prototype.didDismissPopover):
1000         (WebInspector.CSSStyleDeclarationTextEditor.prototype._updateTextMarkers):
1001         (WebInspector.CSSStyleDeclarationTextEditor.prototype.):
1002         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches):
1003         (WebInspector.CSSStyleDeclarationTextEditor.prototype):
1004         (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText):
1005         * UserInterface/CodeMirrorAdditions.js:
1006
1007 2013-09-12  Joseph Pecoraro  <pecoraro@apple.com>
1008
1009         Web Inspector: Update CodeMirror for gutter fix
1010         https://bugs.webkit.org/show_bug.cgi?id=121262
1011
1012         Update CodeMirror to 757944449 to fix gutter click issue:
1013         <https://github.com/marijnh/CodeMirror/issues/1807>
1014
1015         Reviewed by Timothy Hatcher.
1016
1017         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
1018         * Tools/PrettyPrinting/FormatterContentBuilder.js:
1019         (FormatterContentBuilder.prototype._appendIndent):
1020         * Tools/PrettyPrinting/codemirror.css:
1021         * Tools/PrettyPrinting/codemirror.js:
1022         * Tools/PrettyPrinting/css.js:
1023         * UserInterface/CodeMirrorAdditions.js:
1024         * UserInterface/CodeMirrorFormatters.js:
1025         * UserInterface/DebuggerManager.js:
1026         (WebInspector.DebuggerManager.prototype.didRemoveBreakpoint):
1027         (WebInspector.DebuggerManager.prototype._removeBreakpoint):
1028         * UserInterface/External/CodeMirror/codemirror.css:
1029         * UserInterface/External/CodeMirror/codemirror.js:
1030         * UserInterface/External/CodeMirror/coffeescript.js:
1031         * UserInterface/External/CodeMirror/css.js:
1032         * UserInterface/External/CodeMirror/less.js:
1033         * UserInterface/External/CodeMirror/sql.js:
1034         * UserInterface/TextEditor.js:
1035         (WebInspector.TextEditor.prototype.hasFormatter):
1036
1037 2013-09-12  Joseph Pecoraro  <pecoraro@apple.com>
1038
1039         Web Inspector: Update License copyrights in minified JavaScript
1040         https://bugs.webkit.org/show_bug.cgi?id=121264
1041
1042         Reviewed by Timothy Hatcher.
1043
1044         * Scripts/copy-user-interface-resources.sh:
1045
1046 2013-09-11  Geoffrey Garen  <ggaren@apple.com>
1047
1048         Removed some unused functions from the debugger interface
1049         https://bugs.webkit.org/show_bug.cgi?id=121194
1050
1051         Reviewed by Joseph Pecoraro.
1052
1053         We plan to use the "evaluate" API and debugger activation property access for all the features we need.
1054
1055         * UserInterface/InspectorBackendCommands.js: Updated by script.
1056
1057 2013-09-06  Joseph Pecoraro  <pecoraro@apple.com>
1058
1059         Web Inspector: Download Archive button incorrectly styled when disabled and tree element is not-selected
1060         https://bugs.webkit.org/show_bug.cgi?id=120866
1061
1062         Reviewed by Timothy Hatcher.
1063
1064         * UserInterface/TreeElementStatusButton.css:
1065         (.item > .status > .status-button.disabled > svg *):
1066
1067 2013-09-06  Joseph Pecoraro  <pecoraro@apple.com>
1068
1069         Web Inspector: Lint JavaScript and CSS for minor issues
1070         https://bugs.webkit.org/show_bug.cgi?id=120884
1071
1072         Reviewed by Timothy Hatcher.
1073
1074         JS, caught a bunch of missing semicolons but at least one possible
1075         issue with duplicate object literal keys in CSSKeywordCompletions.
1076
1077         CSS, cause some duplicate properties, an invalid property value,
1078         and some "0px" => "0" cleanup.
1079
1080 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
1081
1082         Web Inspector: Breakpoint Action JS Editor has line wrapping issues with long no-space lines
1083         https://bugs.webkit.org/show_bug.cgi?id=120822
1084
1085         Reviewed by Timothy Hatcher.
1086
1087         * UserInterface/BreakpointActionView.css:
1088         (.breakpoint-action-eval-editor > .CodeMirror):
1089         (.breakpoint-action-eval-editor > .CodeMirror-scroll):
1090
1091 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
1092
1093         Web Inspector: Edit Breakpoint popover sometimes appears misplaced in top left
1094         https://bugs.webkit.org/show_bug.cgi?id=120804
1095
1096         Reviewed by Timothy Hatcher.
1097
1098         Grab the bounding rect immediately, instead of grabbing it from the element
1099         after the user has selected the "Edit Breakpoint" context menu item. When
1100         the popover was misplaced it was when using an element had been removed or
1101         replaced in the DOM, and caused a bogus bounding client rect.
1102
1103         * UserInterface/Breakpoint.js:
1104         (WebInspector.Breakpoint.prototype.editBreakpoint):
1105         (WebInspector.Breakpoint.prototype._showEditBreakpointPopover):
1106
1107 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
1108
1109         Web Inspector: Remove harmless assert, triggered hitting breakpoint in auto prettyprinted code on reload
1110         https://bugs.webkit.org/show_bug.cgi?id=120332
1111
1112         Reviewed by Timothy Hatcher.
1113
1114         * UserInterface/TextEditor.js:
1115
1116 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
1117
1118         Web Inspector: Breakpoint Actions
1119         https://bugs.webkit.org/show_bug.cgi?id=120576
1120
1121         Reviewed by Timothy Hatcher.
1122
1123         Give the CodeMirror editor for JavaScript Breakpoint Actions JS Runtime
1124         completions (like window, document, etc.).
1125
1126         The logic was inside of JavaScriptLogViewController but was already
1127         entirely independent. Factor it out into its own class and plug it into
1128         CodeMirrorCompletionController as a "CompletionsProvider".
1129
1130         Because the class hooks into a global event to reset some state, make
1131         it a singleton, so new instances are not leaked.
1132
1133         * UserInterface/Main.html:
1134         * UserInterface/Main.js:
1135         (WebInspector.loaded):
1136         * UserInterface/RuntimeManager.js: Added.
1137         (WebInspector.RuntimeManager):
1138         (WebInspector.RuntimeManager.prototype.evalCallback):
1139         (WebInspector.RuntimeManager.prototype.evaluateInInspectedWindow):
1140         Move eval in window to new RuntimeManager. A slightly cleaner place to this
1141         since it is used both by the console and JS completions provider.
1142
1143         * UserInterface/CodeMirrorCompletionController.js:
1144         (WebInspector.CodeMirrorCompletionController):
1145         (WebInspector.CodeMirrorCompletionController.prototype.setExtendedCompletionProvider):
1146         (WebInspector.CodeMirrorCompletionController.prototype._completeAtCurrentPosition):
1147         Allow a completions provider plugin to completions controller. If one
1148         is available, this supercedes the delegate extend completions path.
1149
1150         * UserInterface/BreakpointActionView.js:
1151         * UserInterface/ConsolePrompt.js:
1152         (WebInspector.ConsolePrompt):
1153         Use the new JS completions provider to get runtime JS completions.
1154         NOTE: ConsolePrompt still needs the delegate path for SQL completions.
1155
1156         * UserInterface/JavaScriptLogViewController.js:
1157         (WebInspector.JavaScriptLogViewController):
1158         (WebInspector.JavaScriptLogViewController.prototype.consolePromptTextCommitted):
1159         * UserInterface/JavaScriptRuntimeCompletionProvider.js: Added.
1160         (WebInspector.JavaScriptRuntimeCompletionProvider):
1161         (get WebInspector.JavaScriptRuntimeCompletionProvider.prototype.):
1162         (get WebInspector.JavaScriptRuntimeCompletionProvider.prototype.completionControllerCompletionsNeeded):
1163         Move the JS completions code to a new class. No changes needed.
1164
1165 2013-09-05  Joseph Pecoraro  <pecoraro@apple.com>
1166
1167         Web Inspector: Breakpoint Actions
1168         https://bugs.webkit.org/show_bug.cgi?id=120576
1169
1170         Reviewed by Timothy Hatcher.
1171
1172         * UserInterface/Breakpoint.js:
1173         (WebInspector.Breakpoint):
1174         (WebInspector.Breakpoint.prototype.get actions):
1175         (WebInspector.Breakpoint.prototype.get options):
1176         (WebInspector.Breakpoint.prototype.get info):
1177         (WebInspector.Breakpoint.prototype._serializableActions):
1178         Saving, restoring, and serialization.
1179
1180         (WebInspector.Breakpoint.prototype.createAction):
1181         (WebInspector.Breakpoint.prototype.recreateAction):
1182         (WebInspector.Breakpoint.prototype.removeAction):
1183         (WebInspector.Breakpoint.prototype.breakpointActionDidChange):
1184         Modifying _actions ivar.
1185
1186         (WebInspector.Breakpoint.prototype._editBreakpointPopoverContentElement):
1187         (WebInspector.Breakpoint.prototype._popoverActionsCreateAddActionButton):
1188         (WebInspector.Breakpoint.prototype._popoverActionsAddActionButtonClicked):
1189         (WebInspector.Breakpoint.prototype._popoverActionsInsertBreakpointActionView):
1190         (WebInspector.Breakpoint.prototype.breakpointActionViewAppendActionView):
1191         (WebInspector.Breakpoint.prototype.breakpointActionViewRemoveActionView):
1192         (WebInspector.Breakpoint.prototype.breakpointActionViewResized):
1193         Popover UI containing breakpoint action views and converting to and from
1194         having no actions.
1195
1196         (WebInspector.Breakpoint.prototype.willDismissPopover):
1197         Cleanup some ivars when the popover dismisses.
1198
1199         * UserInterface/Breakpoint.css:
1200         (.popover .edit-breakpoint-popover-content.wide):
1201         Wider setting when there are actions in the popover.
1202
1203         (.popover .edit-breakpoint-popover-content > table > tr > th):
1204         Keep the title labels at the top of their section.
1205
1206         * UserInterface/BreakpointAction.js:
1207         (WebInspector.BreakpointAction):
1208         (WebInspector.BreakpointAction.prototype.get breakpoint):
1209         (WebInspector.BreakpointAction.prototype.get type):
1210         (WebInspector.BreakpointAction.prototype.get data):
1211         (WebInspector.BreakpointAction.prototype.set data):
1212         (WebInspector.BreakpointAction.prototype.get info):
1213         Very basic BreakpointAction class. Notifies Breakpoint on data changes.
1214         Type changes are not allowed, instead just create a new BreakpointAction.
1215
1216         * UserInterface/BreakpointActionView.css: Added.
1217         (.breakpoint-action-block-header):
1218         (.breakpoint-action-remove-button):
1219         (.breakpoint-action-remove-button:active):
1220         (.breakpoint-action-append-button):
1221         (.breakpoint-action-block-body):
1222         (.breakpoint-action-block-body > input):
1223         (.breakpoint-action-eval-editor):
1224         (.breakpoint-action-eval-editor > .CodeMirror):
1225         (.breakpoint-action-eval-editor > .CodeMirror-scroll):
1226         * UserInterface/BreakpointActionView.js: Added.
1227         (WebInspector.BreakpointActionView):
1228         (WebInspector.BreakpointActionView.displayStringForType):
1229         (WebInspector.BreakpointActionView.prototype.get action):
1230         (WebInspector.BreakpointActionView.prototype.get element):
1231         (WebInspector.BreakpointActionView.prototype._pickerChanged):
1232         (WebInspector.BreakpointActionView.prototype._appendActionButtonClicked):
1233         (WebInspector.BreakpointActionView.prototype._removeActionButtonClicked):
1234         (WebInspector.BreakpointActionView.prototype._updateBody.switch.break):
1235         (WebInspector.BreakpointActionView.prototype._logInputChanged):
1236         (WebInspector.BreakpointActionView.prototype._codeMirrorBlurred):
1237         (WebInspector.BreakpointActionView.prototype._codeMirrorViewportChanged):
1238         UI and form controls for individual breakpoint actions. The view
1239         wraps a single BreakpointAction, and for any actions that could affect
1240         other views the delegate is notified.
1241
1242         * UserInterface/DebuggerManager.js:
1243         (WebInspector.DebuggerManager):
1244         (WebInspector.DebuggerManager.prototype._debuggerBreakpointActionType):
1245         When sending to the backend, make sure to send protocol enums.
1246
1247         * UserInterface/Popover.js:
1248         (WebInspector.Popover.prototype.update):
1249         Update the popover when content changes.
1250
1251         * UserInterface/Images/BreakpointActionAdd.svg: Added.
1252         * UserInterface/Images/BreakpointActionRemove.svg: Added.
1253         * UserInterface/InspectorBackendCommands.js:
1254         * UserInterface/Main.html:
1255         * Localizations/en.lproj/localizedStrings.js:
1256         Misc. New strings, images, includes.
1257
1258 2013-09-03  Antoine Quint  <graouts@apple.com>
1259
1260         Web Inspector: exceptions triggered from console evaluation do not pause the debugger
1261         https://bugs.webkit.org/show_bug.cgi?id=120460
1262
1263         We used to preclude any debugging from errors stemming from code evaluated in the console
1264         as we would always set the doNotPauseOnExceptionsAndMuteConsole parameter to "false" when
1265         calling JavaScriptLogViewController._evaluateInInspectedWindow(). However, it is desirable
1266         to allow debugging code ran from the console.
1267
1268         We now allow debugging in such a scenario and we filter out call frames coming from the
1269         Web Inspector injected script as well as the call frame for the console prompt such that
1270         we only pause in the debugger in case the exception is in code under the console prompt
1271         and not the console code prompt itself.
1272
1273         Additionally, to prevent stepping out to call frames we may have filtered out, we disable
1274         the "step out" button in cases where there are no further frames in the frontend to go out to.
1275
1276         Reviewed by Timothy Hatcher.
1277
1278         * UserInterface/DebuggerManager.js:
1279         (WebInspector.DebuggerManager.prototype.debuggerDidPause):
1280         Filter out call frames that have a URL coming from Web Inspector injected script by looking
1281         for a URL starting with the "__WebInspector" prefix. If we determine that there are no call
1282         frames left after filtering, we resume code evaluation such that we only pause in the debugger
1283         when the exception is in code evluated under the console prompt.
1284
1285         * UserInterface/DebuggerSidebarPanel.js:
1286         (WebInspector.DebuggerSidebarPanel):
1287         (WebInspector.DebuggerSidebarPanel.prototype._debuggerDidPause):
1288         (WebInspector.DebuggerSidebarPanel.prototype._debuggerActiveCallFrameDidChange):
1289         Monitor any change to the active call frame such that we may tie the state of the
1290         "step out" button to the availability of a call frame to step out to in the filtered
1291         list set on the DebuggerManager.
1292
1293         * UserInterface/JavaScriptLogViewController.js:
1294         (WebInspector.JavaScriptLogViewController.prototype.consolePromptTextCommitted):
1295         Set the doNotPauseOnExceptionsAndMuteConsole to "false" when calling _evaluateInInspectedWindow()
1296         in order to allow pausing on exceptions coming from code evalued in the console. Also, explicitly
1297         set a sourceURL for the script to evaluate such that we may identify its origin when filtering
1298         call frames stemming from inspector code.
1299
1300         * UserInterface/ResourceSidebarPanel.js:
1301         (WebInspector.ResourceSidebarPanel.prototype._scriptWasAdded):
1302         Filter out any script resource starting with the Web Inspector-specific "__WebInspector" prefix
1303         so that injected script does not show up.
1304
1305 2013-08-30  Brent Fulgham  <bfulgham@apple.com>
1306
1307         [Windows] Correct windows build. Get rid of unnecessary pre-build step. We don't build anything
1308         in this project, just copy some files into the WebKit resource folder. This was fooling the
1309         build system into thinking something failed, resulting in a build error.
1310
1311         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Remove reference to WebInspectorUIPreBuild.cmd
1312         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters:
1313         * WebInspectorUI.vcxproj/WebInspectorUIPreBuild.cmd: Removed.
1314
1315 2013-08-30  Brent Fulgham  <bfulgham@apple.com>
1316
1317         [Windows] Build correction after dependency change.
1318
1319         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Remove circular dependency on
1320         WebKit, and control this at the solution level. The prior change broke external
1321         builders.
1322
1323 2013-08-30  Brent Fulgham  <bfulgham@apple.com>
1324
1325         [Windows] Unreviewed build gardening.
1326
1327         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Adjust build dependencies so
1328         that WebInspectorUI 'builds' after WebKit so that the expected resource directory
1329         structure is always in place.
1330
1331 2013-08-30  Joseph Pecoraro  <pecoraro@apple.com>
1332
1333         Web Inspector: Breakpoints should have Automatically Continue Option
1334         https://bugs.webkit.org/show_bug.cgi?id=120187
1335
1336         Reviewed by Timothy Hatcher.
1337
1338         * Localizations/en.lproj/localizedStrings.js:
1339         * UserInterface/Breakpoint.css:
1340         (#edit-breakpoint-popoover-auto-continue):
1341         Misc. changes for UI.
1342
1343         * UserInterface/Breakpoint.js:
1344         (WebInspector.Breakpoint):
1345         (WebInspector.Breakpoint.prototype.get autoContinue):
1346         (WebInspector.Breakpoint.prototype.set autoContinue):
1347         (WebInspector.Breakpoint.prototype.get options):
1348         (WebInspector.Breakpoint.prototype.get info):
1349         General maintenance of the autoContinue state.
1350
1351         (WebInspector.Breakpoint.prototype._popoverToggleEnabledCheckboxChanged):
1352         (WebInspector.Breakpoint.prototype._popoverToggleAutoContinueCheckboxChanged):
1353         (WebInspector.Breakpoint.prototype._editBreakpointPopoverContentElement):
1354         Edit Breakpoint UI for setting autoContinue state.
1355
1356         * UserInterface/InspectorBackend.js:
1357         (InspectorBackendClass.prototype.registerCommand):
1358         (InspectorBackendClass.prototype._supports):
1359         Extension to check if a BackendCommands method supports a particular param.
1360
1361         * UserInterface/DebuggerManager.js:
1362         (WebInspector.DebuggerManager):
1363         (WebInspector.DebuggerManager.prototype._setBreakpoint):
1364         * UserInterface/InspectorBackendCommands.js:
1365         Change to backend agent calls for the new protocol API.
1366
1367 2013-08-29  Timothy Hatcher  <timothy@apple.com>
1368
1369         Make incrementing and decrementing numbers by 0.1 require the control key, and not near zero numbers.
1370
1371         https://bugs.webkit.org/show_bug.cgi?id=120492
1372         <rdar://problem/13738935> Incrementing and decrementing numbers near zero is annoying compared to earlier releases
1373
1374         Reviewed by Joseph Pecoraro.
1375
1376         * UserInterface/CodeMirrorAdditions.js:
1377         (alterNumber): Remove near zero check.
1378
1379 2013-08-29  Timothy Hatcher  <timothy@apple.com>
1380
1381         Only modify numbers if they are identified by CodeMirror as a number.
1382
1383         https://bugs.webkit.org/show_bug.cgi?id=120484
1384
1385         <rdar://problem/13877085> REGRESSION: Alt-up and Alt-down don't work when cursor is in unit
1386         <rdar://problem/13058697> PARITY: Option-Up arrow in "translate3d" should not modify number to make" translate4d"
1387
1388         Reviewed by Joseph Pecoraro.
1389
1390         * UserInterface/CodeMirrorAdditions.js:
1391         (CodeMirror.prototype.alterNumberInRange): Correctly preserve the selection, even if it differs from
1392         the range passed in.
1393         (alterNumber): Find number tokens and pass those to alterNumberInRange.
1394         (alterNumber.findNumberToken): Added. Helper.
1395
1396 2013-08-29  Timothy Hatcher  <timothy@apple.com>
1397
1398         Make incrementing and decrementing numbers by 0.1 require the control key, and not near zero numbers.
1399
1400         https://bugs.webkit.org/show_bug.cgi?id=120492
1401         <rdar://problem/13738935> Incrementing and decrementing numbers near zero is annoying compared to earlier releases
1402
1403         Reviewed by Joseph Pecoraro.
1404
1405         * UserInterface/CodeMirrorAdditions.js:
1406         (alterNumber): Remove near zero check.
1407
1408 2013-08-29  Joseph Pecoraro  <pecoraro@apple.com>
1409
1410         Web Inspector: Download Web Archive of Inspected Page
1411         https://bugs.webkit.org/show_bug.cgi?id=119774
1412
1413         Reviewed by Timothy Hatcher.
1414
1415         * UserInterface/ContentBrowser.js:
1416         (WebInspector.ContentBrowser.prototype._saveDataToFile):
1417         Allow a custom save handler which will do all the work.
1418
1419         * UserInterface/DOMTreeContentView.js:
1420         (WebInspector.DOMTreeContentView):
1421         (WebInspector.DOMTreeContentView.prototype.get supportsSave):
1422         (WebInspector.DOMTreeContentView.prototype.get saveData.saveHandler):
1423         (WebInspector.DOMTreeContentView.prototype.get saveData):
1424         Allow Save keyboard shortcut to download an archive viewing the DOM Tree.
1425
1426         * UserInterface/ResourceTreeElement.js:
1427         (WebInspector.ResourceTreeElement.prototype._updateStatus):
1428         * UserInterface/FrameTreeElement.js:
1429         (WebInspector.FrameTreeElement):
1430         (WebInspector.FrameTreeElement.prototype.updateStatusForMainFrame):
1431         (WebInspector.FrameTreeElement.prototype._mainResourceDidChange):
1432         (WebInspector.FrameTreeElement.prototype._shouldGroupIntoFolders):
1433         (WebInspector.FrameTreeElement.prototype._reloadPageClicked):
1434         (WebInspector.FrameTreeElement.prototype._downloadButtonClicked):
1435         (WebInspector.FrameTreeElement.prototype._updateDownloadButton):
1436         (WebInspector.FrameTreeElement.prototype._pageArchiveStarted):
1437         (WebInspector.FrameTreeElement.prototype._pageArchiveEnded):
1438         Move handling of main frame TreeElement buttons to FrameTreeElement.
1439         Add a Download button, and enable/disable it appropriately.
1440
1441         * UserInterface/ResourceTreeElement.css:
1442         * UserInterface/TreeElementStatusButton.css: Copied from Source/WebInspectorUI/UserInterface/ResourceTreeElement.css.
1443         (.item > .status > .status-button):
1444         (.item > .status > .status-button > svg *):
1445         (.item.selected > .status > .status-button > svg *):
1446         (.item.selected > .status > .status-button:active > svg *):
1447         (.item > .status > .status-button.disabled > svg *):
1448         (.item.selected > .status > .status-button.disabled > svg *):
1449         * UserInterface/TreeElementStatusButton.js: Added.
1450         (WebInspector.TreeElementStatusButton):
1451         (WebInspector.TreeElementStatusButton.prototype.get element):
1452         (WebInspector.TreeElementStatusButton.prototype.get hidden):
1453         (WebInspector.TreeElementStatusButton.prototype.set hidden):
1454         (WebInspector.TreeElementStatusButton.prototype.get enabled):
1455         (WebInspector.TreeElementStatusButton.prototype.set enabled):
1456         (WebInspector.TreeElementStatusButton.prototype._clicked):
1457         Make buttons in the TreeElement status a generic class to share styling
1458         and handling of the buttons. New "disabled" state with even more
1459         transparent is used when the page is downloading.
1460
1461         * UserInterface/Main.html:
1462         * UserInterface/Main.js:
1463         (WebInspector.archiveMainFrame):
1464         (WebInspector.canArchiveMainFrame):
1465         Generic API for archiving the page and determining if you can archive it.
1466
1467         * UserInterface/InspectorBackendCommands.js:
1468         * UserInterface/InspectorFrontendHostStub.js:
1469         (.WebInspector.InspectorFrontendHostStub.prototype.save):
1470         * UserInterface/Images/DownloadArrow.svg: Added.
1471         * Localizations/en.lproj/localizedStrings.js:
1472         Misc. updates and new files.
1473
1474 2013-08-28  Joseph Pecoraro  <pecoraro@apple.com>
1475
1476         Web Inspector: Give reload icon an :active state and allow CSS to style some SVG images
1477         https://bugs.webkit.org/show_bug.cgi?id=120384
1478
1479         Reviewed by Timothy Hatcher.
1480
1481         The Reload icon is duplicated just to provide different fill colors.
1482         Convert from using <img> to an <svg> document for this image, and style
1483         it with CSS. This also makes it trivial to add an :active state.
1484
1485         * UserInterface/ImageUtilities.js:
1486         (.invokeCallbackWithDocument):
1487         (.imageLoad):
1488         (.imageError):
1489         (wrappedSVGDocument):
1490         Helpers for downloading and in memory caching SVG images.
1491
1492         * UserInterface/Images/Reload.svg:
1493         * UserInterface/Images/ReloadSelected.svg: Removed.
1494         Updated Reload image better matches the original design (slightly
1495         larger). And the duplicate image can be removed.
1496
1497         * UserInterface/ResourceTreeElement.css:
1498         (.item.resource > .status > .reload-button):
1499         (.item.resource > .status > .reload-button > svg *):
1500         (.item.resource.selected > .status > .reload-button > svg *):
1501         (.item.resource.selected > .status > .reload-button:active > svg *):
1502         Different styles, including a new :active style.
1503
1504         * UserInterface/ResourceTreeElement.js:
1505         (WebInspector.ResourceTreeElement.prototype._updateStatusWithMainFrameButtons):
1506         (WebInspector.ResourceTreeElement.prototype._updateStatus):
1507         Handle updating the main frame's state asynchronously since loading the SVG
1508         image document is asynchronous.
1509
1510 2013-08-27  Joseph Pecoraro  <pecoraro@apple.com>
1511
1512         Web Inspector: Debugger should have Continue to Here Context Menu
1513         https://bugs.webkit.org/show_bug.cgi?id=120189
1514
1515         Reviewed by Timothy Hatcher.
1516
1517         When paused in the debugger and presenting a Context Menu in the
1518         gutter, include a "Continue to Here" option. This requires a
1519         script/line/column location combination.
1520
1521         * UserInterface/DebuggerManager.js:
1522         (WebInspector.DebuggerManager.prototype.continueToLocation):
1523         * UserInterface/Resource.js:
1524         (WebInspector.Resource.prototype.scriptForLocation):
1525         * UserInterface/SourceCodeTextEditor.js:
1526         (WebInspector.SourceCodeTextEditor.prototype.continueToLocation):
1527         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
1528
1529 2013-08-26  Joseph Pecoraro  <pecoraro@apple.com>
1530
1531         Web Inspector: We should regenerate InspectorBackendCommands.js for Legacy Inspector.json versions
1532         https://bugs.webkit.org/show_bug.cgi?id=120242
1533
1534         Reviewed by Timothy Hatcher.
1535
1536         - Include the iOS 6.0 Inspector.json which maps to Legacy/6.0/InspectorBackendCommands.js.
1537         - Provide a helper script to regenerate the backend commands file for trunk and Versions.
1538         - Regenerated file now includes enums and other minor changes.
1539
1540         * Scripts/update-InspectorBackendCommands.rb: Added.
1541         * UserInterface/InspectorBackendCommands.js:
1542         * UserInterface/Legacy/6.0/InspectorBackendCommands.js:
1543         * Versions/Inspector-iOS-6.0.json: Added.
1544
1545 2013-08-24  Joseph Pecoraro  <pecoraro@apple.com>
1546
1547         Web Inspector: Breakpoints in the editors gutter should have a contextmenu
1548         https://bugs.webkit.org/show_bug.cgi?id=120169
1549
1550         Reviewed by Timothy Hatcher.
1551
1552         Updated CodeMirror now has a gutterContextMenu event. Use that to give
1553         breakpoint related context menus. Add, Edit, Enable/Disable, Delete, and
1554         Reveal in Debugger Navigation Sidebar.
1555
1556         * Localizations/en.lproj/localizedStrings.js:
1557         "Add Breakpoint", and "Reveal in Debugger Navigation Sidebar".
1558
1559         * UserInterface/SourceCodeTextEditor.js:
1560         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.addBreakpoint):
1561         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.revealInSidebar):
1562         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.removeBreakpoints):
1563         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu.toggleBreakpoints):
1564         (WebInspector.SourceCodeTextEditor.prototype.textEditorGutterContextMenu):
1565         Show a context menu when clicking on the gutter for 0 breakpoints,
1566         1 breakpoint, or >1 breakpoints. The only tricky handler is addBreakpoint,
1567         since that must update the TextEditor for the new breakpoint info.
1568
1569         * UserInterface/TextEditor.js:
1570         (WebInspector.TextEditor):
1571         (WebInspector.TextEditor.prototype._gutterContextMenu):
1572         Send to delegate if the delegate implements textEditorGutterContextMenu.
1573
1574 2013-08-23  Joseph Pecoraro  <pecoraro@apple.com>
1575
1576         Web Inspector: Fix js minification of updated CodeMirror
1577         https://bugs.webkit.org/show_bug.cgi?id=120231
1578
1579         Reviewed by Andy Estes.
1580
1581         Workaround a jsmin issue with "return //.test();" lines when
1582         minifying JavaScript in production builds.
1583
1584         * Scripts/copy-user-interface-resources.sh:
1585         * UserInterface/External/CodeMirror/codemirror.js:
1586         (window.CodeMirror):
1587
1588 2013-08-22  Joseph Pecoraro  <pecoraro@apple.com>
1589
1590         <https://webkit.org/b/120165> Web Inspector: Update CodeMirror to 3.16.1
1591
1592         Reviewed by Andy Estes.
1593
1594         * Tools/PrettyPrinting/codemirror.css:
1595         * Tools/PrettyPrinting/codemirror.js:
1596         * Tools/PrettyPrinting/css.js:
1597         * Tools/PrettyPrinting/javascript.js:
1598         * UserInterface/External/CodeMirror/codemirror.css:
1599         * UserInterface/External/CodeMirror/codemirror.js:
1600         * UserInterface/External/CodeMirror/css.js:
1601         * UserInterface/External/CodeMirror/javascript.js:
1602         * UserInterface/External/CodeMirror/xml.js:
1603
1604 2013-08-21  Brent Fulgham  <bfulgham@apple.com>
1605
1606         [Windows] Clean up project file after %PlatformArchitecture% change landed.
1607
1608         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Remove hard-coded settings covered
1609         by our configuration files.
1610         * WebInspectorUI.vcxproj/WebInspectorUIPostBuild.cmd: Use the %PlatformArchitecture%
1611         macro to support 32- and 64-bit builds.
1612
1613 2013-08-20  Brent Fulgham  <bfulgham@apple.com>
1614
1615         <http://webkit.org/b/120098> [Windows] Enable the New Web Inspector
1616
1617         Reviewed by Brian Weinstein.
1618
1619         Add a new project to copy files to the appropriate spots in the
1620         Windows port.
1621
1622         * WebInspectorUI.vcxproj: Added.
1623         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj: Added.
1624         * WebInspectorUI.vcxproj/WebInspectorUI.vcxproj.filters: Added.
1625         * WebInspectorUI.vcxproj/WebInspectorUIPostBuild.cmd: Added.
1626         * WebInspectorUI.vcxproj/WebInspectorUIPreBuild.cmd: Added.
1627
1628 2013-08-19  James Craig  <james@cookiecrook.com>
1629
1630         <https://webkit.org/b/118106> Web Inspector: AX: Add additional contextual labels for Error/Warnings/Logs that will be spoken for screen readers
1631
1632         Reviewed by Joseph Pecoraro.
1633
1634         Changed general console "Output" string to more specific "Error", "Warning", etc for accessibility.
1635
1636         * Localizations/en.lproj/localizedStrings.js:
1637         * UserInterface/ConsoleCommandResult.js:
1638         * UserInterface/ConsoleMessageImpl.js:
1639
1640 2013-08-16  James Craig  <james@cookiecrook.com>
1641
1642         <https://webkit.org/b/118105> Web Inspector: AX: Add support for ARIA tablists/tabs to inspector tabs
1643
1644         Reviewed by Joseph Pecoraro.
1645
1646         Updating accessibility roles and attributes for single-select toolbar item sets.
1647
1648         * UserInterface/ActivateButtonNavigationItem.js:
1649         (WebInspector.ActivateButtonNavigationItem):
1650         (WebInspector.ActivateButtonNavigationItem.prototype.set activated):
1651         * UserInterface/ActivateButtonToolbarItem.js:
1652         (WebInspector.ActivateButtonToolbarItem):
1653         * UserInterface/ButtonToolbarItem.js:
1654         (WebInspector.ButtonToolbarItem):
1655         * UserInterface/SidebarPanel.js:
1656         (WebInspector.SidebarPanel):
1657         * UserInterface/Toolbar.js:
1658         (WebInspector.Toolbar):
1659
1660 2013-08-13  Dean Jackson  <dino@apple.com>
1661
1662         <https://webkit.org/b/119778> Add Canvas protocol observer
1663
1664         Reviewed by Joseph Pecoraro.
1665
1666         In preparation for listening to backend events about canvas profiling,
1667         add a canvas observer.
1668
1669         * UserInterface/CanvasObserver.js: New empty CanvasObserver object.
1670         (WebInspector.CanvasObserver):
1671         (WebInspector.CanvasObserver.prototype.contextCreated):
1672         (WebInspector.CanvasObserver.prototype.traceLogsRemoved):
1673         * UserInterface/Main.html:
1674         * UserInterface/Main.js:
1675         (WebInspector.loaded):
1676
1677 2013-08-11  Dean Jackson  <dino@apple.com>
1678
1679         Update localizedStrings - I think I checked in an unmerged version
1680         in the previous commit.
1681
1682         * Localizations/en.lproj/localizedStrings.js:
1683
1684 2013-08-11  Dean Jackson  <dino@apple.com>
1685
1686         Bootstrap canvas profiler
1687         https://bugs.webkit.org/show_bug.cgi?id=119652
1688         <rdar://problem/14703665>
1689
1690         Reviewed by Joseph Pecoraro.
1691
1692         Add enough to get an empty Canvas profile recording
1693         and displayed.
1694
1695         * Localizations/en.lproj/localizedStrings.js: Add canvas strings.
1696         * UserInterface/CanvasProfileObject.js: Added. Mostly copied from CSS Selector Profiles.
1697         * UserInterface/CanvasProfileType.js: Added. Ditto.
1698         * UserInterface/CanvasDataGridNode.js: Added. Ditto.
1699         * UserInterface/CanvasProfileView.js: Added. Ditto.
1700         * UserInterface/ContentView.js:
1701         (WebInspector.ContentView): Add support for the new View type.
1702         (WebInspector.ContentView.isViewable):
1703         * UserInterface/InstrumentSidebarPanel.js:
1704         (WebInspector.InstrumentSidebarPanel): Add support for canvas profiles.
1705         (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphMousedOver):
1706         (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphMousedDown):
1707         (WebInspector.InstrumentSidebarPanel.prototype._recordProfileGlyphClicked):
1708         (WebInspector.InstrumentSidebarPanel.prototype._profileTypeWasSelected):
1709         (WebInspector.InstrumentSidebarPanel.prototype._profilesCleared):
1710         * UserInterface/Main.html: Load the new files.
1711         * UserInterface/ProfileManager.js: New methods and support for canvas profiles.
1712         (WebInspector.ProfileManager):
1713         (WebInspector.ProfileManager.prototype.initialize):
1714         (WebInspector.ProfileManager.prototype.isProfilingCanvas):
1715         (WebInspector.ProfileManager.prototype.startProfilingCanvas):
1716         (WebInspector.ProfileManager.prototype.stopProfilingCanvas):
1717         (WebInspector.ProfileManager.prototype._checkForInterruptions):
1718         (WebInspector.ProfileManager.prototype._attemptToResumeProfiling):
1719
1720 2013-08-07  Timothy Hatcher  <timothy@apple.com>
1721
1722         Switch the generated images off of PDFs and onto SVGs now that bug 119492 is fixed.
1723
1724         https://bugs.webkit.org/show_bug.cgi?id=118677
1725
1726         Reviewed by Joseph Pecoraro.
1727
1728         * UserInterface/ApplicationCacheDetailsSidebarPanel.js:
1729         (WebInspector.ApplicationCacheDetailsSidebarPanel):
1730         * UserInterface/CSSStyleDeclarationSection.js:
1731         (WebInspector.CSSStyleDeclarationSection):
1732         * UserInterface/CSSStyleDetailsSidebarPanel.js:
1733         (WebInspector.CSSStyleDetailsSidebarPanel):
1734         * UserInterface/ContentBrowser.js:
1735         (WebInspector.ContentBrowser):
1736         * UserInterface/DOMNodeDetailsSidebarPanel.js:
1737         (WebInspector.DOMNodeDetailsSidebarPanel):
1738         * UserInterface/DOMTreeContentView.js:
1739         (WebInspector.DOMTreeContentView):
1740         * UserInterface/DataGrid.js:
1741         (WebInspector.DataGrid.prototype._generateSortIndicatorImagesIfNeeded):
1742         * UserInterface/DebuggerSidebarPanel.js:
1743         (WebInspector.DebuggerSidebarPanel):
1744         * UserInterface/DetailsSection.js:
1745         (WebInspector.DetailsSection.prototype._generateDisclosureTrianglesIfNeeded):
1746         * UserInterface/FindBanner.js:
1747         (WebInspector.FindBanner.prototype._generateButtonsGlyphsIfNeeded):
1748         * UserInterface/Images/BackArrow.pdf: Removed.
1749         * UserInterface/Images/BottomUpTree.pdf: Removed.
1750         * UserInterface/Images/Breakpoints.pdf: Removed.
1751         * UserInterface/Images/Close.pdf: Removed.
1752         * UserInterface/Images/Crosshair.pdf: Removed.
1753         * UserInterface/Images/DisclosureTriangleSmallClosed.pdf: Removed.
1754         * UserInterface/Images/DisclosureTriangleSmallOpen.pdf: Removed.
1755         * UserInterface/Images/DisclosureTriangleTinyClosed.pdf: Removed.
1756         * UserInterface/Images/DisclosureTriangleTinyOpen.pdf: Removed.
1757         * UserInterface/Images/DockBottom.pdf: Removed.
1758         * UserInterface/Images/DockRight.pdf: Removed.
1759         * UserInterface/Images/ForwardArrow.pdf: Removed.
1760         * UserInterface/Images/GoToArrow.pdf: Removed.
1761         * UserInterface/Images/LayerBorders.pdf: Removed.
1762         * UserInterface/Images/LessColumns.pdf: Removed.
1763         * UserInterface/Images/Locked.pdf: Removed.
1764         * UserInterface/Images/MoreColumns.pdf: Removed.
1765         * UserInterface/Images/NavigationItemAngleBrackets.pdf: Removed.
1766         * UserInterface/Images/NavigationItemBrushAndRuler.pdf: Removed.
1767         * UserInterface/Images/NavigationItemBug.pdf: Removed.
1768         * UserInterface/Images/NavigationItemCurleyBraces.pdf: Removed.
1769         * UserInterface/Images/NavigationItemFile.pdf: Removed.
1770         * UserInterface/Images/NavigationItemLayers.pdf: Removed.
1771         * UserInterface/Images/NavigationItemLog.pdf: Removed.
1772         * UserInterface/Images/NavigationItemMagnifyingGlass.pdf: Removed.
1773         * UserInterface/Images/NavigationItemStopwatch.pdf: Removed.
1774         * UserInterface/Images/NavigationItemStorage.pdf: Removed.
1775         * UserInterface/Images/NavigationItemTrash.pdf: Removed.
1776         * UserInterface/Images/NavigationItemVariable.pdf: Removed.
1777         * UserInterface/Images/Pause.pdf: Removed.
1778         * UserInterface/Images/Percent.pdf: Removed.
1779         * UserInterface/Images/Plus.pdf: Removed.
1780         * UserInterface/Images/Resume.pdf: Removed.
1781         * UserInterface/Images/ShadowDOM.pdf: Removed.
1782         * UserInterface/Images/SortIndicatorDownArrow.pdf: Removed.
1783         * UserInterface/Images/SortIndicatorUpArrow.pdf: Removed.
1784         * UserInterface/Images/SplitToggleDown.pdf: Removed.
1785         * UserInterface/Images/SplitToggleUp.pdf: Removed.
1786         * UserInterface/Images/StepInto.pdf: Removed.
1787         * UserInterface/Images/StepOut.pdf: Removed.
1788         * UserInterface/Images/StepOver.pdf: Removed.
1789         * UserInterface/Images/Undock.pdf: Removed.
1790         * UserInterface/InstrumentSidebarPanel.js:
1791         (WebInspector.InstrumentSidebarPanel):
1792         * UserInterface/JavaScriptProfileView.js:
1793         (WebInspector.JavaScriptProfileView):
1794         * UserInterface/LayerTreeSidebarPanel.js:
1795         (WebInspector.LayerTreeSidebarPanel):
1796         * UserInterface/LogContentView.js:
1797         (WebInspector.LogContentView):
1798         * UserInterface/Main.js:
1799         (WebInspector.contentLoaded):
1800         (WebInspector._updateDockNavigationItems):
1801         (WebInspector._generateDisclosureTriangleImages):
1802         * UserInterface/NavigationSidebarPanel.js:
1803         (WebInspector.NavigationSidebarPanel.prototype._generateDisclosureTrianglesIfNeeded):
1804         * UserInterface/ProfileView.js:
1805         (WebInspector.ProfileView):
1806         * UserInterface/ResourceDetailsSidebarPanel.js:
1807         (WebInspector.ResourceDetailsSidebarPanel):
1808         * UserInterface/ResourceSidebarPanel.js:
1809         (WebInspector.ResourceSidebarPanel):
1810         * UserInterface/ScopeChainDetailsSidebarPanel.js:
1811         (WebInspector.ScopeChainDetailsSidebarPanel):
1812         * UserInterface/ScriptContentView.js:
1813         (WebInspector.ScriptContentView):
1814         * UserInterface/TextContentView.js:
1815         (WebInspector.TextContentView):
1816         * UserInterface/TextResourceContentView.js:
1817         (WebInspector.TextResourceContentView):
1818         * UserInterface/TimelinesContentView.js:
1819
1820 2013-08-08  Dean Jackson  <dino@apple.com>
1821
1822         Remove use of prefixed transition event
1823         https://bugs.webkit.org/show_bug.cgi?id=119598
1824
1825         Reviewed by Joseph Pecoraro.
1826
1827         "webkitTransitionEnd" -> "transitionend".
1828
1829         * UserInterface/Popover.js:
1830         (WebInspector.Popover):
1831         (WebInspector.Popover.prototype.handleEvent):
1832
1833 2013-08-08  Dean Jackson  <dino@apple.com>
1834
1835         Unprefix use of transitions in Web Inspector code
1836         https://bugs.webkit.org/show_bug.cgi?id=119588
1837
1838         Reviewed by Tim Hatcher.
1839
1840         Replace "-webkit-transition" with "transition".
1841
1842         * UserInterface/CSSCompletions.js:
1843         (WebInspector.CSSCompletions.requestCSSNameCompletions.collectPropertyNameForCodeMirror):
1844         * UserInterface/FindBanner.css:
1845         (.find-banner):
1846         (.find-banner.showing):
1847         (.supports-find-banner.no-find-banner-transition):
1848         (.supports-find-banner):
1849         (.supports-find-banner.showing-find-banner):
1850         * UserInterface/NetworkTimeline.css:
1851         (.network-graph-side:hover .network-graph-label):
1852         * UserInterface/Popover.css:
1853         (.popover.fade-out):
1854
1855 2013-08-08  Vivek Galatage  <vivek.vg@samsung.com>
1856
1857         Web Inspector: Use granular DOMStorage modification events to avoid complete DataGrid update.
1858         https://bugs.webkit.org/show_bug.cgi?id=119541
1859
1860         Reviewed by Joseph Pecoraro.
1861
1862         InspectorDOMStorageAgent sends more granular events about the storage modifications.
1863         Using these would avoid the complete rebuilding of the DataGrid.
1864
1865         * UserInterface/DOMStorageContentView.js:
1866         (WebInspector.DOMStorageContentView.prototype.itemsCleared):
1867         (WebInspector.DOMStorageContentView.prototype.itemRemoved):
1868         (WebInspector.DOMStorageContentView.prototype.itemAdded):
1869         (WebInspector.DOMStorageContentView.prototype.itemUpdated):
1870         * UserInterface/DOMStorageObserver.js:
1871         (WebInspector.DOMStorageObserver.prototype.domStorageItemsCleared):
1872         (WebInspector.DOMStorageObserver.prototype.domStorageItemRemoved):
1873         (WebInspector.DOMStorageObserver.prototype.domStorageItemAdded):
1874         (WebInspector.DOMStorageObserver.prototype.domStorageItemUpdated):
1875         * UserInterface/StorageManager.js:
1876         (WebInspector.StorageManager.prototype.domStorageItemsCleared):
1877         (WebInspector.StorageManager.prototype.domStorageItemRemoved):
1878         (WebInspector.StorageManager.prototype.domStorageItemAdded):
1879         (WebInspector.StorageManager.prototype.domStorageItemUpdated):
1880
1881 2013-08-06  Joseph Pecoraro  <pecoraro@apple.com>
1882
1883         Web Inspector: Remove stale code in ResourceContentView
1884         https://bugs.webkit.org/show_bug.cgi?id=119527
1885
1886         The handling of Resource Type changes moved to ResourceClusterContentView,
1887         this removeEventListener is stale and doesn't do anything anymore.
1888
1889         Reviewed by Timothy Hatcher.
1890
1891         * UserInterface/ResourceContentView.js:
1892         (WebInspector.ResourceContentView.prototype.closed):
1893
1894 2013-08-06  Timothy Hatcher  <timothy@apple.com>
1895
1896         Convert all Web Inspector PDFs to SVGs.
1897
1898         Some PDFs need to stay around until bug 119492 is fixed. But the SVGs are there for when they are needed.
1899         Updated some of the existing SVGs to be consistent with the format of the new SVGs.
1900
1901         https://bugs.webkit.org/show_bug.cgi?id=118677
1902
1903         Rubber-stamped by Joseph Pecoraro.
1904
1905         * UserInterface/BreakpointIcons.css:
1906         * UserInterface/BreakpointTreeElement.css:
1907         * UserInterface/CallFrameIcons.css:
1908         * UserInterface/DatabaseContentView.css:
1909         * UserInterface/FilterBar.css:
1910         * UserInterface/HierarchicalPathComponent.css:
1911         * UserInterface/Images/BackArrow.svg: Added.
1912         * UserInterface/Images/BottomUpTree.svg: Added.
1913         * UserInterface/Images/BreakpointButton.pdf: Removed.
1914         * UserInterface/Images/BreakpointButton.svg: Added.
1915         * UserInterface/Images/BreakpointInactiveButton.pdf: Removed.
1916         * UserInterface/Images/BreakpointInactiveButton.svg: Added.
1917         * UserInterface/Images/Breakpoints.svg: Added.
1918         * UserInterface/Images/Close.svg: Added.
1919         * UserInterface/Images/Crosshair.svg: Added.
1920         * UserInterface/Images/DOMCharacterData.pdf: Removed.
1921         * UserInterface/Images/DOMCharacterData.svg: Added.
1922         * UserInterface/Images/DOMComment.pdf: Removed.
1923         * UserInterface/Images/DOMComment.svg: Added.
1924         * UserInterface/Images/DOMDocument.pdf: Removed.
1925         * UserInterface/Images/DOMDocument.svg: Added.
1926         * UserInterface/Images/DOMDocumentType.pdf: Removed.
1927         * UserInterface/Images/DOMDocumentType.svg: Added.
1928         * UserInterface/Images/DOMElement.pdf: Removed.
1929         * UserInterface/Images/DOMElement.svg: Added.
1930         * UserInterface/Images/DOMNode.pdf: Removed.
1931         * UserInterface/Images/DOMNode.svg: Added.
1932         * UserInterface/Images/DOMTextNode.pdf: Removed.
1933         * UserInterface/Images/DOMTextNode.svg: Added.
1934         * UserInterface/Images/DOMTree.pdf: Removed.
1935         * UserInterface/Images/DOMTree.svg: Added.
1936         * UserInterface/Images/DisclosureTriangleSmallClosed.svg: Added.
1937         * UserInterface/Images/DisclosureTriangleSmallOpen.svg: Added.
1938         * UserInterface/Images/DisclosureTriangleTinyClosed.svg: Added.
1939         * UserInterface/Images/DisclosureTriangleTinyOpen.svg: Added.
1940         * UserInterface/Images/DockBottom.svg: Added.
1941         * UserInterface/Images/DockRight.svg: Added.
1942         * UserInterface/Images/Error.pdf: Removed.
1943         * UserInterface/Images/Error.svg: Added.
1944         * UserInterface/Images/ErrorSmall.pdf: Removed.
1945         * UserInterface/Images/Errors.svg:
1946         * UserInterface/Images/ErrorsEnabled.svg:
1947         * UserInterface/Images/EventListener.pdf: Removed.
1948         * UserInterface/Images/EventListener.svg: Added.
1949         * UserInterface/Images/Exception.pdf: Removed.
1950         * UserInterface/Images/Exception.svg: Added.
1951         * UserInterface/Images/FilterFieldGlyph.pdf: Removed.
1952         * UserInterface/Images/FilterFieldGlyph.svg: Added.
1953         * UserInterface/Images/ForwardArrow.svg: Added.
1954         * UserInterface/Images/Function.pdf: Removed.
1955         * UserInterface/Images/Function.svg: Added.
1956         * UserInterface/Images/GoToArrow.svg: Added.
1957         * UserInterface/Images/HierarchicalNavigationItemChevron.pdf: Removed.
1958         * UserInterface/Images/HierarchicalNavigationItemChevron.svg: Added.
1959         * UserInterface/Images/IndeterminateProgressSpinner1.pdf: Removed.
1960         * UserInterface/Images/IndeterminateProgressSpinner1.svg: Added.
1961         * UserInterface/Images/IndeterminateProgressSpinner10.pdf: Removed.
1962         * UserInterface/Images/IndeterminateProgressSpinner10.svg: Added.
1963         * UserInterface/Images/IndeterminateProgressSpinner11.pdf: Removed.
1964         * UserInterface/Images/IndeterminateProgressSpinner11.svg: Added.
1965         * UserInterface/Images/IndeterminateProgressSpinner12.pdf: Removed.
1966         * UserInterface/Images/IndeterminateProgressSpinner12.svg: Added.
1967         * UserInterface/Images/IndeterminateProgressSpinner2.pdf: Removed.
1968         * UserInterface/Images/IndeterminateProgressSpinner2.svg: Added.
1969         * UserInterface/Images/IndeterminateProgressSpinner3.pdf: Removed.
1970         * UserInterface/Images/IndeterminateProgressSpinner3.svg: Added.
1971         * UserInterface/Images/IndeterminateProgressSpinner4.pdf: Removed.
1972         * UserInterface/Images/IndeterminateProgressSpinner4.svg: Added.
1973         * UserInterface/Images/IndeterminateProgressSpinner5.pdf: Removed.
1974         * UserInterface/Images/IndeterminateProgressSpinner5.svg: Added.
1975         * UserInterface/Images/IndeterminateProgressSpinner6.pdf: Removed.
1976         * UserInterface/Images/IndeterminateProgressSpinner6.svg: Added.
1977         * UserInterface/Images/IndeterminateProgressSpinner7.pdf: Removed.
1978         * UserInterface/Images/IndeterminateProgressSpinner7.svg: Added.
1979         * UserInterface/Images/IndeterminateProgressSpinner8.pdf: Removed.
1980         * UserInterface/Images/IndeterminateProgressSpinner8.svg: Added.
1981         * UserInterface/Images/IndeterminateProgressSpinner9.pdf: Removed.
1982         * UserInterface/Images/IndeterminateProgressSpinner9.svg: Added.
1983         * UserInterface/Images/Issues.svg:
1984         * UserInterface/Images/IssuesEnabled.svg:
1985         * UserInterface/Images/LayerBorders.svg: Added.
1986         * UserInterface/Images/LessColumns.svg: Added.
1987         * UserInterface/Images/Locked.svg: Added.
1988         * UserInterface/Images/Logs.svg:
1989         * UserInterface/Images/Memory.svg:
1990         * UserInterface/Images/MoreColumns.svg: Added.
1991         * UserInterface/Images/Native.pdf: Removed.
1992         * UserInterface/Images/Native.svg: Added.
1993         * UserInterface/Images/NavigationItemAngleBrackets.svg: Added.
1994         * UserInterface/Images/NavigationItemBrushAndRuler.svg: Added.
1995         * UserInterface/Images/NavigationItemBug.svg: Added.
1996         * UserInterface/Images/NavigationItemCurleyBraces.svg: Added.
1997         * UserInterface/Images/NavigationItemFile.svg: Added.
1998         * UserInterface/Images/NavigationItemLayers.svg: Added.
1999         * UserInterface/Images/NavigationItemLog.svg: Added.
2000         * UserInterface/Images/NavigationItemMagnifyingGlass.svg: Added.
2001         * UserInterface/Images/NavigationItemStopwatch.svg: Added.
2002         * UserInterface/Images/NavigationItemStorage.svg: Added.
2003         * UserInterface/Images/NavigationItemTrash.svg: Added.
2004         * UserInterface/Images/NavigationItemVariable.svg: Added.
2005         * UserInterface/Images/NetworkBarLabelCalloutLeft.pdf: Removed.
2006         * UserInterface/Images/NetworkBarLabelCalloutLeft.svg: Added.
2007         * UserInterface/Images/NetworkBarLabelCalloutRight.pdf: Removed.
2008         * UserInterface/Images/NetworkBarLabelCalloutRight.svg: Added.
2009         * UserInterface/Images/NetworkBarLabelCalloutWhiteLeft.pdf: Removed.
2010         * UserInterface/Images/NetworkBarLabelCalloutWhiteLeft.svg: Added.
2011         * UserInterface/Images/NetworkBarLabelCalloutWhiteRight.pdf: Removed.
2012         * UserInterface/Images/NetworkBarLabelCalloutWhiteRight.svg: Added.
2013         * UserInterface/Images/Pause.svg: Added.
2014         * UserInterface/Images/Percent.svg: Added.
2015         * UserInterface/Images/Plus.svg: Added.
2016         * UserInterface/Images/PseudoElement.pdf: Removed.
2017         * UserInterface/Images/PseudoElement.svg: Added.
2018         * UserInterface/Images/Reflection.pdf: Removed.
2019         * UserInterface/Images/Reflection.svg: Added.
2020         * UserInterface/Images/Reload.svg:
2021         * UserInterface/Images/ReloadSelected.svg:
2022         * UserInterface/Images/Request.pdf: Removed.
2023         * UserInterface/Images/Request.svg: Added.
2024         * UserInterface/Images/Resources.svg:
2025         * UserInterface/Images/Response.pdf: Removed.
2026         * UserInterface/Images/Response.svg: Added.
2027         * UserInterface/Images/ResultLine.pdf: Removed.
2028         * UserInterface/Images/ResultLine.svg: Added.
2029         * UserInterface/Images/Resume.svg: Added.
2030         * UserInterface/Images/ShadowDOM.svg: Added.
2031         * UserInterface/Images/SortIndicatorDownArrow.svg: Added.
2032         * UserInterface/Images/SortIndicatorUpArrow.svg: Added.
2033         * UserInterface/Images/SourceCode.pdf: Removed.
2034         * UserInterface/Images/SourceCode.svg: Added.
2035         * UserInterface/Images/SplitToggleDown.svg: Added.
2036         * UserInterface/Images/SplitToggleUp.svg: Added.
2037         * UserInterface/Images/StepInto.svg: Added.
2038         * UserInterface/Images/StepOut.svg: Added.
2039         * UserInterface/Images/StepOver.svg: Added.
2040         * UserInterface/Images/StyleRuleAuthor.pdf: Removed.
2041         * UserInterface/Images/StyleRuleAuthor.svg: Added.
2042         * UserInterface/Images/StyleRuleInherited.pdf: Removed.
2043         * UserInterface/Images/StyleRuleInherited.svg: Added.
2044         * UserInterface/Images/StyleRuleInheritedElement.pdf: Removed.
2045         * UserInterface/Images/StyleRuleInheritedElement.svg: Added.
2046         * UserInterface/Images/StyleRuleInspector.pdf: Removed.
2047         * UserInterface/Images/StyleRuleInspector.svg: Added.
2048         * UserInterface/Images/StyleRuleUser.pdf: Removed.
2049         * UserInterface/Images/StyleRuleUser.svg: Added.
2050         * UserInterface/Images/StyleRuleUserAgent.pdf: Removed.
2051         * UserInterface/Images/StyleRuleUserAgent.svg: Added.
2052         * UserInterface/Images/Time.svg:
2053         * UserInterface/Images/Undock.svg: Added.
2054         * UserInterface/Images/UpDownArrows.svg:
2055         * UserInterface/Images/UserInputPrompt.pdf: Removed.
2056         * UserInterface/Images/UserInputPrompt.svg: Added.
2057         * UserInterface/Images/UserInputPromptPrevious.pdf: Removed.
2058         * UserInterface/Images/UserInputPromptPrevious.svg: Added.
2059         * UserInterface/Images/UserInputPromptPreviousSelected.pdf: Removed.
2060         * UserInterface/Images/UserInputPromptPreviousSelected.svg: Added.
2061         * UserInterface/Images/UserInputResult.pdf: Removed.
2062         * UserInterface/Images/UserInputResult.svg: Added.
2063         * UserInterface/Images/UserInputResultSelected.pdf: Removed.
2064         * UserInterface/Images/UserInputResultSelected.svg: Added.
2065         * UserInterface/Images/Warning.pdf: Removed.
2066         * UserInterface/Images/Warning.svg: Added.
2067         * UserInterface/Images/WarningSmall.pdf: Removed.
2068         * UserInterface/Images/Weight.svg:
2069         * UserInterface/IndeterminateProgressSpinner.css:
2070         * UserInterface/LayerTreeSidebarPanel.css:
2071         * UserInterface/LogContentView.css:
2072         * UserInterface/Main.css:
2073         * UserInterface/NetworkTimeline.css:
2074         * UserInterface/PathComponentIcons.css:
2075         * UserInterface/QuickConsole.css:
2076         * UserInterface/RulesStyleDetailsPanel.css:
2077         * UserInterface/SearchIcons.css:
2078         * UserInterface/StyleRuleIcons.css:
2079
2080 2013-07-23  David Farler  <dfarler@apple.com>
2081
2082         Provide optional OTHER_CFLAGS, OTHER_CPPFLAGS, OTHER_LDFLAGS additions for building with ASAN
2083         https://bugs.webkit.org/show_bug.cgi?id=117762
2084
2085         Reviewed by Mark Rowe.
2086
2087         * Configurations/DebugRelease.xcconfig:
2088         Add ASAN_OTHER_CFLAGS, CPLUSPLUSFLAGS, LDFLAGS.
2089
2090 2013-07-30  Roland Takács  <rtakacs@inf.u-szeged.hu>
2091
2092         Web Inspector: doesn't use localized user interface at remote inspector
2093         https://bugs.webkit.org/show_bug.cgi?id=119252
2094
2095         Reviewed by Timothy Hatcher.
2096
2097         Added a flag in order to not use localizedStrings in remote inspector.
2098
2099         * UserInterface/InspectorFrontendHostStub.js:
2100         * UserInterface/LoadLocalizedStrings.js:
2101         * UserInterface/Main.js:
2102         (WebInspector.UIString):
2103
2104 2013-07-24  Antoine Quint  <graouts@apple.com>
2105
2106         Web Inspector: control+clicking on a numeric token should not show the context menu
2107         https://bugs.webkit.org/show_bug.cgi?id=119048
2108
2109         Reviewed by Timothy Hatcher.
2110
2111         Track "contextmenu" events when we're hovering a token containing a numeric value
2112         and call preventDefault() in the event handler to ensure that the context menu does
2113         not appear.
2114
2115         * UserInterface/CodeMirrorDragToAlterNumberController.js:
2116         (WebInspector.CodeMirrorDragToAlterNumberController.prototype.handleEvent):
2117         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setTracksMouseClickAndDrag):
2118
2119 2013-07-24  Antoine Quint  <graouts@apple.com>
2120
2121         Web Inspector: support click-and-drag editing of CSS numeric values
2122         https://bugs.webkit.org/show_bug.cgi?id=118896
2123
2124         Reviewed by Timothy Hatcher.
2125
2126         Add support for adjustment of numeric values in the various CodeMirror editors
2127         by holding the option key and dragging the mouse. By default, dragging one pixel
2128         changes the value by 1, but key modifiers allow to customize that behavior by using
2129         the control key to change the value to 0.1 and the shift key to change the value to 10.
2130
2131         * UserInterface/CodeMirrorAdditions.js:
2132         Split adjustNumber() into two methods such that we may use its logic from the
2133         CodeMirrorDragToAlterNumberController. The new method, CodeMirror.prototype.alterNumberInRange()
2134         allow to set begin and end CodeMirror positions such that the existing alterNumber()
2135         can use information based on the current cursor position, and CodeMirrorDragToAlterNumberController
2136         can use information based on the hovered token.
2137
2138         * UserInterface/CodeMirrorDragToAlterNumberController.css: Added.
2139         (.CodeMirror.drag-to-adjust .CodeMirror-lines):
2140         Set the cursor to "col-resize" when a number token is hovered and the option key
2141         modifier is pressed.
2142
2143         * UserInterface/CodeMirrorDragToAlterNumberController.js: Added.
2144         (WebInspector.CodeMirrorDragToAlterNumberController):
2145         We define the new "dragToAdjustNumbers" CodeMirror option.
2146
2147         (WebInspector.CodeMirrorDragToAlterNumberController.prototype.set enabled):
2148         The "enabled" property controls whether the associated CodeMirror instance
2149         may act upon hovering numeric values to adjust them via a drag interaction.
2150
2151         (WebInspector.CodeMirrorDragToAlterNumberController.prototype.handleEvent):
2152         Proxy for various event-specific methods to deal with mouse events. We also bind
2153         the value of the "active" property to the "mouseenter" and "mouseleave" events
2154         if we're not currently dragging-to-adjust.
2155
2156         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setActive):
2157         The "active" property is set when the mouse is over the associated CodeMirror
2158         editor and when it's on we track all "mousemove" events such that we may
2159         identify tokens containing numeric values. We also start tracking changes to the
2160         option modifier key press state such that we may change the cursor accordingly.
2161         We ensure that the CodeMirror instance is not read-only such that we don't
2162         allow adjustment of numeric values in places where they couldn't be committed.
2163
2164         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setDragging):
2165         The "dragging" property reflects whether a dragging-to-adjust interaction
2166         is underway. We call into WebInspector.elementDragStart() and WebInspector.elementDragEnd()
2167         to set the cursor to "col-resize" for the whole document while tracking mousemove
2168         and mouseup events at the window level such that we can drag-to-adjust even outside
2169         of the inspector window.
2170
2171         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._setTracksMouseClickAndDrag):
2172         The "tracksMouseClickAndDrag" property is set to true whenever the controller
2173         has detected that a token containing a numeric value is being hovered and the
2174         option modifier key is pressed. This property controls the cursor value for the
2175         hovered token to reflect that a drag-to-adjust interaction is allowed and tracks
2176         "mousedown" events for when a dragging interaction may be initiated.
2177
2178         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._modifiersDidChange):
2179         Sets the "tracksMouseClickAndDrag" property depending on the availability of a hovered
2180         token containing a numeric value and the pressed state of the option modified key.
2181
2182         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseMoved):
2183         Handles "mousemove" events when we're not in the "dragging" state such that we
2184         check the currently hovered token, if any, to see if it contains a number that
2185         we may drag-to-adjust. Subsequently, we may enter the "tracksMouseClickAndDrag"
2186         state.
2187
2188         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseWasPressed):
2189         Handles "mousedown" events during a drag-to-adjust interaction. We simply track
2190         the current mouse position in the x-axis and enter the "dragging" state.
2191
2192         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseWasDragged):
2193         Handles "mousemove" events when we are in the "dragging" state. We compare the
2194         current mouse position in the x-axis with the last recoreded value and determine
2195         the amount by which we should adjust the value, taking into account the shift and
2196         control modifier keys. We then call into WebInspector.alterNumberInRange() to
2197         apply the change amount to the associated CodeMirror editor.
2198
2199         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._mouseWasReleased):
2200         Handles "mouseup" events, simply exiting the "dragging" state and resetting other
2201         parameters we would have customized as a result of the drag-to-adjust interaction.
2202
2203         (WebInspector.CodeMirrorDragToAlterNumberController.prototype._reset):
2204         Resetting some parameters we would have customized as a result of the drag-to-adjust
2205         interaction.
2206
2207         * UserInterface/Main.html:
2208         Include the new CodeMirrorDragToAlterNumberController.{js|css} files.
2209
2210         * UserInterface/Main.js:
2211         (WebInspector.elementDragStart):
2212         (WebInspector.elementDragEnd):
2213         Add an extra parameter to elementDragStart() such that the caller may specify the event
2214         target for the "mousemove" and "mouseup" events.
2215
2216 2013-07-23  Roland Takacs  <rtakacs@inf.u-szeged.hu>
2217
2218         WebSocket initialization to use remote inspector
2219         https://bugs.webkit.org/show_bug.cgi?id=118678
2220
2221         Reviewed by Timothy Hatcher.
2222
2223         Add WebSocket initialization and define a 'connect-src' directive in the
2224         Content-Security-Policy HTTP header to enable the connection.
2225
2226         * UserInterface/InspectorFrontendHostStub.js:
2227         (.WebInspector.InspectorFrontendHostStub.prototype.sendMessageToBackend):
2228         * UserInterface/Main.html:
2229         * UserInterface/Main.js:
2230         (WebInspector.loaded):
2231         (WebInspector._initializeWebSocketIfNeeded.createSocket.WebInspector):
2232         (WebInspector._initializeWebSocketIfNeeded.createSocket):
2233         (WebInspector._initializeWebSocketIfNeeded):
2234
2235 2013-07-22  Diego Pino Garcia  <dpino@igalia.com>
2236
2237         Web Inspector: When right-clicking on a DataGrid column, show editing
2238         menu option as "Edit <columnName>" instead of just "Edit"
2239         https://bugs.webkit.org/show_bug.cgi?id=118970
2240
2241         Reviewed by Timothy Hatcher.
2242
2243         * Localizations/en.lproj/localizedStrings.js: Add literal "Edit '%s'"
2244         * UserInterface/DataGrid.js: Change "Edit" for "Edit <columnTitle>"
2245         (WebInspector.DataGrid.prototype._contextMenuInDataTable):
2246
2247 2013-07-21  Seokju Kwon  <seokju.kwon@gmail.com>
2248
2249         Web Inspector: Cleanup InspectorFrontendHostStub.js
2250         https://bugs.webkit.org/show_bug.cgi?id=118959
2251
2252         Reviewed by Timothy Hatcher.
2253
2254         Remove some functions because we dont use on New Inspector.
2255
2256         * UserInterface/InspectorFrontendHostStub.js:
2257         (.WebInspector.InspectorFrontendHostStub):
2258         (.WebInspector.InspectorFrontendHostStub.prototype.save):
2259
2260 2013-07-17  Seokju Kwon  <seokju.kwon@gmail.com>
2261
2262         Web Inspector: Fix a typo in WebInspector.loaded
2263         https://bugs.webkit.org/show_bug.cgi?id=118834
2264
2265         Reviewed by Timothy Hatcher.
2266
2267         * UserInterface/Main.js:
2268         (WebInspector.loaded):
2269
2270 2013-07-16  Seokju Kwon  <seokju.kwon@gmail.com>
2271
2272         Web Inspector: InspectorFrontendHost is undefined
2273         https://bugs.webkit.org/show_bug.cgi?id=118715
2274
2275         Reviewed by Timothy Hatcher.
2276
2277         Add InspectorFrontendHostStub.js to New Inspector because of the InspectorFrontendHost initialization.
2278
2279         * UserInterface/InspectorFrontendHostStub.js: Added.
2280         (.WebInspector.InspectorFrontendHostStub):
2281         (.WebInspector.InspectorFrontendHostStub.prototype.platform):
2282         (.WebInspector.InspectorFrontendHostStub.prototype.port):
2283         (.WebInspector.InspectorFrontendHostStub.prototype.bringToFront):
2284         (.WebInspector.InspectorFrontendHostStub.prototype.closeWindow):
2285         (.WebInspector.InspectorFrontendHostStub.prototype.requestSetDockSide):
2286         (.WebInspector.InspectorFrontendHostStub.prototype.setAttachedWindowHeight):
2287         (.WebInspector.InspectorFrontendHostStub.prototype.setAttachedWindowWidth):
2288         (.WebInspector.InspectorFrontendHostStub.prototype.setToolbarHeight):
2289         (.WebInspector.InspectorFrontendHostStub.prototype.moveWindowBy):
2290         (.WebInspector.InspectorFrontendHostStub.prototype.loaded):
2291         (.WebInspector.InspectorFrontendHostStub.prototype.localizedStringsURL):
2292         (.WebInspector.InspectorFrontendHostStub.prototype.inspectedURLChanged):
2293         (.WebInspector.InspectorFrontendHostStub.prototype.copyText):
2294         (.WebInspector.InspectorFrontendHostStub.prototype.openInNewTab):
2295         (.WebInspector.InspectorFrontendHostStub.prototype.canSave):
2296         (.WebInspector.InspectorFrontendHostStub.prototype.save):
2297         (.WebInspector.InspectorFrontendHostStub.prototype.append):
2298         (.WebInspector.InspectorFrontendHostStub.prototype.close.cleanup):
2299         (.WebInspector.InspectorFrontendHostStub.prototype.close):
2300         (.WebInspector.InspectorFrontendHostStub.prototype.sendMessageToBackend):
2301         (.WebInspector.InspectorFrontendHostStub.prototype.loadResourceSynchronously):
2302         * UserInterface/Main.html:
2303
2304 2013-07-15  Seokju Kwon  <seokju.kwon@gmail.com>
2305
2306         Web Inspector: Remove unused columns from select query in ImageUtilities.js
2307         https://bugs.webkit.org/show_bug.cgi?id=118694
2308
2309         Reviewed by Timothy Hatcher.
2310
2311         * UserInterface/ImageUtilities.js: Remove pixelRatio and formatVersion from select query.
2312
2313 2013-07-15  Timothy Hatcher  <timothy@apple.com>
2314
2315         Update CodeMirror to 3.14.1.
2316
2317         https://bugs.webkit.org/show_bug.cgi?id=118605
2318
2319         Reviewed by Joseph Pecoraro.
2320
2321         * Scripts/update-codemirror-resources.rb: Updated the list to add closebrackets.js and sorted the files.
2322         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
2323         * Tools/PrettyPrinting/Formatter.js:
2324         * Tools/PrettyPrinting/FormatterContentBuilder.js:
2325         * Tools/PrettyPrinting/codemirror.css:
2326         * Tools/PrettyPrinting/codemirror.js:
2327         * Tools/PrettyPrinting/css.js:
2328         * Tools/PrettyPrinting/javascript.js:
2329         * UserInterface/External/CodeMirror/closebrackets.js:
2330         * UserInterface/External/CodeMirror/codemirror.css:
2331         * UserInterface/External/CodeMirror/codemirror.js:
2332         * UserInterface/External/CodeMirror/coffeescript.js:
2333         * UserInterface/External/CodeMirror/comment.js:
2334         * UserInterface/External/CodeMirror/css.js:
2335         * UserInterface/External/CodeMirror/javascript.js:
2336         * UserInterface/External/CodeMirror/matchbrackets.js:
2337         * UserInterface/External/CodeMirror/sql.js:
2338         * UserInterface/External/CodeMirror/xml.js:
2339
2340 2013-07-15  Timothy Hatcher  <timothy@apple.com>
2341
2342         Make sure to add main resources for sub-frames to the Network Timeline.
2343
2344         https://bugs.webkit.org/show_bug.cgi?id=118649
2345
2346         Reviewed by Joseph Pecoraro.
2347
2348         * UserInterface/TimelineManager.js:
2349         (WebInspector.TimelineManager.prototype._mainResourceDidChange): Remove the
2350         call to _clear() and early return for event.target.isMainFrame(). The _clear()
2351         is already handled if needed by the call to _startAutoRecording(), so it was
2352         redundant here and caused the erroneous addition of isMainFrame() early return.
2353
2354 2013-07-15  Timothy Hatcher  <timothy@apple.com>
2355
2356         Properly handle style text changes while the color popover is open.
2357
2358         https://bugs.webkit.org/show_bug.cgi?id=118575
2359
2360         Reviewed by Joseph Pecoraro.
2361
2362         * UserInterface/CSSStyleDeclarationTextEditor.js:
2363         (WebInspector.CSSStyleDeclarationTextEditor.prototype._colorSwatchClicked.updateCodeMirror):
2364         The original text marker might have been cleared by a style update, in this case we need to
2365         find the new color text marker so we know the right range for the new style color text.
2366
2367 2013-07-14  Commit Queue  <commit-queue@webkit.org>
2368
2369         Unreviewed, rolling out r152598.
2370         http://trac.webkit.org/changeset/152598
2371         https://bugs.webkit.org/show_bug.cgi?id=118658
2372
2373         totally broke the web inspector (JS ERROR: SyntaxError:
2374         Expected token '}') (Requested by thorton on #webkit).
2375
2376         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
2377         * Tools/PrettyPrinting/Formatter.js:
2378         * Tools/PrettyPrinting/FormatterContentBuilder.js:
2379         * Tools/PrettyPrinting/codemirror.css:
2380         (.CodeMirror-scrollbar-filler):
2381         (.CodeMirror-gutters):
2382         (.CodeMirror-vscrollbar, .CodeMirror-hscrollbar, .CodeMirror-scrollbar-filler):
2383         (.CodeMirror-widget):
2384         * Tools/PrettyPrinting/codemirror.js:
2385         (window.CodeMirror):
2386         (window.CodeMirror.):
2387         (.do):
2388         (moveVisually):
2389         * Tools/PrettyPrinting/css.js:
2390         (.):
2391         (CodeMirror):
2392         * Tools/PrettyPrinting/javascript.js:
2393         (.):
2394         * UserInterface/External/CodeMirror/codemirror.css:
2395         (.CodeMirror-widget):
2396         * UserInterface/External/CodeMirror/codemirror.js:
2397         (window.CodeMirror):
2398         (window.CodeMirror.):
2399         * UserInterface/External/CodeMirror/coffeescript.js:
2400         * UserInterface/External/CodeMirror/comment.js:
2401         (.):
2402         * UserInterface/External/CodeMirror/css.js:
2403         (.):
2404         (CodeMirror):
2405         * UserInterface/External/CodeMirror/javascript.js:
2406         (.):
2407         * UserInterface/External/CodeMirror/matchbrackets.js:
2408         (.):
2409         * UserInterface/External/CodeMirror/sql.js:
2410         * UserInterface/External/CodeMirror/xml.js:
2411
2412 2013-07-12  Timothy Hatcher  <timothy@apple.com>
2413
2414         Update CodeMirror to 7f560afa1c (3.14+).
2415
2416         https://bugs.webkit.org/show_bug.cgi?id=118605
2417
2418         Reviewed by Sam Weinig.
2419
2420         * Tools/PrettyPrinting/CodeMirrorFormatters.js:
2421         * Tools/PrettyPrinting/Formatter.js:
2422         * Tools/PrettyPrinting/FormatterContentBuilder.js:
2423         * Tools/PrettyPrinting/codemirror.css:
2424         * Tools/PrettyPrinting/codemirror.js:
2425         * Tools/PrettyPrinting/css.js:
2426         * Tools/PrettyPrinting/javascript.js:
2427         * UserInterface/External/CodeMirror/codemirror.css:
2428         * UserInterface/External/CodeMirror/codemirror.js:
2429         * UserInterface/External/CodeMirror/coffeescript.js:
2430         * UserInterface/External/CodeMirror/comment.js:
2431         * UserInterface/External/CodeMirror/css.js:
2432         * UserInterface/External/CodeMirror/javascript.js:
2433         * UserInterface/External/CodeMirror/matchbrackets.js:
2434         * UserInterface/External/CodeMirror/sql.js:
2435         * UserInterface/External/CodeMirror/xml.js:
2436
2437 2013-07-12  Seokju Kwon  <seokju.kwon@gmail.com>
2438
2439         Web Inspector: Pass null for sidebarPanels and role in WebInspector.Sidebar()
2440         https://bugs.webkit.org/show_bug.cgi?id=118589
2441
2442         Reviewed by Timothy Hatcher.
2443
2444         sidebarPanels : It is necessary to get correct argument after r152141.
2445         Without this, error messages can be displayed.
2446         role : Could pass null for it since default value is "group".
2447
2448         * UserInterface/Main.js:
2449         (WebInspector.contentLoaded):
2450
2451 2013-07-03  Timothy Hatcher  <timothy@apple.com>
2452
2453         Guard remaining calls to decodeURIComponent with a try/catch.
2454
2455         https://bugs.webkit.org/show_bug.cgi?id=118371
2456
2457         Reviewed by Joseph Pecoraro.
2458
2459         * UserInterface/Main.js:
2460         (WebInspector.displayNameForURL):
2461         (WebInspector.updateWindowTitle):
2462         * UserInterface/Utilities.js:
2463         (arrayResult):
2464         (queryString):
2465
2466 2013-07-03  Jessie Berlin  <jberlin@apple.com>
2467
2468         Ran update-webkit-localizable-strings.
2469
2470         Rubber-stamped by Joseph Pecoraro.
2471
2472         * Localizations/en.lproj/localizedStrings.js:
2473
2474 2013-06-28  Dean Jackson  <dino@apple.com>
2475
2476         Update Apple System fonts in auto-complete
2477         https://bugs.webkit.org/show_bug.cgi?id=118205
2478         <rdar://problem/14308488>
2479
2480         Reviewed by Joseph Pecoraro.
2481
2482         Update for the new Apple System font names, and remove some invalid entries.
2483
2484         * UserInterface/CSSKeywordCompletions.js: General cleanup. Note that
2485         "apple-system-short-caption2" looks like it was accidentally omitted. It wasn't :)
2486
2487 2013-06-28  James Craig  <james@cookiecrook.com>
2488
2489         Web Inspector: AX: VoiceOver speaks all inspector search fields as 'required'
2490         https://bugs.webkit.org/show_bug.cgi?id=118122
2491
2492         Reviewed by Timothy Hatcher.
2493
2494         Removed bogus "required" state, and switched :valid selector to use :not(:placeholder-shown)
2495         so that screen readers will not indicate a bogus :required/:invalid state to the user.
2496         Minor cosmetic difference blocked by http://webkit.org/b/118162
2497
2498         * UserInterface/FilterBar.css:
2499         (.filter-bar > input[type="search"]:focus):
2500         (.filter-bar > input[type="search"]:not(:placeholder-shown)):
2501         * UserInterface/FilterBar.js:
2502         (WebInspector.FilterBar):
2503         * UserInterface/ResourceSidebarPanel.js:
2504         (WebInspector.ResourceSidebarPanel):
2505         * UserInterface/SearchBar.css:
2506         (.search-bar > input[type="search"]:focus):
2507         (.search-bar > input[type="search"]:not(:placeholder-shown)):
2508         * UserInterface/SearchBar.js:
2509         (WebInspector.SearchBar):
2510
2511 2013-06-27  James Craig  <james@cookiecrook.com>
2512
2513         Web Inspector: AX: Add container ARIA roles (toolbar, main, labeled regions, etc.)
2514         so the layout is more discoverable to screen reader users
2515         https://bugs.webkit.org/show_bug.cgi?id=118104
2516
2517         Reviewed by Timothy Hatcher.
2518
2519         Made the basic layout (toolbar, sidebars, main) of the Web Inspector understandable
2520         and navigable with VoiceOver.
2521
2522         * Localizations/en.lproj/localizedStrings.js:
2523         * UserInterface/ButtonNavigationItem.js:
2524         * UserInterface/CSSStyleDetailsSidebarPanel.js:
2525         * UserInterface/DashboardManager.js:
2526         * UserInterface/Main.js:
2527         * UserInterface/NavigationBar.js:
2528         * UserInterface/NavigationItem.js:
2529         * UserInterface/NavigationSidebarPanel.js:
2530         * UserInterface/RadioButtonNavigationItem.js:
2531         * UserInterface/Sidebar.js:
2532         * UserInterface/SidebarPanel.js:
2533         * UserInterface/Toolbar.js:
2534
2535 2013-06-27  James Craig  <james@cookiecrook.com>
2536
2537         Web Inspector: AX: Console log of the Inspector does not announce output for screen readers
2538         https://bugs.webkit.org/show_bug.cgi?id=115976
2539
2540         Reviewed by Timothy Hatcher.
2541
2542         Main console log area (div.console-messages) is now an ARIA live region (role="log")
2543         so screen readers speak plain text updates.
2544
2545         Also added contextual labels (e.g. input/output) but speech output verification of
2546         those is currently blocked by http://webkit.org/b/118096
2547
2548         * Localizations/en.lproj/localizedStrings.js:
2549         * UserInterface/ConsoleCommand.js:
2550         (WebInspector.ConsoleCommand.prototype.toMessageElement):
2551         * UserInterface/ConsoleCommandResult.js:
2552         (WebInspector.ConsoleCommandResult.prototype.toMessageElement):
2553         * UserInterface/LogContentView.css:
2554         (@media reader):
2555         * UserInterface/LogContentView.js:
2556         (WebInspector.LogContentView):
2557
2558
2559 2013-06-27  Matthew Holden  <jftholden@yahoo.com>
2560
2561         Web Inspector: Display color picker in popover on color swatch click
2562         https://bugs.webkit.org/show_bug.cgi?id=117919
2563
2564         Reviewed by Timothy Hatcher.
2565
2566         Includes fixes from second code review.
2567
2568         * Localizations/en.lproj/localizedStrings.js:
2569         * UserInterface/CSSColorPicker.css: Added.
2570         (.colorpicker-container):
2571         (.colorpicker-fill-parent):
2572         (.colorpicker-top):
2573         (.colorpicker-color):
2574         (.colorpicker-bottom span):
2575         (.colorpicker-text):
2576         (.colorpicker-color-text-value):
2577         (.colorpicker-hue):
2578         (.colorpicker-fill):
2579         (.colorpicker-range-container):
2580         (.colorpicker-range-container *):
2581         (.colorpicker-range-container label):
2582         (.colorpicker-range-container input):
2583         (.colorpicker-saturation):
2584         (.colorpicker-value):
2585         (.colorpicker-dragger):
2586         (.colorpicker-slider):
2587         (.colorpicker-container .swatch):
2588         (.colorpicker-container .swatch-inner):
2589         * UserInterface/CSSColorPicker.js: Added.
2590         (WebInspector.CSSColorPicker.consume):
2591         (WebInspector.CSSColorPicker.move):
2592         (WebInspector.CSSColorPicker.start):
2593         (WebInspector.CSSColorPicker.stop):
2594         (WebInspector.CSSColorPicker.makeDraggable):
2595         (WebInspector.CSSColorPicker.hueDrag):
2596         (WebInspector.CSSColorPicker.colorDragStart):
2597         (WebInspector.CSSColorPicker.colorDrag):
2598         (WebInspector.CSSColorPicker.alphaDrag):
2599         (WebInspector.CSSColorPicker.colorSwatchClicked):
2600         (WebInspector.CSSColorPicker):
2601         (WebInspector.CSSColorPicker.prototype.get element):
2602         (WebInspector.CSSColorPicker.prototype.set color):
2603         (WebInspector.CSSColorPicker.prototype.get color):
2604         (WebInspector.CSSColorPicker.prototype.get outputColorFormat):
2605         (WebInspector.CSSColorPicker.prototype.get colorHueOnly):
2606         (WebInspector.CSSColorPicker.prototype.set displayText):
2607         (WebInspector.CSSColorPicker.prototype.shown):
2608         (WebInspector.CSSColorPicker.prototype._updateHelperLocations):
2609         (WebInspector.CSSColorPicker.prototype._updateDisplay):
2610         (WebInspector.CSSColorPicker.hsvaToRGBA):
2611         (WebInspector.CSSColorPicker.rgbaToHSVA):
2612         * UserInterface/CSSStyleDeclarationTextEditor.js:
2613         (WebInspector.CSSStyleDeclarationTextEditor.prototype.didDismissPopover):
2614         (WebInspector.CSSStyleDeclarationTextEditor.prototype.):
2615         (WebInspector.CSSStyleDeclarationTextEditor.prototype._createColorSwatches):
2616         (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText.colorTextMarker):
2617         (WebInspector.CSSStyleDeclarationTextEditor.prototype.event.newColorText):
2618         * UserInterface/Main.html:
2619
2620 2013-06-26  Antoine Quint  <graouts@apple.com>
2621
2622         Web Inspector: stepping through while paused in debugger makes a popover appear
2623         https://bugs.webkit.org/show_bug.cgi?id=117994
2624
2625         There is no obvious need to call tokenTrackingControllerNewHighlightCandidate when the
2626         active call frame changes and it leads to an extraneous display of the popover.
2627
2628         Reviewed by Timothy Hatcher.
2629
2630         * UserInterface/SourceCodeTextEditor.js:
2631         (WebInspector.SourceCodeTextEditor.prototype._activeCallFrameDidChange):
2632
2633 2013-06-24  Antoine Quint  <graouts@apple.com>
2634
2635         Web Inspector: WebInspector.displayNameForURL() failure prevents DOM inspection
2636         https://bugs.webkit.org/show_bug.cgi?id=117927
2637
2638         Handle possible mis-encoded URI fragments passed to decodeURIComponent() which
2639         could prevent inspection of the DOM.
2640
2641         Reviewed by Timothy Hatcher.
2642
2643         * UserInterface/Main.js:
2644         (WebInspector.displayNameForURL):
2645
2646 2013-06-17  Darin Adler  <darin@apple.com>
2647
2648         Sort all the Xcode project files
2649         https://bugs.webkit.org/show_bug.cgi?id=117696
2650
2651         Reviewed by Anders Carlsson.
2652
2653         * WebInspectorUI.xcodeproj/project.pbxproj: Ran the sort-Xcode-project-file script.
2654
2655 2013-06-21  Joseph Pecoraro  <pecoraro@apple.com>
2656
2657         Web Inspector: Uncaught exception when pretty printing WebInspector.Script
2658         https://bugs.webkit.org/show_bug.cgi?id=117893
2659
2660         This was an issue with an earlier refactoring. The sourceCode is a Script,
2661         so replace the non-existent local variable "script" with "this._sourceCode".
2662
2663         Reviewed by Timothy Hatcher.
2664
2665         * UserInterface/SourceCodeTextEditor.js:
2666         (WebInspector.SourceCodeTextEditor.prototype.textEditorUpdatedFormatting):
2667
2668 2013-06-21  Timothy Hatcher  <timothy@apple.com>
2669
2670         Stop removing and re-adding breakpoints from the backend on reload.
2671
2672         On reload the sourceCode for breakpoints are nulled out, which fires DisplayLocationDidChange.
2673         Then the sourceCode is reassociated, firing DisplayLocationDidChange again. In these cases we
2674         don't need to update the backend, since nothing really changed.
2675
2676         https://bugs.webkit.org/show_bug.cgi?id=117877
2677
2678         Reviewed by Joseph Pecoraro.
2679
2680         * UserInterface/DebuggerManager.js:
2681         (WebInspector.DebuggerManager.prototype._breakpointDisplayLocationDidChange): Return early when
2682         _ignoreBreakpointDisplayLocationDidChangeEvent is true.
2683         (WebInspector.DebuggerManager.prototype.reset): Set _ignoreBreakpointDisplayLocationDidChangeEvent.
2684         (WebInspector.DebuggerManager.prototype._associateBreakpointsWithSourceCode): Ditto.
2685
2686 2013-06-19  Antoine Quint  <graouts@apple.com>
2687
2688         Web Inspector: Copying array or object output does not contain values
2689         https://bugs.webkit.org/show_bug.cgi?id=117669
2690
2691         ConsoleCommandResult was overriding toClipboardString() but wasn't using the complex code
2692         in ConsoleMessageImpl's toClipboardString() to provide a nicely formatted output for objects.
2693         We now use a "clipboarPrefixString" property to customize the prefix used in the clipboard
2694         and, additionally, only use that prefix if we're copying more than a single message since it's
2695         the only situation where it's useful to have the ">" or "<" prefix shown. Console messages with
2696         a log level always print the level and when saving the console log using Cmd+S, all messages
2697         contain their prefix as well.
2698
2699         Reviewed by Timothy Hatcher.
2700
2701         * UserInterface/ConsoleCommand.js:
2702         (WebInspector.ConsoleCommand.prototype.toClipboardString):
2703         Handle the new isPrefixOptional argument.
2704
2705         * UserInterface/ConsoleCommandResult.js:
2706         (WebInspector.ConsoleCommandResult.prototype.get clipboarPrefixString):
2707         Provide a custom "< " prefix and set "enforcesClipboardPrefixString" to false such that
2708         the prefix isn't printed out in situations when it may not.
2709
2710         * UserInterface/ConsoleMessageImpl.js:
2711         Set "enforcesClipboardPrefixString" to true since we always want to log the log level
2712         prefix in all situations.
2713
2714         (WebInspector.ConsoleMessageImpl.prototype.get clipboarPrefixString):
2715         Implement this new getter to return our clipboard string such that subclasses may
2716         customize it.
2717
2718         (WebInspector.ConsoleMessageImpl.prototype.toClipboardString):
2719         Take into account both isPrefixOptional and the "enforcesClipboardPrefixString" property
2720         to only log the prefix if necessary.
2721
2722         * UserInterface/LogContentView.js:
2723         (WebInspector.LogContentView.prototype._formatMessagesAsData):
2724         Make the logging of prefix optional when we have a single message selected and we're
2725         not saving via Cmd+S.
2726
2727 2013-06-18  Joseph Pecoraro  <pecoraro@apple.com>
2728
2729         Web Inspector: Infrequent uncaught exception with debugger popovers breaks inspector
2730         https://bugs.webkit.org/show_bug.cgi?id=117755
2731
2732         Create the ZERO_SIZE and ZERO_RECT objects after we've setup the Size
2733         and Rect prototypes, so they get the expected methods. We then need to
2734         handle the ZERO_RECT case better, and not attempt to draw a background
2735         in a canvas with a 0 size, which would produce an exception.
2736
2737         Reviewed by Timothy Hatcher.
2738
2739         * UserInterface/Geometry.js:
2740         * UserInterface/Popover.js:
2741         (WebInspector.Popover.prototype._update):
2742
2743 2013-06-18  Timothy Hatcher  <timothy@apple.com>
2744
2745         If the tree outline is processing a selection currently, then don't change the selection.
2746
2747         This is needed to allow breakpoints tree elements to be selected without jumping back to
2748         selecting the resource tree element.
2749
2750         https://bugs.webkit.org/show_bug.cgi?id=117746
2751
2752         Reviewed by Joseph Pecoraro.
2753
2754         * UserInterface/Main.js:
2755         (WebInspector._revealAndSelectRepresentedObjectInNavigationSidebar):
2756         * UserInterface/TreeOutline.js:
2757         (TreeElement.prototype.select):
2758
2759 2013-06-18  Timothy Hatcher  <timothy@apple.com>
2760
2761         Update breakpoints to match Xcode 5.
2762
2763         This updates the breakpoint images, line colors, and moves breakpoints toggle button
2764         to the Debugger sidebar navigation bar.
2765
2766         https://bugs.webkit.org/show_bug.cgi?id=117723
2767
2768         Reviewed by Joseph Pecoraro.
2769
2770         * Localizations/en.lproj/localizedStrings.js: Updated.
2771         * UserInterface/DebuggerSidebarPanel.css: Removed custom toggle button rules.
2772         * UserInterface/DebuggerSidebarPanel.js:
2773         (WebInspector.DebuggerSidebarPanel):
2774         (WebInspector.DebuggerSidebarPanel.prototype._breakpointsToggleButtonClicked):
2775         * UserInterface/Images/Breakpoint.png: Updated.
2776         * UserInterface/Images/Breakpoints.pdf: Added.
2777         * UserInterface/Images/Breakpoint@2x.png: Updated.
2778         * UserInterface/Images/BreakpointButton.pdf: Updated.
2779         * UserInterface/Images/BreakpointInactive.png: Updated.
2780         * UserInterface/Images/BreakpointInactive@2x.png: Updated.
2781         * UserInterface/Images/BreakpointInactiveButton.pdf: Updated.
2782         * UserInterface/Images/InstructionPointer.png: Updated.
2783         * UserInterface/Images/InstructionPointer@2x.png: Updated.
2784         * UserInterface/SourceCodeTextEditor.css:
2785         (.source-code.text-editor > .CodeMirror .error): Updated background-color and removed box-shadow.
2786         (.source-code.text-editor > .CodeMirror .warning): Ditto.
2787         * UserInterface/TextEditor.css:
2788         (.text-editor > .CodeMirror .has-breakpoint .CodeMirror-linenumber::before): Changed left position to 0.
2789         (.text-editor > .CodeMirror .execution-line .CodeMirror-linenumber::after): Updated position.
2790         (.text-editor > .CodeMirror .execution-line): Updated background-color and removed box-shadow.
2791
2792 2013-06-13  Joseph Pecoraro  <pecoraro@apple.com>
2793
2794         <http://webkit.org/b/117615> Web Inspector: JS PrettyPrinting Should have space between "do" and "{"
2795
2796         Reviewed by Timothy Hatcher.
2797
2798         * UserInterface/CodeMirrorFormatters.js:
2799
2800 2013-06-13  Joseph Pecoraro  <pecoraro@apple.com>
2801
2802         <http://webkit.org/b/117612> Web Inspector: "Search Resource Content" should cancel when I remove all text search text
2803
2804         Reviewed by Timothy Hatcher.
2805
2806         * UserInterface/ResourceSidebarPanel.js:
2807         (WebInspector.ResourceSidebarPanel):
2808         (WebInspector.ResourceSidebarPanel.prototype._searchFieldInput):
2809
2810 == Rolled over to ChangeLog-2013-06-11 ==