Commit Graph
56 Commits
Author SHA1 Message Date
Alexandre Poirot 8bd5ef0c15 Bug 1396619 - Lazy load actor codebase related to the inspector. r=zer0
MozReview-Commit-ID: GCY1mqjoOkc
2017-09-04 17:46:26 +02:00
Julian Descottes 2530599593 Bug 1391562 - use obj.on/off/emit rather than static methods from devtools event-emitter;r=zer0
MozReview-Commit-ID: I50W8zGB9d0
2017-08-18 17:05:04 +02:00
Julian Descottes 92eb851e00 Bug 1137935 - remove all usage of sdk/event/core/ in devtools;r=ochameau
MozReview-Commit-ID: 2ab0Ol4Mq64
2017-08-16 15:11:21 +02:00
Hemant Singh Patwal f7a1f766cd Bug 1355819 - Make the getDocument function safer in devtools\server\actors\styles.js.If passed object has no ownerNode get it from parentStyleSheet instead. r=pbro
MozReview-Commit-ID: 6asmrC31KRr
***
2017-05-19 17:41:52 +05:30
Jonathan Kew 0d70ee025e Bug 1353000 - Fix canvas size used for font inspector preview to avoid risk of non-integer scaling that may lead to rounding discrepancies. r=gl 2017-04-28 20:04:34 +01: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
Stanford Lockhart c1147d5e72 Bug 940275 - Part 1: Add positioning properties to box model r=gl
MozReview-Commit-ID: AB5fREjDhsD
2017-02-28 18:18:28 -04:00
Stanford Lockhart a91ee8278b Bug 1292051 - Show box model properties under the box model. r=gl 2017-02-08 13:58:50 -05: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
Tom Tromey 17e25d65e8 Bug 1328016 - add parseNamedDeclarations and use in rule view; r=pbro
MozReview-Commit-ID: 25LvVRvbpIm
2017-01-03 13:14:08 -07:00
Gabriel Luong cced658201 Bug 1302496 - Refactor LayoutView to a Box Model component r=jdescottes 2016-09-13 16:35:16 -04:00
Greg Tatum 0fc28c2ff3 Bug 1290988 - Collect devtools/shared/css-* files into a folder. r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8
2016-09-14 10:00:27 -05:00
Sebastian Hengst 93c9c62451 Backed out changeset 1bca17123507 (bug 1290988) for xpcshell failures (test_rewriteDeclarations.js) and devtools failures (browser_styleeditor_syncAddProperty.js). r=backout 2016-09-13 17:43:44 +02:00
Greg Tatum 36e0a1b1fa Bug 1290988 - Collect devtools/shared/css-* files into a folder; r=tromey
In preparation for the additional files in the `mach generate-css-db`
command, collect the CSS files into a folder.

MozReview-Commit-ID: 9JRVsC2NMK8
2016-08-29 11:02:34 -05: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
b0fa44c98a Bug 1288423 - Rename Actor/FrontClassWithSpec to Actor/FrontClass. r=fitzgen 2016-08-10 17:36:04 +02:00
Tom Tromey 6892a50d74 Bug 1292574 - make CSS a global rather than a module in devtools loader; r=gregtatum
MozReview-Commit-ID: 5RYwDAW4wxt
2016-08-05 08:32:59 -06:00
Patrick Brosset 2deffcd80d Bug 1287042 - Always before/after CSS rules in rule-view; r=bgrins
::before and ::after pseudo-elements are visible in the markup-view today
but if, for some reason, they aren't generated, we still want to know that
the CSS rule exists.
This may happen if you use display:none on the pseudo-element CSS rule itself.
When that happens, the pseudo-element won't be generated and therefore there
will be no possibility to see the rule in the rule-view (you'd have to go to
the style-editor for that).
This change keeps the pseudo-elements in the markup-view, but also adds the
corresponding CSS rules in the rule-view.

MozReview-Commit-ID: tx5IpmtE7b
2016-07-18 17:15:05 +02:00
Tom Tromey a1c55e31b0 Bug 1225254 - split css-logic.js into server and shared files; r=pbro
MozReview-Commit-ID: BTFVQJcVI5d
2016-06-24 08:26:21 -06:00
Tom Tromey 53788ed9ed Bug 1280371 - Move ELEMENT_STYLE to devtools/shared/specs/styles. r=bgrins
MozReview-Commit-ID: AjZLiQAivg9
2016-06-16 11:27:10 +01:00
Nicolas Chevobbe b77179e404 Bug 1240038 - Listen for changes when a StyleSheetActor is created. r=tromey
A listener was added for stylesheet changes only if the stylesheet already
contributed to the page before the modification. So if there was a stylesheet
without any rule matching a node of the page, when a rule was created in it for
the current selected node in the markup view, the rule view wasn't refreshed.
The fix here is to emit an event, from the TabActor, when a StyleSheetActor is created,
and listen to such event to watch for changes in it, in order to update the rule view.
Modify an existing rule view/stylesheet editor sync test to make sure this bug is fixed.


