Commit Graph
39 Commits
Author SHA1 Message Date
Mike Park 8c132dfbcc Bug 1368709 - Handle zoom and geometry-box options for CSS shapes highlighter. r=pbro
Also convert markers to SVG path to better handle zoom

MozReview-Commit-ID: 8h9WWOLvFfG
2017-05-30 14:24:12 -04:00
Matteo Ferretti 428103c1a0 Bug 1255351 - box model highlighter: all the guidelines now are overlap the node; r=gl
This patch is fixing the issue mostly for 1dppx / 1dpi display.
For higher dpi a follow-up bug will be made once bug 1345917 and bug 1151421
are fixed; and it will be part of bug 1187970.

MozReview-Commit-ID: 7XuED9ydGvB
2017-03-10 02:32:09 +01:00
Matteo Ferretti fd8cc97d66 Bug 1312103 - Avoid scrolling latency on highlighters given by APZ; r=pbro
- Used `position: absolute` instead of `position: fixed` whenever was possible.
- Updated utility functions and auto-refresh base class to consider the scrolled
  values in root document and scrollable elements.

MozReview-Commit-ID: 6evdOrfj74z
2017-01-02 11:43:37 +01:00
Florian Quèze 47dde5c17b Bug 1334250 - script-generated patch to avoid removeEventListener calls when a variable is used for the event name, r=jaws. 2017-01-27 10:48:00 +01:00
Florian Quèze 91f7a2ef3a Bug 1331599 - script-generated patch to replace removeEventListener calls with the once option when possible, r=jaws. 2017-01-25 07:01:52 +01:00
Sebastian Hengst c6d9ef3e98 Backed out changeset 6bc38f188ef2 (bug 1330099) for devtools failures. r=backout 2017-01-11 23:21:56 +01:00
Tim Nguyen 548b6bdbef Bug 1330099 - Enable object-shorthand eslint rule. r=jryans
MozReview-Commit-ID: 3wA25rfznBv
2017-01-11 21:22:15 +00:00
Tim Nguyen f2c4416df2 Bug 1316723 - Fix more eslint errors in devtools/client/shared/. r=tromey
MozReview-Commit-ID: IzXyqkQECKb
2016-11-11 09:09:50 +00:00
Patrick Brosset 4d235c5270 Bug 1304685 - Show empty text nodes in markupview if they impact layout; r=jdescottes
When the inspector actor walks the DOM in order to find nodes to be
displayed in the inspector panel, it ignores text nodes that contain
only whitespace characters (in order to avoid cluttering the panel with
useless information).

This commit changes this logic so that whitespace text nodes are only
ignored when the node in fact has no layout at all (all text collapsed).
Inside inline formatting contexts, whitespace text nodes may have layout
and therefore push elements further apart. So seeing these nodes in the
panel actually help debugging issues.

MozReview-Commit-ID: GvNMsqsT3w6
2016-10-11 16:29:20 +02:00
Patrick Brosset 215c6c8851 Bug 1304679 - Box-model highlighter now highlights text nodes; r=gl
MozReview-Commit-ID: 8gZvTE1tZuH
2016-09-23 09:57:37 +02:00
Patrick Brosset a36bcc14e6 Bug 1276418 - Remove getNode and all references to it in inspector tests; r=gl
MozReview-Commit-ID: HIhOHZvtUl
2016-09-16 15:58:50 +02:00
fbdb0dae94 Bug 1295171 - Reintroduce the old Actor/FrontClass constructors. r=jryans
Heintroduce the old Actor/FrontClass constructors.
2016-08-22 16:25:57 +02:00
Patrick Brosset 98f15741fe Bug 1289553 - Move the eyedropper label so it's always visible; r=jdescottes
This adds a few new CSS selectors that are used to move the label to the
top and/or left/right of the eyedropper canvas.
The CSS rules use transform and a quick transition.
The eyedropper highlighter then just makes use of this by adding top, left,
right attributes to the DOM depending on its position.

