Граф коммитов

70 Коммитов

Автор SHA1 Сообщение Дата
Michael Ratcliffe 991e8e8313 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

--HG--
extra : moz-landing-system : lando
2019-02-06 17:35:20 +00:00
Cosmin Sabou 3a072e9701 Backed out changeset 8a5155bd8809 (bug 1523335) for devtools failures on browser_rules_gridline-names-autocomplete. CLOSED TREE
--HG--
extra : rebase_source : 457608e6d006784e27979af139c905c6b165913b
2019-02-05 20:45:03 +02:00
Michael Ratcliffe 55b170fc51 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

--HG--
extra : moz-landing-system : lando
2019-02-05 16:53:22 +00:00
Michael Ratcliffe 6928727511 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

--HG--
extra : moz-landing-system : lando
2019-01-21 16:49:24 +00:00
Michael Ratcliffe e1fb58b951 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

--HG--
extra : moz-landing-system : lando
2019-01-17 17:42:04 +00:00
Julian Descottes 801f699fff Bug 1483663 - Support element picker for UA widgets with NAC;r=ladybenko
Depends on D14700

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

--HG--
extra : moz-landing-system : lando
2018-12-19 21:40:41 +00:00
Andreea Pavel 35d9be3087 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 9d930b5368 Bug 1483663 - Support element picker for UA widgets with NAC;r=ladybenko
Depends on D14700

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

--HG--
extra : moz-landing-system : lando
2018-12-19 20:12:02 +00:00
Michael Ratcliffe 36ecc953a3 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

--HG--
extra : moz-landing-system : lando
2018-11-21 14:20:30 +00:00
Michael Ratcliffe 477330588f Bug 1505578 - Flexbox highlighter is offset when container contains padding r=gl
Differential Revision: https://phabricator.services.mozilla.com/D11654

--HG--
extra : moz-landing-system : lando
2018-11-21 17:04:35 +00:00
Mark Banner ceaeb93550 Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop
Differential Revision: https://phabricator.services.mozilla.com/D8389

--HG--
extra : moz-landing-system : lando
2018-10-19 12:55:39 +00:00
Michael Ratcliffe d2d39186f6 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

--HG--
extra : moz-landing-system : lando
2018-10-10 23:59:45 +00:00
Boris Zbarsky 79181a1a13 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 0e54dc6661 Bug 1476145 part 4. Stop using getInterface(nsIDOMWindowUtils) in devtools. r=bgrins 2018-07-24 19:47:41 -04:00
Julian Descottes a17f7800df 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

--HG--
extra : rebase_source : bb933452d3780fa1c632240314014ad9c605c52a
2018-07-24 15:56:35 +02:00
Belén Albeza cb2d3ee5bc Bug 1473901 - show shadow root mode. r=bgrins
MozReview-Commit-ID: Axt9W0uX4FB

--HG--
extra : rebase_source : a2708ee55feca17c79b110e6ea4507c8cb41caa1
2018-07-11 14:53:51 +02:00
Julian Descottes a2e1f4d2af Bug 1465873 - part3: Move generic node utils from Node actor to layout/utils helper;r=bgrins
MozReview-Commit-ID: ASB5m4Eyrck

--HG--
extra : rebase_source : 892bbcc01923bdbf4819a0155d7f7fb7653557d1
2018-06-28 11:22:12 +02:00
Julian Descottes a58b37acb3 Bug 1449333 - Display closed shadow roots in the inspector;r=bgrins
MozReview-Commit-ID: GIA5A4kOYFX

--HG--
extra : rebase_source : 03766e229910776476910a90ba4cebe97648c767
2018-06-15 15:35:28 -07:00
Blake Kaplan 49224c479c 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

--HG--
extra : rebase_source : 39feed5868c86a104e586f40bd1e80e8f8f34e0b
2018-06-04 16:41:43 -07:00
Julian Descottes 640fe52298 Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4

--HG--
extra : rebase_source : 65de1b0aba412d9044b5196115f74276caa058f2
2018-06-01 12:36:09 +02:00
Boris Zbarsky fef0aa2027 Bug 1455676 part 17. Stop using nsIDOMNode in devtools/. r=jdescottes 2018-05-29 22:58:50 -04:00
J. Ryan Stinnett d4371a1b85 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