MozReview-Commit-ID: H3szbUnchQP
2016-06-07 22:28:45 +02:00
Greg Tatum 4aebc40c28 Bug 1265790 - replace inIDOMUtils.isInheritedProperty r=pbro
MozReview-Commit-ID: 1c6OLfYMW0p
2016-06-02 13:07:00 +02:00
Nicolas Chevobbe 691dd41d9a Bug 1253869 - Don't assume that rule in the Rules view match the selected node when checking for overidden properties. r=gl
Unmatched rules created via the "Add New Rule" button was wrongfully make other rules look not applied.
Fix returned isMatching boolean in PageStyleActor's function when the evaluated rule has multiple selectors.
Add CSS rules to make look unmatched rules' properties unmatched, like the rule's selector.
Add tests to make sur we handle unmatch rule selectors right.

MozReview-Commit-ID: FPQ7XJoa7Ba
2016-05-25 18:16:26 +02:00
Greg Tatum a8e55a89a4 Bug 1265798 - Implement CSS database to query css properties r=pbro
MozReview-Commit-ID: CAUh2GyeA2o
2016-05-26 08:48:00 -07:00
Patrick Brosset 8c1b03880b Bug 1270186 - Move css-parsing-utils.js from devtools/client to devtools/shared; r=tromey
MozReview-Commit-ID: 75Yq1X4YjjJ
2016-05-23 14:03:12 +02:00
Chris Frey 6e13db655f Bug 1272208 - Use classList instead of className for testing if SVG node has classes. r=pbro
MozReview-Commit-ID: 5wq8NKYXGVx
2016-05-23 08:06:00 -04: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
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
Eddy Bruel 0ea1ecb6b6 Bug 1265722 - Decouple InspectorFront from InspectorActor;r=jryans 2016-05-17 14:34:40 +02:00
Sebastian Hengst 5973518cc6 Backed out changeset 92b07e6e84bf (bug 1265722) for failing test_animation_actor-lifetime.html because of undefined function InspectorFront. r=backout 2016-05-17 13:50:21 +02:00
Eddy Bruel e79d4fc43a Bug 1265722 - Decouple InspectorFront from InspectorActor;r=jryans 2016-05-17 11:14:31 +02:00
Patrick Brosset a08f8085bf Bug 1069829 - 3 - Clean styles.js off of eslint errors; r=me
MozReview-Commit-ID: JxEJRM3KUPQ
2016-05-10 13:29:55 +02:00
Patrick Brosset 7a1b8f182c Bug 1069829 - 2 - Don't use cssPropertyIsValid in the rule-view UI, get the info from the server instead; r=tromey
- StyleRuleActors now parse declarations and send them within the form
- Each declaration also contains isValid flag
- Parsing is still done client side for old backends (back compat)
- Declarations are sent with the form, so updated every time the rule changes
- Also made StyleRuleActors send the declarations array for element styles, and made canSetRuleText true for this, since we can simply set the style attribute

MozReview-Commit-ID: 2nI4bRyvwwi
2016-04-29 09:30:02 +02:00
Eddy Bruel 48e199eb06 Bug 1268568 - Decouple StyleRuleFront from StyleRuleActor;r=jryans 2016-05-09 13:55:00 +02:00
Eddy Bruel 50ded1eb77 Bug 1268568 - Decouple PageStyleFront from PageStyleActor;r=jryans 2016-05-09 13:13:25 +02: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
Julian Descottes 811131e7ae Bug 1268466 - ruleview: create new rule <style> el in frame document;r=tromey
To create new rules, style elements are added to the content document.
For nodes located in an iframe, the style element should be added to the
ownerDocument of this particular node.

MozReview-Commit-ID: 7ynd7YU3WeL
2016-04-30 16:41:54 +02:00
Tom Tromey 8e4507da59 Bug 1241046 - Find inherited entry in modifySelector2. r=pbro
MozReview-Commit-ID: K0orZj2Revc
2016-01-22 13:12:58 -07: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
Tom Tromey 8d6fa79279 Bug 1239438 - fix most eslint warnings in styles.js; r=pbro 2016-01-20 13:39:06 -07:00
Gabriel Luong c63ff3b56b Bug 1237441 - Move styleinspector directory into the shared inspector directory r=pbro 2016-01-12 09:52:12 -08:00
Wes Kocher 9329572311 Backed out changeset 29f184e43309 (bug 1237441) for eventual build bustage 2016-01-12 09:20:43 -08:00
Gabriel Luong b5d2cb9306 Bug 1237441 - Move styleinspector directory into the shared inspector directory r=pbro 2016-01-12 08:55:46 -08:00
Tom Tromey da127cdd68 Bug 1224121 - fall back to non-authored editing for CSSOM-created rules; r=pbrosset 2015-12-03 08:55:14 -07:00
Tom Tromey baf20b0486 Bug 1216234 - add inIDOMUtils.getCSSPseudoElementNames; r=heycam,pbrosset 2015-12-01 09:52:09 -07:00
Tom Tromey 569b6631ca Bug 1223452 - avoid Cu.importGlobalProperties; r=ochameau 2015-11-16 11:55:00 +01:00
Tom Tromey d9b49585a2 Bug 1222291 - change getRuleText to handle token-less rules; r=bgrins 2015-11-09 12:27:00 +01:00
Carsten "Tomcat" Book f6ea45a658 Backed out changeset f1d90a17ebcc (bug 1216234) for dt6 test failures 2015-11-10 14:30:39 +01:00
Tom Tromey 1c63a737e7 Bug 1216234 - add inIDOMUtils.getCSSPseudoElementNames; r=heycam,pbrosset 2015-11-09 07:01:00 +01:00