Commit Graph

64 Commits

Author SHA1 Message Date
Patrick Brosset
639c4ea0c9 Bug 938188 - Make highlighter capable of highlighting only one region, fading out others. r=bgrins
Introduced a new highlighter option that makes each region <path> element in the highlighter only
cover the actual area of the corresponding region, excluding the area of nested regions.
This is useful when used with the existing showOnly region because it lets users see exactly where
a given region is.
This patch makes the layout-view use this new option, so that when users hover over the various
regions in the layout-view, only the corresponding regions are highlighted.
2015-06-20 14:51:50 +02:00
Patrick Brosset
17cac8ae07 Bug 1175040 - Eslint cleanups in styles.js and highlighter.js actor modules; r=bgrins 2015-06-17 11:50:28 +02:00
Patrick Brosset
6e4f4ac7bd Bug 1147826 - Remove deprecated TabActor reference in runAt:server GCLI commands; r=jwalker; r=miker
We used to rely on the TabActor a lot in
/toolkit/devtools/server/actors/highlighter.
This object was being passed around to various highlighter classes, helper
classes and functions.
It was a useful way to get access to the window the highlighters are shown,
listen to DOM events in that window, and also listen to tabActor's will-navigate
events.

Using this object isn't the best idea because it assumes the debugger server is
started and attached to a tab, which makes re-using highlighters outside of this
context impossible (or harder).
Plus we wanted to get rid of the tabActor reference in gcli command contexts.

This change introduces a HighlighterEnvironment that fulfills the requirements
above without relying on a tabActor.
It needs to be initialized either with a tabActor, when we have one (when using
the highlighter from the inspector panel), or with a window (which is what gcli
commands will use).

