Commit Graph
78 Commits
Author SHA1 Message Date
Victor Porof 435f7b056d Bug 1561435 - Format remaining devtools/, a=automatic-formatting, CLOSED TREE
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35894
2019-07-05 11:29:32 +02:00
Patrick Brosset 74f4a4add4 Bug 1559257 - Removing getSameTypeRootTreeItemIgnoreBrowserBoundaries and getSameTypeParentIgnoreBrowserBoundaries usage; r=ochameau
Differential Revision: https://phabricator.services.mozilla.com/D34940
2019-06-18 15:59:29 +00:00
Brian Hackett b92f8a68f7 Bug 1497393 Part 7 - Server side changes for inspector support while replaying, r=pbro.
Differential Revision: https://phabricator.services.mozilla.com/D22863
2019-03-09 16:45:50 -10:00
Ian Moody 1d50d55bb8 Bug 1539265 - Add a few optimisations for ::marker pseudos. r=jdescottes
Where there is existing for ::before and ::after.

Differential Revision: https://phabricator.services.mozilla.com/D25107
2019-04-02 07:45:53 +00:00
Ian Moody 43a3bc171c Bug 1539265 - Add isMarkerPseudoElement function to layout/utils.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25105
2019-04-02 07:45:38 +00:00
arthur.iakab 215148fa05 Backed out 11 changesets (bug 1539265) for causing debugger failures CLOSED TREE
Backed out changeset 8206b880f9ec (bug 1539265)
Backed out changeset be9f5f73bdfe (bug 1539265)
Backed out changeset f78146b8aa17 (bug 1539265)
Backed out changeset 18fa7e971a0d (bug 1539265)
Backed out changeset 6eaf5bdd945c (bug 1539265)
Backed out changeset 3add7d4d4853 (bug 1539265)
Backed out changeset 8015aeb5279d (bug 1539265)
Backed out changeset 19c8e404ac5f (bug 1539265)
Backed out changeset 637a9d6af0f3 (bug 1539265)
Backed out changeset 72bbb4b28932 (bug 1539265)
Backed out changeset 931e98129878 (bug 1539265)
2019-04-02 02:44:43 +03:00
Ian Moody 581674cc19 Bug 1539265 - Add a few optimisations for ::marker pseudos. r=jdescottes
Where there is existing for ::before and ::after.

Differential Revision: https://phabricator.services.mozilla.com/D25107
2019-04-01 21:45:44 +00:00
Ian Moody ad58f26914 Bug 1539265 - Add isMarkerPseudoElement function to layout/utils.js. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D25105
2019-04-01 21:45:33 +00:00
Michael Ratcliffe 259577378d Bug 1523335 - Make use of parentFlexElement in Flexbox inspector r=pbro
This gives a very noticable increase in speed. When Brad finishes https://bugzil.la/1523336 we can stop walking the DOM and simply use `parentFlexElement` and `parentGridElement`.

#### Try

https://treeherder.mozilla.org/#/jobs?repo=try&revision=47d38f2c7dca6ca764862c8b00921644a974a975&group_state=expanded

Differential Revision: https://phabricator.services.mozilla.com/D18674
2019-02-06 17:35:20 +00:00
Cosmin Sabou ded266fd70 Backed out changeset 8a5155bd8809 (bug 1523335) for devtools failures on browser_rules_gridline-names-autocomplete. CLOSED TREE 2019-02-05 20:45:03 +02:00
Michael Ratcliffe 7eadf249ca Bug 1523335 - Make use of parentFlexElement in Flexbox inspector r=pbro
This gives a very noticable increase in speed. When Brad finishes https://bugzil.la/1523336 we can stop walking the DOM and simply use `parentFlexElement` and `parentGridElement`.

