gecko-dev/devtools/server
Patrick Brosset 8bc98179e9 Bug 1499322 - Support pseudo elements in the flexbox inspector; r=rcaliman
On the server, when looking for a flex container for a node, we were bailing
out if the displayType of the node was null. It was null for pseudo-elements.
This value was returned by the displayType getter in the NodeActor class.
Now, the reason for this dates to 4 years ago in bug 1139937 where trying to
get the display style of a pseudo-element was done in a way to failed. So we
just decided to return null at that point. It doesn't fail anymore, we're
able to return, say, "block" if a pseudo-element has a display:block style.
So I've removed the checks that returned null and that fixed the issue here.

The other part of the fix that was need is in the FlexItemActor class on the
server too. This class can be created for a pseudo-element too.
It accesses element.style without checking if that property exists. However it
does not exist for pseudo-elements. So we needed to add a check for that.
It's not a problem to just skip it in this case because pseudo-elements can't
have inline styles.

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

--HG--
extra : moz-landing-system : lando
2018-10-17 14:24:57 +00:00
..
actors Bug 1499322 - Support pseudo elements in the flexbox inspector; r=rcaliman 2018-10-17 14:24:57 +00:00
performance Bug 1484496: Part 5d - Convert devtools/ nsISimpleEnumerator users to use JS iteration. r=bgrins 2018-08-18 19:28:37 -07:00
socket Bug 1454696 - Run eslint --fix for prefer-const;r=yulia 2018-06-01 12:36:09 +02:00
startup Bug 1474980 - Stop exporting ActorPool/OriginalLocation from server/main.js. r=jryans 2018-07-11 10:49:45 -07:00
tests Bug 1488375 - Use target.getFront to instantiate MemoryFront; r=ochameau 2018-10-17 10:36:33 +00:00
main.js Bug 1497226 - Rename WebExtensionActor/WebExtensionTargetActor/AddonTargetActor.id to addonId. r=jdescottes 2018-10-08 20:34:45 +00:00
moz.build Bug 1473513 - move ActorRegistry module to server/actors/utils; r=ochameau 2018-09-26 10:09:15 +02:00