This change also fixes the highlight command and the rulers command (which
didn't work well with e10s either).
2015-06-01 14:41:12 +02:00
J. Ryan Stinnett
41327d2c68 Bug 1168689 - Allow highlighter to see XBL anonymous nodes. r=pbrosset 2015-06-01 16:52:13 -07:00
Tom Tromey
a4d7a5bc76 Bug 1168088 - Remove SpiderMonkey-specific syntax from toolkit/devtools. r=pbrosset 2015-05-28 11:54:00 -04:00
Alexandre Poirot
2fadb2573e Bug 1167174 - Assert that custom highlighter do show the highlighter before proceeding. r=pbrosset 2015-05-25 18:54:08 +02:00
Alexandre Poirot
1cc7989c2b Backed out changeset ef6fd70cccf5 (bug 1145049) 2015-04-29 11:43:38 +02:00
Alexandre Poirot
954e42e088 Bug 1145049 - Clean inspector on detach/disconnect. r=pbrosset 2015-04-29 09:08:24 +02:00
Patrick Brosset
6db45a36e4 Bug 1121528 - Avoid the inspector going blank when quickly navigating; r=bgrins
This prevents the WalkerActor from failing at handling various requests when
those requests are about DeaedNodes. Indeed, the async nature of the devtools
protocol means that the client could be asking for information about a node that
doesn't exist anymore because it was part of a page that was navigated away from.
The WalkerActor should know how to deal with such cases, so the patch adds a
number of early returns and a new test for them.
This helps avoiding the inspector-panel from going blank in some edge cases.
2015-04-17 12:09:58 +02:00
Matteo Ferretti
752de48cd2 Bug 1144163 - Add a rulers highlighter; added highlighter. r=pbrosset 2015-03-31 14:13:24 +02:00
Patrick Brosset
ff6fd2e249 Bug 1139186 - 2 - Add event handling support to CanvasFrameAnonymousContentHelper; r=bgrins 2015-03-20 16:58:50 +01:00
Patrick Brosset
ad76065d9b Bug 1139186 - 1 - Refactor to the native anon nodes manipulation in highlighters; r=bgrins 2015-03-10 16:28:57 +01:00
Patrick Brosset
03227a8bb2 Bug 1139925 - Make the BoxModelHighlighter highlight all quads and draw guides around the outer-most rect
LayoutHelpers.getAdjustedBoxQuads now returns all quads that el.getBoxQuads returns.
The BoxModelHighlighter calculates an outer rect based on these to draw the guides.
And if the element has more than 1 quad (inline element that spans line breaks), then all quads are
highlighted.
Also all related tests were modified and a couple of new tests were added.
2015-03-13 15:54:10 +01:00
Abhishek Bhattacharya
45e7c05ecf Bug 1120111 - Adds key listeners to highlighter pick mode to traverse DOM and submit/cancel selection; r=pbrosset 2015-03-10 07:02:00 +01:00
Patrick Brosset
5cd80134db Bug 1123851 - 1 - Element geometry highlighter; r=bgrins 2015-03-09 17:33:24 +01:00
Patrick Brosset
9369b8980c Bug 1138780 - Silence the CanvasFrameAnonymousContentHelper destroy error. r=miker 2015-03-03 09:38:42 +01:00
Alexandre Poirot
656232f1d2 Bug 1059308 - cleanup highlighter.js r=pbrosset 2015-02-26 03:53:00 +01:00
Anush
fb06eede76 Bug 1113761 - Allow decimal values in the layout view. r=jaws r=mratcliffe 2015-02-24 09:23:00 +01:00
Patrick Brosset
5f061c9983 Bug 1074836 - 1 - Use both actorID and connPrefix to retrieve the right highlighter actors during inspector tests; r=miker 2015-02-09 10:03:06 +01:00
Matteo Ferretti
2911ff72d8 Bug 1127238 - Remove the hard-coded list of highlighters; r=pbrosset CLOSED TREE 2015-02-03 13:03:33 +01:00
Albert Juhe
a06ad7506d Bug 1100443 - DevTools Themes: Make infobar arrow smaller. r=bgrins 2015-01-21 13:53:00 +01:00
Alexandre Poirot
f58fdc50d0 Bug 1055452 - Fix highlighter on hidden documents like keyboard. r=pbrosset 2015-01-29 03:17:00 +01:00
Aaron Raimist
da5470f9f0 Bug 1042619 - Change 'width x height' letter x to a multiplication sign in devtools frontend. r=bgrins 2015-01-26 14:36:00 -05:00
Mats Palmgren
85655cf86e Bug 1116714 part 1 - Store the document where we added anonomous content so we can call removeAnonymousContent() on it later without throwing. r=pbrosset
Store GlobalForObject for the document too to wallpaper weird devtools
test failures.  Filed as bug 1123362.
2015-01-20 18:20:03 +00:00
Patrick Brosset
f2c9197138 Bug 1109112 - Avoid highlighter exceptions after reloading the page; r=miker 2014-12-11 22:47:41 +01:00
Patrick Brosset
e49b1ca65a Bug 1098435 - Ignore reflows caused by the highlighter in the LayoutChangesObserver; r=paul 2014-11-28 12:12:23 +01:00
Patrick Brosset
07de73aa1e Bug 1084442 - Prevent highlighter from being zoomed in/out and incorrectly positioned when the page is zoomed; r=miker 2014-11-21 11:18:03 +01:00
Patrick Brosset
f212c33043 Bug 1076866 - Rect highlighter; r=bgrins 2014-11-19 11:16:25 +01:00
Patrick Brosset
c1cf90fcd4 Bug 1096575 - Move highlighter.css to toolkit so it is available in other app types; r=paolo 2014-11-13 18:53:07 +01:00
Patrick Brosset
4fbffac0f2 Bug 985597 - Don't highlight hidden nodes; r=miker 2014-11-06 13:04:44 +01:00
Patrick Brosset
39f6247a54 Bug 985597 - Tests for the new highlighter implementation using the AnonymousContent API; r=miker r=jwalker 2014-11-06 13:04:37 +01:00
Patrick Brosset
0f3cb5d7ca Bug 985597 - Filter useless highlighter updates & and use requestAnimationFrame for updates; r=miker 2014-11-06 13:04:28 +01:00
Patrick Brosset
f516ef22a3 Bug 985597 - Use the AnonymousContent Document API for the highlighters; r=miker r=Gijs 2014-11-06 13:04:23 +01:00
Brian Grinstead
8cb3638a5d Bug 920141 - Add support for inspecting anonymous content. r=pbrosset 2014-09-29 09:29:00 +02:00
Patrick Brosset
3a4f2a8855 Bug 971662 - part 2 - Highlight nodes matching style-editor selectors on mouseover; r=harth 2014-08-20 22:41:07 +02:00
Patrick Brosset
3ea0049432 bug 1034601 - Enable devtools/markupview tests with e10s; r=bgrins 2014-07-16 22:17:30 +02:00
Brian Grinstead
22ea0e46ac Bug 1038651 - Prevent inspector from breaking when reloading an SVG file;r=mratcliffe 2014-07-16 08:40:07 -05:00
Patrick Brosset
d0fc045adb Bug 971662 - part 1 - GCLI command that highlights all nodes that match a selector; r=jwalker 2014-06-25 16:40:43 +02:00
Patrick Brosset
67ce18012c bug 971662 - part 0 - The BoxModelHighlighter has options for drawing regions and guides; r=miker 2014-06-25 16:40:34 +02:00
Michael Ratcliffe
7cc87e56dd Bug 994729 - Make box model guides move on layout view region hover r=bgrins 2014-06-24 17:26:38 +01:00
Michael Ratcliffe
5356f8d708 Bug 1016047 - Stop box model highlighter causing toolbox jumping on small screen r=bgrins 2014-06-11 16:05:22 +01:00
Michael Ratcliffe
92ed08de4a Bug 1003569 - Hide node infobar when it is outside the viewport r=jwalker 2014-06-20 12:25:09 +01:00
Michael Ratcliffe
8004a69d9a Bug 1020984 - Fix highlighter when transforms have width & height of 0 r=pbrosset 2014-06-20 13:32:32 +01:00
Patrick Brosset
f70583c66b Bug 1028043 - Clean up unnecessary references to inspector in highlighter.js; r=bgrins 2014-06-20 13:45:05 +02:00
Patrick Brosset
fc2789b39a Bug 1014547 - Add a css transform highlighter to the style-inspector; r=bgrins 2014-06-13 16:27:10 +02:00
Michael Ratcliffe
5d4da56fb4 Bug 718250 - Add the dimensions of the node in the NodeInfobar r=jwalker 2014-06-04 16:38:41 +01:00
Michael Ratcliffe
b0542334d7 Bug 969306 - Remove getQuads() polyfill now that getQuads has landed r=pbrosset 2014-06-03 13:12:55 +01:00
Patrick Brosset
adf5657d9c Bug 993190 - Use the outline highlighter on fennec; r=miker 2014-04-16 11:37:24 +02:00
Michael Ratcliffe
c40013a7b0 Bug 988102 - Opening inspector scrolls the content page all the way to the top;r=bgrins 2014-04-14 15:33:06 +01:00
Michael Ratcliffe
6a28402ad5 Bug 663778 - Use flag instead of pref for mozafterpaint switch and highlighter noautohide r=jwalker 2014-03-13 21:27:10 +00:00