Differential Revision: https://phabricator.services.mozilla.com/D18674
2019-02-05 16:53:22 +00:00
Michael Ratcliffe 8cab598fc4 Bug 1521026 - Flex highlighter shouldn't scroll for position:fixed elements r=gl
This fixes the issue but because of our virtual canvas implementation and the
fact that reflow events are batched there is quite a bit of flicker and some
drag (see attached video).

Unfortunately, until bug 1509071 is implemented (full screen canvas using
`position:fixed`) we can't really do anything about the flicker... I suppose we
could stop batching reflow events but that would make all of our highlighters
unusably slow.

Differential Revision: https://phabricator.services.mozilla.com/D16988
2019-01-21 16:49:24 +00:00
Michael Ratcliffe fbdb660a6b Bug 1504743 - Combine the box-model highlighter and the flexbox highlighter when highlighting flex containers/items r=gl
Differential Revision: https://phabricator.services.mozilla.com/D12046
2019-01-17 17:42:04 +00:00
Julian Descottes 115ad8c90d Bug 1483663 - Support element picker for UA widgets with NAC;r=ladybenko
Depends on D14700

Differential Revision: https://phabricator.services.mozilla.com/D14701
2018-12-19 21:40:41 +00:00
Andreea Pavel b91e4c3a21 Backed out 2 changesets (bug 1483663) for failing dt at devtools/client/inspector/markup/test/browser_markup_shadowdom_ua_widgets_with_nac.js on a CLOSED TREE
Backed out changeset 6e9f11aeac28 (bug 1483663)
Backed out changeset 2ffa90b738a1 (bug 1483663)
2018-12-19 23:24:33 +02:00
Julian Descottes 4839a64c59 Bug 1483663 - Support element picker for UA widgets with NAC;r=ladybenko
Depends on D14700

Differential Revision: https://phabricator.services.mozilla.com/D14701
2018-12-19 20:12:02 +00:00
Michael Ratcliffe 5b30e0d380 Bug 1499630 - Text nodes that are flex items aren't highlighted correctly in the flexbox highlighter when they wrap r=gl
Depends on D11654 and D12307

Differential Revision: https://phabricator.services.mozilla.com/D12313
2018-11-21 14:20:30 +00:00
Michael Ratcliffe b8554c5c0f Bug 1505578 - Flexbox highlighter is offset when container contains padding r=gl
Differential Revision: https://phabricator.services.mozilla.com/D11654
2018-11-21 17:04:35 +00:00
Mark Banner 3d6aaad3f5 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389
2018-10-19 12:55:39 +00:00
Michael Ratcliffe 07d88d54d2 Bug 1478481 - Flexbox highlighter overlay is wrong size, in page with full-page-zoom applied r=gl
- Added AutoRefreshHighlighter flag to AutoRefreshHighlighter. This ensures that getQuads() ignores the zoom factor.

Differential Revision: https://phabricator.services.mozilla.com/D7599
2018-10-10 23:59:45 +00:00
Boris Zbarsky c3b43a0bda Bug 1446940 part 3. Stop getting docshells from windows via getInterface in devtools. r=bgrins 2018-08-01 13:07:10 -04:00
Boris Zbarsky 3af9dccacb Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Julian Descottes 8f21c42a4a Bug 1441535 - Remove unnecessary shadowdom check in isXBLAnonymous;r=bgrins
doc.getAnonymousNodes no longer returns shadow dom nodes, so no need
to filter them out in isXBLAnonymous.

This feature is tested in browser_markup_anonymous_02.js so reenabling
this test.

toolbarbutton has 4 children now, but since our tests are no longer
running in non-e10s, the regression was missed!

