Commit Graph
33 Commits
Author SHA1 Message Date
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Luca Greco 4e807eca4c Bug 1393760 - Avoid to fire multiple new-node-front events for undefined nodeFront. r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D8856
2018-10-16 17:54:47 +00:00
Belén Albeza 040e021420 Bug 1473917 - Show #shadow-root in breadcrumbs. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3017
2018-08-10 10:55:41 +00:00
Julian Descottes 9e691865a0 Bug 1465873 - part6: Allow selection and breadcrumbs to walk from shadowRoot to host element;r=bgrins
By returning the shadow root as the parentNode of some elements, the breadcrumbs could no longer
display the chain of elements correctly, because shadowRoot.parentNode is null.

This changeset:
- returns the host actor ID as part of the shadowRoot form
- adds a parentOrHost convenience method on the node form
- uses said method in selection and breadcrumbs when walking up the ancestor chain

I don't think we should unconditionally return the host element as the parentNode of the
shadow root, because that is too disconnected from the reality.

MozReview-Commit-ID: JLeDb4VuT1q
2018-06-28 13:11:08 +02:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Julian Descottes 00231e7711 Bug 1053898 - Update framework/selection setNodeFront signature to use object argument;r=gl
Both reason and isSlotted arguments of setNodeFront are optional, switching to an
object argument avoids weird calls such as setNodeFront(front, null, true) in favor
of a more explicit setNodeFront(front, { isSlotted: true });

MozReview-Commit-ID: A6nziH3QQYe
2018-03-05 14:15:57 +01:00
Julian Descottes 89f6a3a670 Bug 1053898 - Update framework/selection to support slotted selections;r=gl
With shadow dom support, a node front can be represented twice in the
markup view, once as a "slotted" version inserted in a <slot> element
and once a regular element.

We should be able to know if the selection was made on the regular or
on the slotted version.

MozReview-Commit-ID: CUpREkL0TzL
2018-03-05 13:56:00 +01:00
Nicolas Chevobbe f50726549e Bug 1382581 - Remove old-event-emitter usage from devtools/client/framework; r=bgrins.
MozReview-Commit-ID: 4oQJ3391H9S
2018-03-14 17:31:12 +01:00
J. Ryan Stinnett 8d1c817851 Bug 1443081 - Apply spacing via eslint --fix for DevTools. r=jdescottes
MozReview-Commit-ID: 2RVNt140Zte
2018-03-12 13:44:41 -05:00
ZER0 d78f1c54ef Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 03:47:30 +02:00
Wes Kocher aa1caed330 Backed out changeset 58f678547059 (bug 1381542) for conflicting with the incoming m-c merge a=backout
MozReview-Commit-ID: 1wKVHbOAUdc
2017-08-10 18:23:14 -07:00
ZER0 c91b128704 Bug 1381542 - renamed "devtools/shared/event-emitter" in "devtools/shared/old-event-emitter"; r=ochameau
MozReview-Commit-ID: GkF8HcUg5u8
2017-08-11 02:43:47 +02:00
Stanford Lockhart a158431154 Bug 1345119 - Part 1: Move functions out of grid-inspector into inspector for sharing with boxmodel. r=pbro
MozReview-Commit-ID: KlHinf9jgFX
2017-03-17 22:58:11 -03:00
Iris Hsiao 206cfb29fd Backed out 5 changesets (bug 1345119) dor mochitest failure in test_inspector_getOffsetParent.html
Backed out changeset c9be65ad95f6 (bug 1345119)
Backed out changeset 4e4817e5b6d4 (bug 1345119)
Backed out changeset 6a01debcc43c (bug 1345119)
Backed out changeset 2c6f67f420d0 (bug 1345119)
Backed out changeset ba020c15393d (bug 1345119)
2017-03-24 15:01:47 +08:00
Stanford Lockhart 36256ef3c8 Bug 1345119 - Part 1: Move functions out of grid-inspector into inspector for sharing with boxmodel. r=pbro
MozReview-Commit-ID: KlHinf9jgFX
2017-03-17 22:58:11 -03:00
Sebastian Hengst a6004f8f08 Backed out changeset ca6b6c3fe79f (bug 1345119) for failing various devtools tests, e.g. devtools/client/inspector/test/browser_inspector_textbox-menu.js. r=backout 2017-03-23 22:01:09 +01:00
Stanford Lockhart 3c0cc223ff Bug 1345119 - Part 1: Move functions out of grid-inspector into inspector for sharing with boxmodel. r=pbro
MozReview-Commit-ID: KlHinf9jgFX
2017-03-17 22:58:11 -03:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Alexandre Poirot 3532d2af79 Bug 985517 - Keep pseudo class locked when selecting another node in the markup view. r=pbro
MozReview-Commit-ID: 4davyHgBtUh
2016-11-02 04:48:05 -07:00
Julian Descottes 00701306a6 Bug 1309650 - remove non remote friendly APIs from selection.js;r=pbro
MozReview-Commit-ID: 4EZIn2NWiZ5
2016-10-12 20:04:17 +02:00
Tom Tromey ffe3669aa5 Bug 1281931 - remove some unused Selection methods; r=gregtatum
MozReview-Commit-ID: 9CHYLyH30fp
2016-07-27 09:55:05 -06:00
Tom Tromey 9c7340fa09 Bug 1281931 - remove unused parameters from Selection constructor; r=gregtatum
MozReview-Commit-ID: 51wgSBIOcp8
2016-07-26 13:35:22 -06:00
Tom Tromey 85bda75417 Bug 1281931 - make framework/selection.js eslint-clean; r=gregtatum
MozReview-Commit-ID: AhPQwws4WaQ
2016-07-26 13:26:10 -06:00
Julian Descottes f53bd5b9dd Bug 1202458 - part1: inline text nodes in markupview only if they are short enough;r=pbro
The markup view will now inline a textnode in its container if and only if:
- the text node is the only child (pseudo elements included)
- the text node length is smaller than a predefined limit

If a container is expanded, its text nodes will now always be rendered in full,
no longer as a short version with an ellipsis. When selecting or navigating on
a textnode, the layout will no longer be modified on the fly.

MozReview-Commit-ID: HcDMqjbOesN
2016-06-02 10:41:49 +02:00
James Long d86f63cef0 Bug 1265854 - replace uses of nsiDOMNode constants in devtools frontend r=tromey 2016-06-03 09:47:58 -04:00
Carsten "Tomcat" Book d83db65f33 Backed out changeset f3bdf3ebaf4c (bug 1202458) for test failures in test_inspector-mutations-value.html - missed that changeset in the backout before, sorry 2016-06-02 16:32:05 +02:00
Julian Descottes 57f9c7e9d0 Bug 1202458 - part1: inline text nodes in markupview only if they are short enough;r=pbro
The markup view will now inline a textnode in its container if and only if:
- the text node is the only child (pseudo elements included)
- the text node length is smaller than a predefined limit

If a container is expanded, its text nodes will now always be rendered in full,
no longer as a short version with an ellipsis. When selecting or navigating on
a textnode, the layout will no longer be modified on the fly.

MozReview-Commit-ID: HcDMqjbOesN
2016-06-02 10:41:49 +02:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Eddy Bruel 8fa66e9173 Bug 1265722 - Decouple NodeFront from NodeActor;r=jryans 2016-05-16 14:04:42 +02:00
Brian Grinstead 061eed57c9 Bug 835896 - Make inspector searchbox also provide results matching text or attributes in the page;r=pbrosset 2015-11-10 21:48:57 -08:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00