Commit Graph
9 Commits
Author SHA1 Message Date
Razvan Caliman 5d8e8e0263 Bug 1503924 - Mark style sources from iframes in the Changes panel. r=gl
Depends on D12590

Differential Revision: https://phabricator.services.mozilla.com/D12697
2018-11-26 05:02:06 +00:00
Razvan Caliman 6038b6bd61 Bug 1503924 - Move level definition to CSS variable in DOM and reuse in Changes panel stylesheet. r=gl
Depends on D12588

Support indefinite nesting by declaring the --diff-level CSS custom property as an inline style on the element at its level of nesting.
This custom property will be used in the stylesheet to compute the appropriate padding-left to create the indentation necessary.

A minumum offset is used, --diff-level-min-offset, to account for the first level (zero-indexed) and to allow additional padding on added/removed lines to clear  the +/- icons.

Differential Revision: https://phabricator.services.mozilla.com/D12590
2018-11-22 19:12:27 +00:00
Razvan Caliman 15791ed77b Bug 1503924 - Trim source URLs to filename in Changes panel. r=gl
Differential Revision: https://phabricator.services.mozilla.com/D12588
2018-11-23 16:25:18 +00:00
Razvan Caliman 85151f26f1 Bug 1503595 - Add empty state for Changes panel; r=gl
Design spec: https://mozilla.invisionapp.com/share/6MLNVPYGR97#/screens

- add localization file
- add strings to show when no CSS changes are available to show
- conditionally show empty state message or diff of changes in React component

MozReview-Commit-ID: 8xYJmg0yGAM

Differential Revision: https://phabricator.services.mozilla.com/D11468
2018-11-15 12:18:45 +00:00
Razvan Caliman 7aed14aa9a Bug 1503896 - (Part 5) Add change type to change metadata and mark whole rules as added/removed; r=pbro
Depends on D10586

Adds a new `type` param to the `change` object passed from server to the client to describe the change type. For changes to rules, the client marks the whole rule as either added or removed and styles it accordingly in the Changes panel.

Change types for declarations are not used at this time, but are put in for consistency and future-proofing.

Differential Revision: https://phabricator.services.mozilla.com/D11116
2018-11-07 10:00:31 +00:00
Razvan Caliman 0c0e1a765b Bug 1499049 - (Part 5) Refactor Changes panel to render diff of nested CSS rule structures; r=pbro
Depends on D8721

- Externalize reusable CSSDeclaration React component;
- Introduce the ability to render rules with unlimited levels of nesting, but cap indentation in the UI at a reasonable level;
- Remove accordion behavior from rules, but keep for sources;
- Cleanup CSS styles for Changes panel.

Differential Revision: https://phabricator.services.mozilla.com/D8722
2018-10-25 13:42:05 +00:00
Razvan Caliman fdb21173e0 Bug 1478448 - (Part 4) Render tracked style changes. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D3329
2018-09-18 08:56:08 +00:00
Csoregi Natalia 925bccfda2 Backed out 5 changesets (bug 1478448) for devtools failures on browser_parsable_css.js . CLOSED TREE
Backed out changeset 1ece57c66cc8 (bug 1478448)
Backed out changeset 8ecc1050fdfc (bug 1478448)
Backed out changeset 775ad6690aa8 (bug 1478448)
Backed out changeset cc33bc63f405 (bug 1478448)
Backed out changeset 57b2bb7a6565 (bug 1478448)
2018-09-17 19:22:38 +03:00
Razvan Caliman 0f1bcbcc30 Bug 1478448 - (Part 4) Render tracked style changes. r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D3329
2018-09-17 15:06:29 +00:00