MozReview-Commit-ID: BHYb5ufyQjg
2018-07-24 15:56:35 +02:00
Belén Albeza eec05e72ba Bug 1473901 - show shadow root mode. r=bgrins
MozReview-Commit-ID: Axt9W0uX4FB
2018-07-11 14:53:51 +02:00
Julian Descottes 1953d4c5ab Bug 1465873 - part3: Move generic node utils from Node actor to layout/utils helper;r=bgrins
MozReview-Commit-ID: ASB5m4Eyrck
2018-06-28 11:22:12 +02:00
Julian Descottes d92b7e96c4 Bug 1449333 - Display closed shadow roots in the inspector;r=bgrins
MozReview-Commit-ID: GIA5A4kOYFX
2018-06-15 15:35:28 -07:00
Blake Kaplan bd5cecf60f Bug 1186265 - Move devtools over to getBounds(). r=pbro
This leaves getAdjustedQuads alone because it lives in its own world and its
result gets sent over IPC. That leaves things in a bit of an intermediate
state, but that should be OK for now.

MozReview-Commit-ID: DH6eGqCFhPr
2018-06-04 16:41:43 -07: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
Boris Zbarsky 8a166e6246 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
J. Ryan Stinnett e595f20c8a Bug 1457804 - Use content size for DevTools highlighter writing mode adjustments. r=gl
The writing mode / RTL adjustments performed by `getWritingModeMatrix` needs the
element's content size without margins, borders, or padding.

MozReview-Commit-ID: LsSfNN4fyDR
2018-05-03 19:06:14 -05:00
Kris Maglione b3990a2d91 Bug 1456686: Part 1 - Fix unused and shadowed explicit imports. r=standard8
These issues were previously ignored due to the nature of our global import
rules. They need to be fixed before that rule can be updated.

MozReview-Commit-ID: DCChktTc5TW
2018-04-24 20:18:09 -07:00
Patrick Brosset 4f6f554ca0 Bug 1351081 - Always retrieve quads relatively to the top window, correctly; r=gl
Use the getBoxQuads's relativeTo option to avoid having to calculate the offset
due to frames.

Also reduce the precision of numbers used when checking if the highlighter is
correctly displayed.

Finally, for some strange reasons, this patch seems to cause a totally unrelated
events mutation event to be sent during the test. This polutes the mutations
received and made the test fail. So I filtered the list of mutations to only
preserve the ones we care about here.
I could not reproduce this extra mutation when running Firefox. Only during the
test. So I did not investigate further.

MozReview-Commit-ID: 1ZQ6FGULjHG
2018-03-30 11:24:45 +02:00
J. Ryan Stinnett a2c4e7b608 Bug 1430918 - Rotate grid outline for writing mode. r=gl
Adjust the grid outline in the Inspector's Layout panel as needed to match the
writing mode and text direction of the grid container.

MozReview-Commit-ID: Ggcp1e4ZipE
2018-02-10 22:03:12 -06:00
Julian Descottes 250b4cd667 Bug 1434543 - removed unused getElementFromPoint from devtools layout/utils;r=ochameau
MozReview-Commit-ID: FHy6Dv5Q5l3
2018-01-31 13:12:10 +01:00
J. Ryan Stinnett 9463608864 Bug 1303171 - Adjust highlighters to account for writing mode and text dir. r=gl
The `getCurrentMatrix` function is used by grid and other highlighters to
account for the element's position, transforms, etc.  Here we extend it with
extra logic to account for the element's writing mode and text direction.