--HG--
extra : rebase_source : 2c98d6ad0ee7593d542d84e64b65332a6917c7a5
2018-05-03 19:06:14 -05:00
Kris Maglione a7b308c3a2 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

--HG--
extra : rebase_source : cffb1c9762191c579d1397c8169e6e7635d229da
extra : histedit_source : dea59ddd2daaae52069c5faceae9149a4f08dd73
2018-04-24 20:18:09 -07:00
Patrick Brosset e9b33924a6 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

--HG--
extra : rebase_source : 6406571849afb1d3dcec176f68ef4d3d122a1abf
2018-03-30 11:24:45 +02:00
J. Ryan Stinnett bc3b52e35a 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

--HG--
extra : rebase_source : e9acadc8837ad3c05c038a2156272c9eff8c7330
2018-02-10 22:03:12 -06:00
Julian Descottes 8cfe81bd3d Bug 1434543 - removed unused getElementFromPoint from devtools layout/utils;r=ochameau
MozReview-Commit-ID: FHy6Dv5Q5l3

--HG--
extra : rebase_source : e30cd11b98f09842d35cc955d3145fba751a7296
2018-01-31 13:12:10 +01:00
J. Ryan Stinnett 50f195f322 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

--HG--
extra : rebase_source : 55504705fba929f6209ac8c76a000fd26cd8dd3e
2017-12-08 22:18:21 -06:00
Mike Park 6de17b66ff Bug 1418066 - Add rotation to CSS shapes editor transform mode. r=pbro
MozReview-Commit-ID: HJmdhTg5QjL

--HG--
extra : rebase_source : ee0c3e8f624d91cb4c9c71629599c201c89e7169
2017-11-16 15:58:23 -05:00
Cosmin Sabou 09c96dbb89 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 d4fffe9ba5 Bug 1418066 - Add rotation to CSS shapes editor transform mode. r=pbro
MozReview-Commit-ID: HJmdhTg5QjL

--HG--
extra : rebase_source : 828235ca723fe3fa8b3e57eda2512ace002aabd3
2017-11-16 15:58:23 -05:00
shindli e8c465c98f 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 b379311792 Bug 1418066 - Add rotation to CSS shapes editor transform mode. r=pbro
MozReview-Commit-ID: HJmdhTg5QjL

--HG--
extra : rebase_source : 5a39cbaf3fec5179fb69ce53daa6f4cc22260c1d
2017-11-16 15:58:23 -05:00
Kyle Machulis 2090426dc0 Bug 1405792 - Remove nsIDOMHTMLIFrameElement r=bz
MozReview-Commit-ID: 1u9C66X8j59

--HG--
extra : rebase_source : 5d87fe933170e32fbb44e24ec843623e143164d2
2017-10-04 20:41:24 -07:00
Kyle Machulis e54a4653ba Bug 1404079 - Remove nsIDOMHTMLFrameElement; r=bz
MozReview-Commit-ID: GSvMwRpl7g4

--HG--
extra : rebase_source : a5e8ee45bae90eaa9ecdcc6f0bac0c9dac0ce2c8
2017-09-28 19:06:14 -07:00
Wes Kocher d30d68e5f8 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 d4c9fe8ab4 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

--HG--
extra : rebase_source : 8ffa757ece273e614b2cf0e66809c6c6ec8e3891
2017-09-22 10:36:13 +02:00
ZER0 95da87767f Bug 1391014 - take in account the ancestor's transformation too for the current matrix; r=gl
MozReview-Commit-ID: Dc4DU3wPzU8

--HG--
extra : rebase_source : ba22fb39f0415a565167f2da21970acc4e78cdbc
2017-09-08 17:18:21 +02:00
Wes Kocher be459fc2f8 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 68d8cbb445 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

