gecko-dev/devtools
Patrick Brosset 5c99381151 Bug 1580463 - Remove ReflowTracker and listen for reflows on selected element r=jdescottes
The ReflowTracker was based on the assumption that there was only ever going to
be one target to be observed.
With Fission, this is no longer true.
Turning the ReflowTracker into something that is multi-target aware seemed more
complex than really worth it. After all, all it was doing is getting a ReflowFront
and listening for events on it.
The only 3 things that needed it are the grid inspector, flex inspector and box
model widget. They all needed it for the same reason: updating the data displayed
in the UI when the size/geometry/box-model regions of the selected node changed.
So, it seems simpler to let the inspector instantiate the right ReflowFront when
it needs it (upon a new node selection).
There's only one node selected at any given time in the inspector, so it's simple
to just listen for reflow in that node's target, and dispatch events to the grid,
flex and box-model tools so they can update themselves.

Note that once a new node is selected, we do the `getFront("Reflow")` again
since that node can be in a different target than the previous one. If it is,
however, in the same target, then `getFront` will return the same instance which
is nice.

Differential Revision: https://phabricator.services.mozilla.com/D55987

--HG--
extra : moz-landing-system : lando
2019-12-20 11:35:30 +00:00
..
client Bug 1580463 - Remove ReflowTracker and listen for reflows on selected element r=jdescottes 2019-12-20 11:35:30 +00:00
docs Bug 1592297 - Remove MOZ_QUIET and disable this output by default. r=mccr8,jdescottes 2019-12-02 15:41:35 +00:00
platform Bug 1600545 - Remove useless inclusions of header files generated from IDL files in accessible/, browser/, caps/, chrome/, devtools/, docshell/, editor/, extensions/, gfx/, hal/, image/, intl/, ipc/, js/, layout/, and media/ r=Ehsan 2019-12-06 09:16:44 +00:00
server Bug 1530843 - Check asyncParent when building message stacktrace in webconsole actor. r=Honza. 2019-12-20 09:33:21 +00:00
shared Bug 1602804 - Create WatchpointMap to keep track of objects with watchpoints r=jlast 2019-12-19 22:36:48 +00:00
startup Bug 1565200 - Add frame connector relying on JsWindowActor instead of message manager r=ochameau 2019-12-11 20:09:24 +00:00
.eslintrc.js Bug 1604485 - Add eslint rule against requiring client files from devtools/shared r=nchevobbe 2019-12-17 17:00:28 +00:00
.eslintrc.mochitests.js
.eslintrc.xpcshell.js
CODE_OF_CONDUCT.md
moz.build Bug 1599027 - Remove http inspector doc. r=Honza. 2019-11-26 08:43:59 +00:00
templates.mozbuild
tsconfig.json Bug 1603351 - Add a tsconfig.json file in devtools root folder. r=gregtatum. 2019-12-16 15:21:03 +00:00