Commit Graph

935 Commits

Author SHA1 Message Date
Florian Queze
6cc0b6e992 Bug 1355056 - replace (function(args) { /* do stuff using this */ }).bind(this) with arrow functions, r=jaws. 2017-04-27 00:25:45 +02:00
Emilio Cobos Álvarez
eca214dbd7 Bug 1355351: Look for the frame for ::before and ::after pseudos. r=heycam
MozReview-Commit-ID: 7Hm2IGsl323
2017-04-16 22:59:29 +02:00
nchevobbe
d8840a78b0 Bug 1358103 - Remove createFactory call on Reps; r=jdescottes
The new Reps bundle from Bug 1357341 is all about functions now,
so we should remove all unnecessary `createFactory` calls
we used to do when creating Reps.

MozReview-Commit-ID: 4KvCThhwphv
2017-04-21 08:50:24 +02:00
Michael Ratcliffe
d1ec44834b Bug 1352115 - Add scalars for toolbareyedropper, copyuniquecssselector and copyfullcssselector r=bsmedberg,pbro
MozReview-Commit-ID: CeqtJ22GM6M
2017-04-19 13:04:12 +01:00
Carsten "Tomcat" Book
5c743100d6 merge mozilla-inbound to mozilla-central a=merge 2017-04-19 10:32:48 +02:00
Wes Kocher
f4bc6586d8 Merge m-c to inbound, a=merge 2017-04-18 14:38:53 -07:00
Stanford Lockhart
ee4b2ab911 Bug 1349691: Polish the grid inspector and layout tab. r=jdescottes
MozReview-Commit-ID: DPYqfcDRKcs
2017-03-29 17:31:46 -03:00
Patrick Brosset
bb1f37bc46 Bug 1356873 - Insert inline text nodes between open and close tags; r=gl
MozReview-Commit-ID: 9bWm0EP7Wrp
2017-04-16 18:11:14 +02:00
Julian Descottes
558fa10d31 Bug 1357340 - grid inspector: add isConnected when creating node grips from node fronts;r=gl
MozReview-Commit-ID: 3OUrS2OvqFs
2017-04-18 11:32:17 +02:00
Alexandre Poirot
0b8aff48d5 Bug 1351266 - Test preview and font tooltips by faking mouse events. r=jdescottes
MozReview-Commit-ID: LdaTXmo9Eb6
2017-03-28 15:51:08 +02:00
Sebastian Hengst
c609a620b6 merge mozilla-central to autoland. r=merge a=merge 2017-04-14 17:22:00 +02:00
Wes Kocher
0fb3243c27 Merge m-c to inbound, a=merge 2017-04-13 17:33:39 -07:00
Gabriel Luong
dc8ea4459f Bug 1343167 - Add navigation for the box model's position, padding, border, margin and content layout. r=jdescottes 2017-04-06 11:24:38 -04:00
Julian Descottes
e3ca23cf09 Bug 1355886 - fix regression when undoing delete node next to a whitespace sibling;r=pbro
MozReview-Commit-ID: GDYzsbCiQcI
2017-04-12 18:59:28 +02:00
Patrick Brosset
f5d60234ab Bug 1355064 - Build the markup-view DOM manually rather than with templater; r=jdescottes
MozReview-Commit-ID: LbULOa7UGq2
2017-04-10 14:55:58 +02:00
Phil Ringnalda
c483a4a456 Backed out changeset 94720e6beec3 (bug 1343167) for still failing browser_inspector_textbox-menu.js too often
CLOSED TREE
2017-04-11 19:20:32 -07:00
Micah Tigley
e34c8d53a1 Bug 1347336 - Display grid line name and position in Grid Highlighter. r=gl
MozReview-Commit-ID: EbUKzd5zqaw
2017-04-11 13:31:22 -06:00
Gabriel Luong
9ff7e33162 Bug 1343167 - Add navigation for the box model's position, padding, border, margin and content layout. r=jdescottes 2017-04-06 11:24:38 -04:00
Julian Descottes
de2fed25f3 Bug 1345529 - fix inspector DocumentWaler children() method;r=pbro
The inspector's DocumentWalker had several issues when trying to retrieve
children for a given node, especially if the starting node was filtered
out by the filter function of the walker.

If the starting node was provided by options.center or options.start
and if this starting node was filtered out by the walker's filter
then the walker would fallback to the first valid parent of this node.

eg with
parent1 > parent2 > [valid-node, invalid-node, valid-node]

When asking for the children of parent2, if the walker started on
"invalid-node", then the walker would instead use parent2 and in turn
we would retrieve the children of parent 1

