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