Commit Graph
7 Commits
Author SHA1 Message Date
Victor Porof b7732ae890 Bug 1561435 - Format devtools/client/, a=automatic-formatting
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D35884
2019-07-05 11:24:38 +02:00
Nicolas Chevobbe c53c9b0c13 Bug 1530255 - Load keyMap files on demand; r=bgrins.
We use to include all the keyMap files in the
codeMirror bundle, but these files can be
pretty large, and are useless if the user did
not select a custom key mapping in the settings
panel.
This patch changes this to only load those files
when they are needed, either when a new editor
is created, or when the user changes the key mapping
preference. The files are only loaded once.

Differential Revision: https://phabricator.services.mozilla.com/D22977
2019-03-12 14:56:24 +00:00
Emilio Cobos Álvarez 5854040efb Bug 1215878 - Implement CSS revert keyword. r=heycam,birtles
The only fishy bit is the animation stuff. In particular, there are two places
where we just mint the revert behavior:

 * When serializing web-animations keyframes (the custom properties stuff in
   declaration_block.rs). That codepath is already not sound and I wanted to
   get rid of it in bug 1501530, but what do I know.

 * When getting an animation value from a property declaration. At that point
   we no longer have the CSS rules that apply to the element to compute the
   right revert value handy. It'd also use the wrong style anyway, I think,
   given the way StyleBuilder::for_animation works.

   We _could_ probably get them out of somewhere, but it seems like a whole lot
   of code reinventing the wheel which is probably not useful, and that Blink
   and WebKit just cannot implement either since they don't have a rule tree,
   so it just doesn't seem worth the churn.

The custom properties code looks a bit different in order to minimize hash
lookups in the common case. FWIW, `revert` for custom properties doesn't seem
very useful either, but oh well.

Differential Revision: https://phabricator.services.mozilla.com/D21877
2019-03-07 11:59:36 +00:00
Nicolas Chevobbe 146741486e Bug 1528910 - Remove unused externalScripts from source editor config; r=gl.
This config is not set by any Editor consumer, so
it's safe to remove it. Furthermore, this allow us
to clean things up a bit and remove a test.

Differential Revision: https://phabricator.services.mozilla.com/D20302
2019-02-19 14:57:46 +00:00
Nicolas Chevobbe 56eee64b56 Bug 1527898 - Override find and replace commands when disableSearchAddon is true; r=gl.
This is an hotfix for the bug, which we want to uplift.
A better fix will happen in Bug 1527903.

Depends on D19963

Differential Revision: https://phabricator.services.mozilla.com/D19965
2019-02-18 04:35:42 +00:00
Nicolas Chevobbe bf005f11c7 Bug 1527898 - Turn sourceditor setup test helper async; r=gl.
The function was returning a Promise but was also
taking a callback for old-style test.
This patch turns the function into an async one,
remove the callback param and refactor tests that
relied on it.

Differential Revision: https://phabricator.services.mozilla.com/D19963
2019-02-18 06:13:29 +00:00
Nicolas Chevobbe 05be70cf58 Bug 1527322 - Move the sourceeditor folder under devtools/client/shared; r=gl.
Differential Revision: https://phabricator.services.mozilla.com/D19641
2019-02-13 15:37:08 +00:00