MozReview-Commit-ID: AZT4cJySLwk
2017-12-08 22:18:21 -06:00
Mike Park bba14e3df5 Bug 1418066 - Add rotation to CSS shapes editor transform mode. r=pbro
MozReview-Commit-ID: HJmdhTg5QjL
2017-11-16 15:58:23 -05:00
Cosmin Sabou cba5c0bf72 Backed out changeset c3f707e1f455 (bug 1418066) for ESlint failure on devtools/client/inspector/test/browser_inspector_highlighter-cssshape_07.js:29:1 r=backout on a CLOSED TREE 2017-11-28 17:35:23 +02:00
Mike Park 65856c23ab Bug 1418066 - Add rotation to CSS shapes editor transform mode. r=pbro
MozReview-Commit-ID: HJmdhTg5QjL
2017-11-16 15:58:23 -05:00
shindli c23024821d Backed out 1 changesets (bug 1418066) for failing in /builds/worker/checkouts/gecko/devtools/client/inspector/test/browser_inspector_highlighter-cssshape_06.js:63:1 r=backout on a CLOSED TREE
Backed out changeset 8e64f442e70d (bug 1418066)
2017-11-27 22:35:35 +02:00
Mike Park 01280e2e56 Bug 1418066 - Add rotation to CSS shapes editor transform mode. r=pbro
MozReview-Commit-ID: HJmdhTg5QjL
2017-11-16 15:58:23 -05:00
Kyle Machulis 90bec39eec Bug 1405792 - Remove nsIDOMHTMLIFrameElement r=bz
MozReview-Commit-ID: 1u9C66X8j59
2017-10-04 20:41:24 -07:00
Kyle Machulis ec8a7dce22 Bug 1404079 - Remove nsIDOMHTMLFrameElement; r=bz
MozReview-Commit-ID: GSvMwRpl7g4
2017-09-28 19:06:14 -07:00
Wes Kocher 7fcb6ce623 Backed out changeset 0d8711590ab0 (bug 1351081) for mac dt bustage in browser_inspector_highlighter-iframes_01.js a=backout
MozReview-Commit-ID: DLEjbTPrAD9
2017-09-26 11:39:58 -07:00
ZER0 faa559b7bd Bug 1351081 - added relativeTo to getBoxQuads; r=pbro
Now the quads are always relative to the boundary window.
I also reduce a bit the maths to check if the quads are different.

MozReview-Commit-ID: 93zXH0Um3Ck
2017-09-22 10:36:13 +02:00
ZER0 8c1a0a9d45 Bug 1391014 - take in account the ancestor's transformation too for the current matrix; r=gl
MozReview-Commit-ID: Dc4DU3wPzU8
2017-09-08 17:18:21 +02:00
Wes Kocher 178756c885 Backed out changeset 2a69de9c73c6 (bug 1351081) for dt failures in browser_inspector_highlighter-cssshape_03.js a=backout
MozReview-Commit-ID: FYdGE6c4LLh
2017-08-31 11:23:52 -07:00
ZER0 905f44cb5c Bug 1351081 - added relativeTo to getBoxQuads, improved scrolling with fixed nodes; r=pbro
Now the quads are always relative to the boundary window; I also forced the
update during the scrolling for the box-model, since for element with position
fixed this is still needed.
I also reduce a bit the maths to check if the quads are different.

MozReview-Commit-ID: 93zXH0Um3Ck
2017-08-29 14:45:15 +02:00
Matteo Ferretti c784030bd4 Bug 1370278 - used getTransformToAncestor in Grid Inspector highlighter; r=gl
Used the new chrome-only API to obtain the transformation matrix of the current
node, relative to the inspected window's root element.
That also includes all the transformations from the element's ancestor; plus
the method is more robust and we can simplify the current code, removing also
some hack.

Deleted also the test for dom_matrix_2d, since one of the method was testing
now doesn't exist anymore, and the second it's just a map to native method
that has its own tests on platform.

MozReview-Commit-ID: 35rs34RSMYA
2017-06-09 01:32:27 +02:00
Sebastian Hengst 5ca3d57888 Backed out changeset b61c6809644c (bug 1370278) for failing chrome test test_dom_matrix_2d.html with 'getNodeTransformOrigin is not a function'. r=backout 2017-06-08 20:58:32 +02:00
Matteo Ferretti faa910ca62 Bug 1370278 - used getTransformToAncestor in Grid Inspector highlighter; r=pbro
Used the new chrome-only API to obtain the transformation matrix of the current
node, relative to the inspected window's root element.
That also includes all the transformations from the element's ancestor; plus
the method is more robust and we can simplify the current code, removing also
some hack.

MozReview-Commit-ID: 35rs34RSMYA
2017-06-08 19:46:41 +02:00