This also adds a test for this, and while testing, I discovered a bug in
shared/layout/utils.js that I fixed here too. Sometimes, the node passed is
actually a DOCUMENT_NODE and so we must account for this in a couple of places
in this file to avoid JS errors.

MozReview-Commit-ID: H969k3mEDJE


MozReview-Commit-ID: 9qOCYVp4mld
2016-08-18 15:17:47 +02:00
b0fa44c98a Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
d40cce7310 Bug 1288423 - Decouple EventsFormActor from EventsFormFront. r=fitzgen 2016-08-10 17:34:34 +02:00
Tom Tromey 49a3014680 Bug 1273941 - replace uses of promise.defer in devtools/client/shared; r=jryans
MozReview-Commit-ID: K5P4eB0XPT9
2016-06-09 09:04:22 -06:00
Steve Melia f92b128fd4 Bug 1276533: Update test actor to scroll element into view before simulating mouse click;r=ochameau
MozReview-Commit-ID: ElTy62z8tl6
2016-05-31 22:03:58 +01:00
Tom Tromey 86974842a1 Bug 1265869 - Add task.js and use in devtools. r=jryans
MozReview-Commit-ID: G5UuAh2RiZZ
2016-05-17 13:07:55 -06:00
J. Ryan Stinnett 530b903fcf Bug 1271084 - Apply ESLint autofixes to ignored /devtools files. r=tromey
For simple rules like function spacing, we can auto-fix these across the code
base so they are followed in a consistent way.

To generate this patch, I ran:

./mach eslint devtools --no-ignore --fix

After this, I reverted any changes to third party files that we really do want
to ignore.

MozReview-Commit-ID: 6Q8BApkAW20
2016-05-18 12:49:23 -05:00
Jennifer Fong bb0e5b8001 Bug 1270173 - Move protocol.js from devtools/server to devtools/shared. r=ejpbruel 2016-05-06 09:19:00 +02:00
Matteo Ferretti 8ac6f4c29d Bug 1139187 - Unit Test for Geometry Editor; r=pbro
MozReview-Commit-ID: 9smoBjNt1St
2016-03-17 10:59:39 -04:00
Julian Descottes 610e6a6b39 Bug 1230325 - markup-view: skip keyboard shortcuts if any modifier;r=pbrosset
Bail out from the markup view onKeyDown handler if any modifier is currently
true. All shortcuts specified in this handler are intended to be used without
modifier, so for now this approach is fine.

Added a test checking the use case mentioned in Bug 1230325, with the S
shortcut. In order to write the test, had to create an additional method on
the test actor to be able to wait for events in the window of the content process.

MozReview-Commit-ID: 67icou0HkfA
2016-03-04 18:15:32 +01:00
Patrick Brosset bf5d6b9c6b Bug 1252099 - Remove usage of getNode and content in markupview tests; r=ochameau
MozReview-Commit-ID: F58e1CcwHNs
2016-03-03 16:35:21 +01:00
Patrick Brosset 599baa5d86 Bug 1252099 - Do not use CPOWs in browser_markup_copy_image_data.js; r=jdescottes
MozReview-Commit-ID: KWQMPplwIY8
2016-03-01 14:13:46 +01:00
Andreas Tolfsen 38422ba13c Bug 1245153 - Use EventUtils.js from mochikit; r=pbrosset
testing/marionette/EventUtils.js has been converted to a JS module in
testing/marionette/event.js and its API has changed.  It was originally
a copy of testing/mochitest/tests/SimpleTest/EventUtils.js, and it should
be fine to use the original instead.

