Commit Graph

77 Commits

Author SHA1 Message Date
Gabriel Luong
79fa3b4afa Bug 1174543 - Part 2: Clear the matched selector container before rebuilding the matched selectors r=mratcliffe 2015-07-10 14:21:23 -07:00
Gabriel Luong
34fd321c34 Bug 1174543 - Part 1: Remove Templater code in computed-view.js r=mratcliffe 2015-07-10 14:21:21 -07:00
Gabriel Luong
750fa4987b Bug 1181243 - Ctrl + F should focus the filter style search bar if the focus is in the rule and computed view r=mikeratcliffe 2015-07-08 10:40:45 -07:00
Tim Nguyen
e61eae63e9 Bug 1130330 - Add copy url context menu item in styleinspector. r=pbrosset 2015-07-03 06:04:00 +02:00
Alexandre Poirot
f0c5648397 Bug 1167181 - Fix pending getOriginalLocation requests while running browser_computedview_matched-selectors_01.js. r=pbrosset 2015-05-25 22:51:45 +02:00
Julian Descottes
a5dff5425f Bug 965199 - "Copy Image Data-URL" in computed & rule views. r=pbrosset
This feature is about the inspector's rule view & computed view.
The context menu for an image URL (e.g. value of background-image property)
will contain a new entry : "Copy Image Data-URL". Clicking on it will fill the
clipboard with the image encoded as a data url.

The mechanism to hide/show the entry is inspired from the "Copy Color" menu
entry. When the context menu is displayed, check if the target is contained in
a node of type "image", using the getNodeInfo method available on both views.

If the image data cannot be retrieved for a given URL, the clipboard is filled
with an error message.

Modified rule-view getNodeInfo method in order to exclude from image nodes the
'source' links (such as 'style.css', displayed on the right of the rule-view).

Added a new mochitest that tests the feature on an element using a base64
background image.
2015-05-24 01:41:09 +02:00
Alexandre Poirot
3addb91599 Bug 1167181 - Wait for computed view to be fully loaded in tests before proceeding to next one. r=pbrosset 2015-05-25 01:09:47 +02:00
Phil Ringnalda
0eefe0c506 Merge f-t to m-c, a=merge 2015-05-23 14:28:07 -07:00
Patrick Brosset
923cdc222d Bug 1167617 - Remove SpiderMonkey specific JS syntax from inspector; r=jryans 2015-05-22 20:50:01 +02:00
Birunthan Mohanathas
fe337d7c5e Bug 1166840 - Remove unused document argument in uses of nsIClipboardHelper.copyString. r=ehsan 2015-05-21 21:49:30 +01:00
Gabriel Luong
d99770712b Bug 1158506 - [rule view] Filter styles should handle escape keycode correctly r=bgrins 2015-05-04 14:11:07 -07:00
Jordan Santell
d9a58344f8 Bug 1134778 - Consolidate usages of view sourcing in tools with a source-utils module. r=vp,jryans 2015-04-24 14:16:34 -07:00
Michael Ratcliffe
01990ecb83 Bug 1136257 - Shift-click to switch between color unit format in place. r=bgrins 2015-04-17 11:53:06 +01:00
Wes Kocher
f13ef85021 Backed out changeset d321fbee8cd8 (bug 1136257) for being the probably cause of e10s-dt orange 2015-04-20 13:42:48 -07:00
Michael Ratcliffe
552beafbc8 Bug 1136257 - Shift-click to switch between color unit format in place r=bgrins 2015-04-17 11:53:06 +01:00
Gabriel Luong
4c850453d7 Bug 1120616 - Part 4: Add textbox context menu for rule and computed view r=bgrins 2015-04-16 14:15:28 -04:00
Gabriel Luong
89745d2251 Bug 1120616 - Part 3: Adjust the styles in the computed view's filter style search r=bgrins 2015-04-16 14:15:24 -04:00
Gabriel Luong
15db3e6067 Bug 1120616 - Part 1: Implement filter styles in rule view r=bgrins 2015-04-16 14:15:09 -04:00
Sami Jaktholm
62af004113 Bug 1148323 - Make checked checkboxes visibile in rule and computed view context menus on Windows. r=pbrosset 2015-04-04 09:19:47 +03:00
Patrick Brosset
099ac63474 Bug 1104908 - 1 - Fix e10s intermittent browser_computedview_original-source-link.js; r=harth 2014-12-15 12:24:47 +01:00
Patrick Brosset
b53c7a05e7 Bug 1103993 - 3 - Only refresh the rule/computed views when active; r=bgrins r=ochameau 2014-12-10 09:09:19 +01:00
Patrick Brosset
4e1828a337 Bug 1103993 - part 2 - Clean-up some of the style-inspector's code; r=bgrins 2014-11-26 10:18:12 +01:00
Patrick Brosset
5dbe29f065 Bug 1103993 - part 1 - Rename the style-inspector's highlight methods; r=bgrins 2014-11-26 10:18:07 +01:00
Brian Grinstead
5e50773032 Bug 1102084 - Add more contrast for the currently hovered node in the markup view;r=vporof 2014-11-24 13:59:46 -08:00
Brian Grinstead
9bcb825cb7 Bug 1102369 - Convert existing devtools colors to CSS variables - part 2;r=vporof 2014-11-20 12:10:32 -08:00
Heather Arthur
0293859787 Bug 1077523 - Enable CSS source maps by default. r=bgrins 2014-10-09 14:27:00 +02:00
Patrick Brosset
2bc5f0cb95 Bug 1059360 - Highlight nodes that match selectors in the computed-view on mouse-over. r=miker 2014-09-02 04:13:00 +02:00
Heather Arthur
f1e7db7f10 Bug 871423 - Open correct inline stylesheet from style inspector link. r=bgrins 2014-08-22 15:30:00 -04:00
Ryan VanderMeulen
68b66dd114 Backed out changeset 495a024e0c4d (bug 871423) for xpcshell failures. 2014-08-21 21:38:37 -04:00
Heather Arthur
3928db640f Bug 871423 - Open correct inline stylesheet from style inspector link; r=bgrins 2014-08-21 15:51:33 -07:00
Patrick Brosset
6f72a574b6 Bug 1030735 - Enable devtools/styleinspector test with e10s. r=jwalker 2014-08-18 01:19:00 -04:00
Sami Jaktholm
b5f9e6ddda Bug 1026921 - Style Inspector: Choose correct URL for background image tooltip if a rule contains multiple backgrounds. r=pbrosset 2014-06-30 02:10:00 +02:00
Jim Blandy
39dc0c6097 Bug 914753: Make Emacs file variable header lines correct, or at least consistent. DONTBUILD r=ehsan
The -*- file variable lines -*- establish per-file settings that Emacs will
pick up. This patch makes the following changes to those lines (and touches
nothing else):

 - Never set the buffer's mode.

   Years ago, Emacs did not have a good JavaScript mode, so it made sense
   to use Java or C++ mode in .js files. However, Emacs has had js-mode for
   years now; it's perfectly serviceable, and is available and enabled by
   default in all major Emacs packagings.

   Selecting a mode in the -*- file variable line -*- is almost always the
   wrong thing to do anyway. It overrides Emacs's default choice, which is
   (now) reasonable; and even worse, it overrides settings the user might
   have made in their '.emacs' file for that file extension. It's only
   useful when there's something specific about that particular file that
   makes a particular mode appropriate.

 - Correctly propagate settings that establish the correct indentation
   level for this file: c-basic-offset and js2-basic-offset should be
   js-indent-level. Whatever value they're given should be preserved;
   different parts of our tree use different indentation styles.

 - We don't use tabs in Mozilla JS code. Always set indent-tabs-mode: nil.
   Remove tab-width: settings, at least in files that don't contain tab
   characters.

 - Remove js2-mode settings that belong in the user's .emacs file, like
   js2-skip-preprocessor-directives.
