Commit Graph
38 Commits
Author SHA1 Message Date
Mike Park 7ea66b2000 Bug 1385398 - Change the appearance of CSS shapes highlighter markers. r=pbro
MozReview-Commit-ID: JO4TZ1Gsr6m
2017-07-28 15:28:08 -04:00
abhinav 880bd24e12 Bug 1379442 - Fix styling of nodeinfobar on RTL sites by setting writing-mode/direction to 'initial'. r=pbro
MozReview-Commit-ID: 3fg7F80CXWe
2017-09-20 09:04:30 +05:30
Mike Park 514b99db5e Bug 1282717 - Highlight CSS shapes points in the page from the rule-view and vice versa. r=pbro
MozReview-Commit-ID: 9pXkbAwgcXO
2017-07-05 10:57:42 -04:00
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
Micah Tigley b3450ea319 Bug 1349335 - Use the grid color for the grid cell and area fills. r=gl
MozReview-Commit-ID: 4etwnse2jZu
2017-06-02 22:49:26 -06:00
Mike Park 97179cc9c0 Bug 1282716 - Add static highlighters for ellipse and inset. r=pbro
Currently doesn't handle zooms or transforms, or rounded corners for inset().

MozReview-Commit-ID: J9ZTjhn9Ki0
2017-05-16 16:25:19 -04:00
Mike Park 97248148b0 Bug 1282716 - Add static highlighter for polygon and circle shapes. r=pbro
MozReview-Commit-ID: 37v4L7qKKWa
2017-05-15 13:56:04 -04:00
Micah Tigley 8e071888a8 Bug 1347338 - Add ability to grid line name in grid highlighter. r=gl
MozReview-Commit-ID: JvBsGTFxvbL
2017-04-07 21:48:22 -06:00
Patrick Brosset 7854006d0a Bug 1338582 - New devtools highlighter for signaling paused state; r=jlast
This adds a new highlighter to our collection of highlighters.
This one is a simple overlay on top of the page and a message at the
top.
It will be used by the debugger to signal to users that script execution
is paused.

In later versions, the message at the top will also contain stepping and
resuming buttons.

MozReview-Commit-ID: JNGWrVjMzkm
2017-04-04 12:03:03 +02:00
Patrick Brosset 131cbe897a Bug 1352369 - Delete unused RectHighlighter CSS; r=zer0
MozReview-Commit-ID: Gz0m9fLJyKS
2017-03-31 12:23:59 +02: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
Gabriel Luong 001c779556 Bug 1302197 - Implement the option to show grid cell highlights in the CSS Grid Highlighter. r=pbro
MozReview-Commit-ID: BSs9tPksPgA
2017-03-01 02:46:50 -05: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
Gabriel Luong 71ed99ef7e Bug 1302536 - Adds a toggleable button next to the 'display: grid' declaration to toggle the grid highlighter r=pbro 2016-11-16 22:35:20 +09:00
Gabriel Luong 37b7a1a2ce Backed out changeset 4329f53c9f9f Bug 1291638 r=gl 2016-09-16 16:53:22 -04:00
Fred Lin d8f79c1561 Bug 1291638 - Change color theme of box-model view. r=gl
MozReview-Commit-ID: AYhPUXV2tJZ
2016-08-17 13:12:37 +08:00
Gabriel Luong 7b4a75f392 Bug 1249558 - Part 2: Display the grid info bar for a grid area highlight r=pbro 2016-09-07 16:44:11 -04:00
Gabriel Luong 26ce025ec3 Backed out changeset f46da98e6edd (Bug 1249558) r=backout 2016-09-07 16:18:31 -04:00
Gabriel Luong 91bf805cea Bug 1249558 - Part 2: Display the grid info bar for a grid area highlight r=pbro 2016-09-07 15:41:51 -04:00
Gabriel Luong e8a577a6cb Bug 1249558 - Part 1: Display the grid area highlight in the css grid overlay r=pbro 2016-09-07 15:41:48 -04:00
Gabriel Luong daf912f588 Bug 1282726 - Simple CSS Grid highlighter that displays grid lines r=pbro
This adds a new highlighter in devtools/server/actors/highlighters.
For now this highlighter isn't used and can only display grid lines
as provided by node.getGridFragments().
2016-08-19 10:26:39 -07: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
Julian Descottes c861479ceb Bug 1289150 - prevent HTML element style color to impact highlighters;r=zer0
MozReview-Commit-ID: VJekKGEBQb
2016-08-04 16:39:42 +02:00
Julian Descottes dc61a11e92 Bug 1291306 - update highlighter CSS selector to avoid leaking styles to content;r=ntim
Even though the pseudo :-moz-native-anonymous is only available for chrome content, elements
such as INPUT tags were impacted by the reset styles defined with the selector ":-moz-native-anonymous"