To fix that we can either tell the walker wether it should fallback to a
sibling of the starting node or to a parent, or make sure that the nodes
provided to the walker are valid.

A second issue was with the utility methods _readForward and _readBackward.
They both use the next/previousSibling() methods of a walker in order to
collect all the valid siblings of the walker's current node. But they were
always including the current node of the walker in their return array. And
there is no guarantee that the walker's currentNode is actually valid for it's
filter.

eg with a walker containing [invalid-node-1, invalid-node-2, valid-node].
Let's say the walker is currently on valid-node and we call previousSibling
The walker will do 3 steps:
- this.walker.previousSibling() > returns invalid-node-2, fails filtering
- this.walker.previousSibling() > returns invalid-node-1, fails filtering
- this.walker.previousSibling() > returns null, stop looping and return null

But at this stage the internal walker still points to the last visited node
(invalid-node-1). So if _readForward/Backward blindly add the current node
of the walker, we might be returning invalid nodes.

MozReview-Commit-ID: 72Be7DP5ky6
2017-04-06 23:17:03 +02:00
Phil Ringnalda
667614e01d Backed out changeset fda9bea59c6f (bug 1345529) for timeouts in browser_markup_mutation_01.js 2017-04-10 08:18:03 -07:00
Julian Descottes
d0cbbccb43 Bug 1345529 - fix inspector DocumentWaler children() method;r=pbro
The inspector's DocumentWalker had several issues when trying to retrieve
children for a given node, especially if the starting node was filtered
out by the filter function of the walker.

If the starting node was provided by options.center or options.start
and if this starting node was filtered out by the walker's filter
then the walker would fallback to the first valid parent of this node.

eg with
parent1 > parent2 > [valid-node, invalid-node, valid-node]

When asking for the children of parent2, if the walker started on
"invalid-node", then the walker would instead use parent2 and in turn
we would retrieve the children of parent 1

To fix that we can either tell the walker wether it should fallback to a
sibling of the starting node or to a parent, or make sure that the nodes
provided to the walker are valid.

A second issue was with the utility methods _readForward and _readBackward.
They both use the next/previousSibling() methods of a walker in order to
collect all the valid siblings of the walker's current node. But they were
always including the current node of the walker in their return array. And
there is no guarantee that the walker's currentNode is actually valid for it's
filter.

eg with a walker containing [invalid-node-1, invalid-node-2, valid-node].
Let's say the walker is currently on valid-node and we call previousSibling
The walker will do 3 steps:
- this.walker.previousSibling() > returns invalid-node-2, fails filtering
- this.walker.previousSibling() > returns invalid-node-1, fails filtering
- this.walker.previousSibling() > returns null, stop looping and return null

But at this stage the internal walker still points to the last visited node
(invalid-node-1). So if _readForward/Backward blindly add the current node
of the walker, we might be returning invalid nodes.

MozReview-Commit-ID: 72Be7DP5ky6
2017-04-06 23:17:03 +02:00
Sebastian Hengst
167df2d0a0 Bug 1352801 - Disable MDN tooltip feature in rule inspector. r=gl
MozReview-Commit-ID: 6QOi9yqKcVH
2017-04-09 21:53:18 +02:00
Sebastian Hengst
97aa38e1ee Backed out changeset f74ec3b3a49a (bug 1352801) for eslint failure. r=backout 2017-04-09 22:33:34 +02:00
Sebastian Hengst
48d58dafbd Bug 1352801 - Disable MDN tooltip feature in rule inspector. r=gl
MozReview-Commit-ID: 6QOi9yqKcVH
2017-04-04 11:12:26 +02:00
Gabriel Luong
fdf98b4cf2 Bug 1350046 - Fix react-related errors in the layout panel. r=jdescottes 2017-04-07 13:11:33 -04:00
Phil Ringnalda
fa2493e3b6 Backed out 2 changesets (bug 1343167) for mass failures in browser_inspector_textbox-menu.js
Backed out changeset 6aa495cd9908 (bug 1343167)
Backed out changeset 98d4fa0f8bf8 (bug 1343167)
2017-04-06 21:01:43 -07:00
Wes Kocher
c48a5e31ea Merge inbound to central, a=merge 2017-04-06 15:01:34 -07:00
Gabriel Luong
43872cab17 Bug 1343167 - Fix eslint errors in BoxModelMain.js. r=me 2017-04-06 12:08:35 -04:00
Gabriel Luong
4de2240a29 Bug 1343167 - Add navigation for the box model's position, padding, border, margin and content layout. r=jdescottes 2017-04-06 11:24:38 -04:00
Stanford Lockhart
6fe9bac8a1 Bug 1352790 - Don't rotate box model position labels. r=gl
MozReview-Commit-ID: LtIwkkFebwt
2017-04-04 16:36:38 -03:00
Alexandre Poirot
eb708d4d60 Bug 1320939 - Lazy load all tooltip widgets until each is really used. r=jdescottes
MozReview-Commit-ID: 9P93GocdLm8
2017-01-31 15:31:37 +01:00
Julian Descottes
e064e126ad Bug 1348254 - grid inspector: update grid inspector colors;r=gl
MozReview-Commit-ID: 3gMvXwJjYdX
2017-04-03 15:57:56 +02:00
Alexandre Poirot
ab19f22a50 Bug 1320939 - Lazy load tooltip event helpers. r=jdescottes
MozReview-Commit-ID: 1FXSUprpCN7
2016-12-06 03:50:57 -08:00
Paul Bignier
800a7a8b9d Bug 1352808 - Typo fixes for 'browser' in comments. r=MattN
MozReview-Commit-ID: IA42yQO5Sb8
2017-04-03 15:26:11 -07:00
Wes Kocher
06260c1036 Merge inbound to central, a=merge 2017-04-03 14:50:18 -07:00
Stefan Yohansson
20195ca04e Bug 1349520 - disable checkered background for font preview tooltips;r=jdescottes
Added flag hideCheckeredBackground to hide checkered background if pass true.