2014-06-24 22:12:07 -07:00
Patrick Brosset
54b059995d Bug 1020291 - Rework the way tooltips and highlighters are added to the style inspector; r=harth 2014-06-18 10:25:40 +02:00
Vikneshwar
ee78456672 Bug 1003546 - Use Arrow function instead of bind(). r=fitzgen 2014-06-14 06:49:00 -04:00
Patrick Brosset
fc2789b39a Bug 1014547 - Add a css transform highlighter to the style-inspector; r=bgrins 2014-06-13 16:27:10 +02:00
Sami Jaktholm
b0a3734f48 Bug 1017515 - Add copy color item to context menu of CSS rule and computed views. r=pbrosset 2014-06-12 06:02:00 -04:00
Gabriel Luong
0e3732355e Bug 987797 - Font preview tooltip does not preview web fonts. r=bgrins 2014-05-27 18:55:00 +02:00
Nicholas Nethercote
84364f96d8 Bug 996448 - Lazify the loading of PluralForm.jsm everywhere. r=mak. 2014-04-22 20:19:12 -07:00
Patrick Brosset
43357b3caf Bug 979292 - Correctly place image tooltip in ruleview after a colorpicker was used; r=harth 2014-04-03 10:12:31 +02:00
Paolo Amadini
7363cdddc9 Bug 943621 - Convert to Promise.jsm in style inspector and style editor. r=dcamp, r=harth 2014-01-08 10:53:16 -08:00
Michael Ratcliffe
f620d484f1 Bug 702577 - Show font-family tooltip r=mratcliffe 2014-03-10 13:24:58 +00:00
J. Ryan Stinnett
26967f4282 Bug 976679 - Move event-emitter to toolkit. r=paul 2014-02-25 22:22:05 -06:00
Patrick Brosset
4e80a68183 Bug 932896 - Retrieves image data from server for image tooltips and makes tooltip size a pref, r=jwalker,ttaubert 2014-02-05 11:53:46 +01:00
Carsten "Tomcat" Book
3112df3f5d Backed out changeset 18d70a3136f5 (bug 932896) for mochitest-other bustage on a CLOSED TREE 2014-02-05 11:36:02 +01:00
Paul Rouget
b0677e5fd5 Bug 932896 - Retrieves image data from server for image tooltips and makes tooltip size a pref, r=jwalker,ttaubert 2014-02-05 10:02:52 +01:00
Heather Arthur
986037e940 Bug 950921 - UI for flipping CSS source map pref. r=dcamp 2014-01-14 10:13:47 -05:00
Patrick Brosset
6c50b3a034 Bug 916443 - part 1 - Toolbox level remote highlighter [Australis], r=paul 2014-01-09 12:36:01 +01:00
Patrick Brosset
560549528a Bug 946331 - Rule/Computed views tooltip closes on new selection, r=miker 2013-12-12 08:57:37 +01:00
Patrick Brosset
2ee3833cbb Bug 726427 - CSS transform preview tooltip in style inspector, r=bgrins 2013-12-11 20:50:15 +01:00