--HG--
extra : rebase_source : 26c1c06f7a983784bf0ddb08a23c4b2054fa3dbb
2017-08-29 14:45:15 +02:00
Matteo Ferretti 2854cff5e1 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 313d90426f 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 d52072a4a8 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
Matteo Ferretti bd64999657 Bug 1297072 - added support for matrices to handle CSS 2D transformation on grid inspector; r=pbro
- Fixed a bug on `getNodeBounds` that would makes the calculation wrong in case
  of nested frames.
- Centralized all the transformation in `updateCurrentMatrix` function,
  including the scaling due the zoom and display's pixel ratio, and the
  translation to the top left corner of the node inspected.
- Added the transformation from the inspected node to the `currentMatrix`.
- Added `drawLine` and `drawRect` functions, that takes a matrix as argument.
- Position the line's number to the grid itself even when we've infinite lines
  (it's not a regression, it is intended since if a grid is transformed, we
  could have weird results otherwise, so we decided to uniform the behaviors).

MozReview-Commit-ID: 7OUfb6u63Qj
2017-05-03 19:19:19 +02:00
Matteo Ferretti 108b6eefd9 Bug 1297072 - added 2d matrix utility functions; r=gregtatum
MozReview-Commit-ID: AugOrLOR2JP
2017-05-03 19:19:14 +02:00
Matteo Ferretti 5ca294eae0 Bug 1359028 - added encodeURIComponent and fixed css class typo; r=pbro
The patch of bug 1353005 removed by mistake a leading dot in a css class, and
the `encodeURIComponent` calls (so the # in the color definition was considered
the hash part in the url).
Also, it appears autoland rejected the last commit from Bug 1353005, so this
patch includes those changes as well.

MozReview-Commit-ID: 2aVW3hYHhSr
2017-04-25 16:35:08 +02:00
Matteo Ferretti c565119d65 Bug 1353005 - removed sdk/content/mod and replaced with DOMWindowUtils calls; r=pbro pbro
MozReview-Commit-ID: 7aj8C0zYr6C

--HG--
extra : rebase_source : d702642c17e4bb852d5aadd435201383e9b5102f
2017-04-10 21:47:39 +02:00
Matteo Ferretti c69aedcdd8 Bug 1345434 - Implementation of a virtual canvas technique for grid highlighter; r=pbro
A virtual canvas is basically a canvas that seems bigger than is actually is.
The technique consists in moving a fixed sized canvas during the scrolling, when
is needed, to give the illusion that it always covers the entire document.

MozReview-Commit-ID: Hp4cUZaBdm8

--HG--
extra : rebase_source : 536891732a6247103734d60f9d8720dc2131815f
2017-04-04 15:11:04 +02:00
Matteo Ferretti c2450fbc4d Bug 1349275 - refactored `moveInfobar` function; r=pbro
- Added `getViewportDimensions`
- Added `getComputedStylePropertyValue` to `CanvasFrameAnonymousContentHelper`
- Refactored totally `moveInfobar` to works with both APZ enabled and new
  positioned absolutely highlighters
- Updated `AutoRefreshHighlighter` for having a `scrollUpdate` method.
- Updated tests

MozReview-Commit-ID: 5m31ZzRzLXr

--HG--
extra : rebase_source : c5abac64217ee0b86413594461fb6a50d5df655e
2017-03-28 12:40:22 +02:00
Iris Hsiao b26415ec87 Backed out changeset 448adfbcfda1 (bug 1349275) for eslint failure
--HG--
extra : rebase_source : 0728e29de869800694671a1133fa7c9beb66df06
2017-03-29 10:29:13 +08:00
Matteo Ferretti 4f078211da Bug 1349275 - refactored `moveInfobar` function; r=pbro
- Added `getViewportDimensions`
- Added `getComputedStylePropertyValue` to `CanvasFrameAnonymousContentHelper`
- Refactored totally `moveInfobar` to works with both APZ enabled and new
  positioned absolutely highlighters
- Updated `AutoRefreshHighlighter` for having a `scrollUpdate` method.
- Updated tests

MozReview-Commit-ID: 5m31ZzRzLXr

--HG--
extra : rebase_source : 8c599a323ff51f1e032405fae47674b695c75b86
2017-03-28 12:40:22 +02:00