The selector has to be specialized in order to make sure it only impacts devtools elements.

MozReview-Commit-ID: HeHx9i6RJiq
2016-08-06 15:04:49 +02:00
Patrick Brosset e19007d87a Bug 1262439 - 1 - Introduce a new eye-dropper highlighter; r=zer0
This is mostly porting code from the XUL eye-dropper over to a new
highlighter file.
While I have tested this locally, this highlighter isn't yet used
in devtools.
This will come in later patches.

MozReview-Commit-ID: IF0puLu5Yc7
2016-07-21 14:35:14 +02:00
Dalimil Hajek 1c8d7b7522 Bug 1220388 - Element highlighter tooltip doesn't display element's size if it has long ID / firefox window is narrow. r=zer0
MozReview-Commit-ID: AzKGhr9BssN
2016-07-05 12:38:00 +02:00
Ian Moody 356ceef395 Bug 1285253 - Change incorrect "text-anchor: left" to "start". r=jdescottes
Also fix a typo in a comment, "Rules" -> "Rulers"

MozReview-Commit-ID: Gy5k3TR9JDM
2016-07-07 13:48:16 +01:00
Sebastin Santy 23496e9a16 Bug 1235062 - Set some highlighter CSS properties to initial values to avoid content CSS leaking; r=pbro 2016-07-05 02:16:00 +02:00
Matteo Ferretti d69b56cae7 Bug 1258718 - Simplify highlighters.css adding CSS variables; r=pbro
MozReview-Commit-ID: GyHXNfCxb9f
2016-06-02 13:39:54 +02:00
Nicolas Chevobbe deedc3ec29 Bug 1270215 - Ensure we display properly cased node names all across the devtools. r=jdescottes
Add a displayName property on the NodeActor, which compute from Element.prefix + Element.localName.
The computation is made by a getNodeDisplayName function which can be imported wherever needed.
Edit some tests to ensure we correctly display node names.

MozReview-Commit-ID: 6z0G3ynbMoU
2016-05-12 07:18:58 +02:00
L. David Baron 50ddd15ed9 Bug 1111440 - Replace -moz- prefixed logical margin/padding/border properties with their standard versions. r=heycam
This patch was generated by the command:
  find . -name "*.css" -exec sed -i -f mozpropsub {} \;
in the root of a mozilla-central tree, with the file mozpropsub
containing the contents:
s/-moz-padding-end\>/padding-inline-end/g
s/-moz-padding-start\>/padding-inline-start/g
s/-moz-margin-end\>/margin-inline-end/g
s/-moz-margin-start\>/margin-inline-start/g
s/-moz-border-end\>/border-inline-end/g
s/-moz-border-end-color\>/border-inline-end-color/g
s/-moz-border-end-style\>/border-inline-end-style/g
s/-moz-border-end-width\>/border-inline-end-width/g
s/-moz-border-start\>/border-inline-start/g
s/-moz-border-start-color\>/border-inline-start-color/g
s/-moz-border-start-style\>/border-inline-start-style/g
s/-moz-border-start-width\>/border-inline-start-width/g

While I didn't manually review all the changes, I did review the list of
files, and manually reviewed the changes in the files that I thought
were more interesting.

Note that there are a few tests that should be fixed up as well, but
I'll do that in a later patch.

MozReview-Commit-ID: EiQTuuV0MNQ
2016-05-12 22:19:58 -07:00
Matteo Ferretti e30b76772b Bug 1168113 - Anonymous custom content container should use absolute position. r=xidorn
MozReview-Commit-ID: JkfqzK6BsdE
2016-04-19 22:22:57 +08:00
Matteo Ferretti 1824e57a3a Bug 1139187 - Allow moving and resizing elements in content; r=pbro
MozReview-Commit-ID: EmmFBXW22dk
2016-03-17 10:59:03 -04:00
Razvan Balosin 3a87dee2b9 Bug 1228829 - Make infobar more visible on dark backgrounds. r=pbro, r=ntim 2015-12-11 10:02:00 -05:00
Matteo Ferretti 7f75401ffe Bug 1089240 - Add a measurement tool. r=pbrosset 2015-09-28 15:14:00 +02: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