MozReview-Commit-ID: FOQO59xqGvt
2017-03-28 17:28:54 -03:00
Patrick Brosset
3b03ae49b2 Bug 1353015 - Remove unused reference to sdk/system/unload in the inspector; r=jdescottes
MozReview-Commit-ID: 1Yb5lyQBwlp
2017-04-03 16:41:13 +02:00
Alexandre Poirot
06bea2fcdb Bug 1335419 - Lazy load and instanciate computed view, ruleview and font inspector. r=jdescottes
MozReview-Commit-ID: CtI8w6Ao35u
2017-01-31 16:26:40 +01:00
Julian Descottes
bb5a4dc04d Bug 1348005 - update grid panel on reflows;r=gl
Extracted the reflow tracking logic from the box-model to a dedicated util in
inspector/shared/reflow-tracker.js to use it in both box-model and grid-inspector.

MozReview-Commit-ID: DZCOH3RDY6
2017-03-29 20:51:27 +02:00
Julian Descottes
420fd66fac Bug 1350499 - exclude styles for pseudo-els when building boxmodel widget;r=gl
MozReview-Commit-ID: GSoqlJ97KT7
2017-03-29 15:41:42 +02:00
Rahul Chaudhary
67ebe412d6 Bug 1332090 - Added a contrast ratio component to the Color Widget. r=pbro
MozReview-Commit-ID: 9FA0h9ST62E
2017-02-20 22:27:22 -05:00
Matteo Ferretti
4a6c9485d3 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
2017-03-28 12:40:22 +02:00
Iris Hsiao
fc280a6213 Backed out changeset 448adfbcfda1 (bug 1349275) for eslint failure 2017-03-29 10:29:13 +08:00
Matteo Ferretti
7484fd202f 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
2017-03-28 12:40:22 +02:00
Sebastian Hengst
052f4ba73d Bug 1348169 - Fix NaN shown in the Box Model's margins. Fix eslint issues. r=style-fix on a CLOSED TREE 2017-03-28 18:00:58 +02:00
Sebastian Hengst
8c3a8d71cf Bug 1349216 - Fix NaN shown in the Box Model's positions. Fix eslint issues. r=style-fix 2017-03-28 18:00:35 +02:00
Micah Tigley
0d1979ca52 Bug 1343447 - Bug 1343447 - Maintain aspect ratio of grid outline. r=pbro
MozReview-Commit-ID: 97mdXIyDhSw
2017-03-24 14:01:09 -06:00
Gabriel Luong
f42a1e9255 Bug 1349216 - Fix NaN shown in the Box Model's positions. r=pbro 2017-03-28 11:13:41 -04:00
Gabriel Luong
9dffb4f87e Bug 1348169 - Fix NaN shown in the Box Model's margins. r=pbro 2017-03-28 11:13:32 -04:00
Stanford Lockhart
9a976d4a06 Bug 1345119 - Part 5: Test browser_boxmodel_offsetparent.js to test front end box model. r=gl
MozReview-Commit-ID: E2PtkTEvqQo
2017-03-25 13:43:49 -03:00