MozReview-Commit-ID: Exi9d5rEeOz
2016-02-05 14:14:15 +00:00
Carsten "Tomcat" Book 8f534e440a Backed out 18 changesets (bug 1245153) for multiple test failures
Backed out changeset 18d54b8d4ae8 (bug 1245153)
Backed out changeset 98b6d0c053c0 (bug 1245153)
Backed out changeset c29a348930a4 (bug 1245153)
Backed out changeset f79252e92acc (bug 1245153)
Backed out changeset 9f3f1c358e47 (bug 1245153)
Backed out changeset 3b9e9a027fa7 (bug 1245153)
Backed out changeset 6da8099573f3 (bug 1245153)
Backed out changeset 63a56310a1b5 (bug 1245153)
Backed out changeset 5fe42d498a2a (bug 1245153)
Backed out changeset b3be2d2f3ac1 (bug 1245153)
Backed out changeset ad5bf32d8fef (bug 1245153)
Backed out changeset 68a6dda373d2 (bug 1245153)
Backed out changeset 6ebd9fde50c0 (bug 1245153)
Backed out changeset e41a5b41859a (bug 1245153)
Backed out changeset 048d70070751 (bug 1245153)
Backed out changeset eff85dc0eaa9 (bug 1245153)
Backed out changeset dc6460e0f336 (bug 1245153)
Backed out changeset 36526a2e8b00 (bug 1245153)
2016-02-11 17:05:41 +01:00
Andreas Tolfsen 6ecd79e592 Bug 1245153 - Use EventUtils.js from mochikit; r=pbrosset
testing/marionette/EventUtils.js has been converted to a JS module in
testing/marionette/event.js and its API has changed.  It was originally
a copy of testing/mochitest/tests/SimpleTest/EventUtils.js, and it should
be fine to use the original instead.

MozReview-Commit-ID: Exi9d5rEeOz
2016-02-05 14:14:15 +00:00
Patrick Brosset 5781119d46 Bug 1181837 - 8 - Include inspector's head.js in markup view to remove duplication; r=bgrins 2016-01-20 09:42:16 +01:00
Grisha Pushkov 56416bde3c Bug 1093593 - Order of attributes in markup view depends on input order. r=pbro 2015-11-26 04:44:00 +01:00
Tim Nguyen d555239da3 Bug 1208864 - Tests for duplicate node context menu item in markup view. r=pbro 2015-10-18 14:30:00 +02:00
Carsten "Tomcat" Book 036e6d2fa3 Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Sebastian Hengst 190bccea7d Backed out changeset c6b267589d0d (bug 1202902) for Mulet Reftest, W3C Platform Test and other failures. r=backout a=backout on a CLOSED TREE 2015-10-07 13:36:26 +02:00
Carsten "Tomcat" Book 12369728f5 Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)
2015-10-07 12:13:45 +02:00
Shu-yu Guo 474f49adb7 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Shu-yu Guo a021cebc10 Bug 1202902 - Fix the world. (r=ato for marionette, rs=Mossop for rest) 2015-10-06 14:00:30 -07:00
Alexandre Poirot a2a7bcff7e Bug 1207977 - Ensure that node are correctly highlighted. r=zer0
Assert that each cardinal point of the node is within the box model
and fix the tests that has broken/weak assertions.
2015-10-05 02:51:39 -07:00
J. Ryan Stinnett b17c143421 Bug 912121 - Update misc. DevTools paths and comments. rs=devtools 2015-09-21 12:07:31 -05:00
J. Ryan Stinnett 2dada8f365 Bug 912121 - Rewrite require / import to match source tree. rs=devtools
In a following patch, all DevTools moz.build files will use DevToolsModules to
install JS modules at a path that corresponds directly to their source tree
location.  Here we rewrite all require and import calls to match the new
location that these files are installed to.
2015-09-21 12:04:18 -05:00
J. Ryan Stinnett a3073e0420 Bug 912121 - Migrate major DevTools directories. rs=devtools
Move major DevTools files to new directories using the following steps:

hg mv browser/devtools devtools/client
hg mv toolkit/devtools/server devtools/server
hg mv toolkit/devtools devtools/shared

No other changes are made.
2015-09-21 12:02:24 -05:00