Commit Graph

28 Commits

Author SHA1 Message Date
Alexandre Poirot
b51a17c59e Bug 1268441 - Convert markup view key shortcuts to use the shortcut helper module. r=bgrins 2016-05-12 03:07:56 -07:00
J. Ryan Stinnett
44259f9611 Bug 1270596 - Fix devtools after ESLint 2.9.0 upgrade. r=tromey
MozReview-Commit-ID: 7LmcHCcIv1Q
2016-05-06 10:49:44 -05:00
Julian Descottes
468c098d3f Bug 1270462 - part2: tooltip toggle callback can resolve(false);r=bgrins,jsnajdr
Previously, the targetNodeCb used in TooltipToggle had an inconsistent API. If
returning synchronously, "false" would prevent the tooltip from appearing.
However, if using a promise, resolving "false" would still show the tooltip.
It was needed to reject the promise in this case to prevent the tooltip from
being displayed.

This commit makes TooltipToggle always expect a consistent return value from
this callback, whether it is synchronous, or using promises.
- true -> show the tooltip on the event target
- DOM node -> show the tooltip on the provided node
- false (or falsy value) -> do not show the tooltip

MozReview-Commit-ID: 7PIPwBJxjWO
2016-05-05 20:25:08 +02:00
Tom Tromey
3a49936872 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-05-04 08:02:03 -06:00
Carsten "Tomcat" Book
4efb017bcf Merge mozilla-central to fx-team 2016-05-02 11:39:08 +02:00
Aryeh Gregor
c4a3296430 Bug 1264270 - Parser should output attributes in source order, not reversed; r=hsivonen,bgrins 2016-05-01 15:15:26 +03:00
Michael Kohler
66cee776b4 Bug 1255542 - markupView.more.showAll should use a proper plural form. r=pbro, r=flod 2016-03-15 14:25:00 +01:00
Nicolas Chevobbe
1b22d1c477 Bug 820926 - Hide void-element's closing tag if the page is an HTML page. r=pbro
Though, if the element has pseudo-elements, and thus can be expanded, show
the closing tag when the void element is expanded.

MozReview-Commit-ID: 7UMMlVjYqLX
2016-04-28 01:51:46 -07:00
Carsten "Tomcat" Book
74de773d2c Backed out changeset 797e8190073f (bug 1265876) for memory leaks in browser_markup_mutation_02.js 2016-04-28 08:13:42 +02:00
Tom Tromey
323443bd29 Bug 1265876 - don't directly use Timer.jsm or timers.js in devtools; r=ochameau
MozReview-Commit-ID: HzbnNvTc5db
2016-04-21 11:20:14 -06:00
J. Ryan Stinnett
8aa03a5d4d Bug 1263258 - Require space before paren for anonymous functions. r=pbro
MozReview-Commit-ID: 2F0j45Vxn2I
2016-04-27 09:06:15 -05:00
Nicolas Chevobbe
85f25eff6d Bug 1232806 - Change mouse events' target to window in the markup view to keep track of the dragging even when the cursor is outside the window. r=jdescottes
Add some tests in the `mousemove` handler to keep the dragged node inside the markup panel.

MozReview-Commit-ID: LSlzTeJyc9D
2016-04-13 13:16:00 +02:00
Patrick Brosset
1de169539a Bug 1262491 - Focus the newly inserted node in the markup-view when clicking the add button. r=jdescottes
MozReview-Commit-ID: FOyFBXT20Du
2016-04-14 13:06:41 +02:00
Dave Townsend
4ac1a46d5e Bug 1257246: Update devtools for eslint 2. r=pbro
ESLint 2 now flags anonymous generator functions according to
generator-star-spacing. Most of the changes here are correcting that.

MozReview-Commit-ID: 9xg2Gmlaz94
2016-04-05 11:31:19 -07:00
Julian Descottes
2b8ac3a5ab Bug 1143742 - part2: multiline inplace-editor should support a maxWidth option;r=gl
The inplaceEditor now supports a maxWidth configuration option which can either
be a number or a method returning a number. This maxWidth will be applied to the
hidden element used in order to autosize the input.

MozReview-Commit-ID: JTiCQ3HK5bn
2016-03-31 00:59:16 +02:00
Matteo Ferretti
1824e57a3a Bug 1139187 - Allow moving and resizing elements in content; r=pbro
MozReview-Commit-ID: EmmFBXW22dk
2016-03-17 10:59:03 -04:00
Patrick Brosset
98b14d1329 Bug 1239047 - Make comment nodes draggable in the markup-view; r=miker
MozReview-Commit-ID: 9kb8EIn2egH
2016-03-08 10:21:36 +01:00
Julian Descottes
610e6a6b39 Bug 1230325 - markup-view: skip keyboard shortcuts if any modifier;r=pbrosset
Bail out from the markup view onKeyDown handler if any modifier is currently
true. All shortcuts specified in this handler are intended to be used without
modifier, so for now this approach is fine.

Added a test checking the use case mentioned in Bug 1230325, with the S
shortcut. In order to write the test, had to create an additional method on
the test actor to be able to wait for events in the window of the content process.

MozReview-Commit-ID: 67icou0HkfA
2016-03-04 18:15:32 +01:00
Alexandre Poirot
4f9be42328 Bug 1252346 - Fixes missing Services definition or tweaked eslint to figure out where does it comes from. r=jryans 2016-03-01 14:00:28 -06:00
Alexandre Poirot
bb787b541e Bug 1245530 - Use require(Services) instead of Cu.import(Services.jsm). r=jryans 2016-02-27 04:51:10 -08:00
Patrick Brosset
865eaf0a2b Bug 1250205 - Clean remaining eslint warnings in devtools/client/inspector/markup/markup.js; r=miker
MozReview-Commit-ID: 1EOSQWWItaO
2016-02-22 19:23:28 +01:00
Nicolas Chevobbe
983520c6a5 Bug 1248381 - Inspector panel should display properly capitalized node name; r=miker
MozReview-Commit-ID: ESlN5Qp9xHj
2016-02-17 18:25:59 +01:00
Hugo Arregui
6d0d9196f0 Bug 1225063 - add option (devtools.markup.collapseAttributes) to enable/disable attribute collapsing from settings panel;r=bgrins 2016-01-25 16:02:31 -08:00
Gabriel Luong
47f2d55d6d Bug 1242278 - Eslint cleanup of Inspector markup view r=pbro 2016-01-25 15:00:04 -05:00
Brian Grinstead
d820e101f9 Bug 1240860 - Escape attribute name before passing into querySelector;r=tromey 2016-01-19 15:30:46 -08:00
Julian Descottes
2e2686f9f6 Bug 1157469 - use EventListenerService to update markupview event bubbles. r=bgrins
Inspector actor now uses EventListenerService:addListenerChangeListener to propagate
event listener changes as mutations with type 'events'.

markupview will now trigger an update when receiving a mutation of type 'event', and
the event bubble display will be updated
2016-01-06 15:01:24 -08:00
Phil Ringnalda
229ab2d68b Merge m-c to f-t 2016-01-07 20:42:35 -08:00
Gabriel Luong
d33ddd8630 Bug 1237335 - Move markup view into the Inspector directory r=pbro 2016-01-07 13:21:22 -08:00