Commit Graph
35 Commits
Author SHA1 Message Date
Towkir Ahmed 9f9eb184a7 Bug 1382171 - Remove MDN Docs widget. r=jdescottes 2017-10-03 09:13:00 -04:00
Gabriel Luong 00590a9724 Bug 1391003 - Use the new photon line selection and hover background colors in devtool. r=bgrins 2017-09-01 10:47:11 -04:00
Julian Descottes 07ccab1eed Bug 1374555 - import all tooltip widgets stylesheets in tooltips.css;r=gl
Now that scoped stylesheets are no longer supported, it doesn't make sense to
include a specific copy of an HTMLTooltip stylesheet in the tooltip container.

Nothing guarantees that a given stylesheet won't be loaded more than once so
having a single one-shot import in tooltips.css is more appropriate.

MozReview-Commit-ID: 690pGNQdnwy
2017-07-18 23:41:41 +02:00
Mats Palmgren bd90393cc1 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz
MozReview-Commit-ID: IbwWM0FL6HF
2017-05-21 17:15:00 +08:00
Carsten "Tomcat" Book 1aa86b3e0e Backed out changeset bbb688fe1ba3 (bug 1365614) 2017-05-22 15:45:31 +02:00
Mats Palmgren 473a358067 Bug 1365614 part 3 - Backout bug 1333482 part 1-9. Removes support for [-webkit-]appearance for now b/c web compat issues. r=bz 2017-05-21 17:15:00 +08:00
Stoyan Dimitrov 8c6794de16 Bug 1360548 - Adapt dimension of broken image tooltip to content. r=jdescottes 2017-05-11 10:03:42 +02:00
Mats Palmgren a064938f08 Bug 1333482 part 7 - [css-ui] Amend DevTools themes with 'appearance:none' where needed so that they'll work with the pref on/off. r=dholbert
MozReview-Commit-ID: DCSg7qlyyJa
2017-03-23 22:11:26 -07:00
Ruturaj K. Vartak 1ce823f0e2 Bug 1314919 - Firebug layout problems. r=ntim.
- CSS Rules
- Background colors of tabs
- Background color of tab buttons
- borders of tabs / buttons
- Variable-izing backgrounds and colors
- netmonitor: cell header color, sorted cell header color
- widgets: cell header color, sorted cell header color
- Toolbar Buttons
- Fixing breadcrumbs in HTML inspector
- JSON View tabs

MozReview-Commit-ID: JqUG5zwvQ0a
2017-01-18 06:35:00 +01:00
Wes Kocher 460e7aa9d3 Backed out changeset 5fb91cd2e2fc (bug 1314919) on the assumption that it turned browser_jsonview_filter.js failtastic a=backout
MozReview-Commit-ID: EEwUWOFFKty
2017-01-18 13:32:17 -08:00
Ruturaj K. Vartak c1efea5ab0 Bug 1314919 - Fix Firebug layout problems. r=ntim
- CSS Rules
- Background colors of tabs
- Background color of tab buttons
- borders of tabs / buttons
- Variable-izing backgrounds and colors
- netmonitor: cell header color, sorted cell header color
- widgets: cell header color, sorted cell header color
- Toolbar Buttons
- Fixing breadcrumbs in HTML inspector
- JSON View tabs
2017-01-18 06:35:00 -05:00
Julian Descottes 8929ff829c Bug 1326875 - fix font color for broken image tooltip in dark theme;r=gl
MozReview-Commit-ID: 6oYTXTDzn3G
2017-01-11 13:16:22 +01:00
Michael Ratcliffe 8929f73c5a Bug 1315639 - Event listener popup needs rewriting r=gerv,pbro
Changes:
  - Removed 5 lines from toolkit/content/license.html as requested by gerv.

MozReview-Commit-ID: COFNoCDVyp6
2016-11-04 17:16:50 +00:00
Julian Descottes fcebc6dd81 Bug 1302890 - remove alert tooltip feature relying on unavailable image;r=gl
MozReview-Commit-ID: 5ytisLjOcwO
2016-10-04 11:45:16 +02:00
Gabriel Luong 876454c8a9 Bug 1307481 - Part 1: Move Tooltip.js and HTMLTooltip.js into widgets/tooltip/ r=jdescottes 2016-10-04 22:48:49 -04:00
Jarda Snajdr 3a6ebfd730 Bug 1278797 - Fix requests-menu-stack-trace direction in RTL locales. r=bgrins 2016-07-28 07:20:00 -04:00
Jarda Snajdr b3ce61539a Bug 1290056 - Netmonitor stack trace: filename starting with underscore is incorrectly displayed due to direction: rtl r=bgrins 2016-07-29 02:33:00 +02:00
Julian Descottes c304555c0a Bug 1288375 - ruleview: fix invisible icons in filter widget tooltip;r=pbro
Scoped stylesheets cannot make reference to an element outside of the scope in any
part of a selector. This means a selector such as ".theme-light .scoped-element"
can not work in a scoped stylesheet.

Theme specific rules have been removed from the filter&bezier tooltip css. Instead
CSS variables defined for each theme are used in the scoped stylesheets.

MozReview-Commit-ID: 7apGbPc0CYy
2016-07-21 16:26:36 +02:00
Julian Descottes cd07cf6711 Bug 1285540 - HTML Tooltip: always use LTR direction to position arrow;r=bgrins
MozReview-Commit-ID: EGMCAZBu1x5
2016-07-13 18:52:51 +02:00
Julian Descottes b6be03d894 Bug 1285206 - Use type=arrow for xul panel wrapper in HTMLTooltip;r=bgrins
MozReview-Commit-ID: I1DCXbl05b6
2016-07-12 17:24:53 +02:00
Julian Descottes b8d27afa33 Bug 1284461 - HTMLTooltip: use variable height only if height==Infinity;r=bgrins
MozReview-Commit-ID: LTraHLeEEp4
2016-07-05 14:35:15 +02:00
Alexandre Poirot 7c6449f3d2 Bug 1267414 - Convert color picker, cubic bezier and filter widgets to HTML Tooltip. r=jdescottes 2016-07-11 01:26:02 -07:00
Julian Descottes 5bc2788731 Bug 1266456 - part9: use HTMLTooltip for autocomplete-popup;r=bgrins
Modify the devtools autocomplete-popup to rely on a HTMLTooltip instance
instead of a XUL panel.

Other than the straightforward migration to HTML, the main difference with
the new implementation is that the richlistbox has now been replace with a
simple HTML list element. The former XUL widget used to be able to take the
focus from the input it was linked to.

This is no longer the case. Most autocomplete users were always keeping the
focus in the input, except for the inspector-search, which was moving the
focus back and forth between the input and the autocomplete's richlistbox.
Now the focus is always in the input. A practical example to illustrate how
this changes the UX: before when the user had the focus on the first element
of the list, pressing "DOWN" would keep the element selected but visually move
the focus in the input. Now the selection simply cycles to the next item.

Even though this introduces a difference in behaviour compared to the previous
implementation, it makes the inspector search UX consistent with the other
autocomplete widgets used in devtools.

Another difference is about the display for the inspector-search. The position
of the autocomplete popup used to be above the input. This is now impossible to
achieve because the search input is at the top of the toolbox and the HTML tooltip
can not exceed the limits of the toolbox.

For this #2 issue, either we manage to use XUL panel wrappers, in which case, the
autocomplete will be displayed as it used to. Or we can invert the order in which
items are inserted and explicitly ask for the autocomplete to be displayed below the
input. I prefered not to change this here in order to make the code change easier to
understand, but it should be addressed in a follow-up.

MozReview-Commit-ID: jH9aXm9Jvz
2016-07-07 16:32:42 +02:00
Julian Descottes f2814765a9 Bug 1266456 - part8: move HTML search autocomplete css to tooltips.css;r=bgrins
MozReview-Commit-ID: 56QVG5IPS97
2016-06-20 15:18:47 +02:00
Julian Descottes ce2b328c54 Bug 1284851 - fix HTMLTooltip capturing events on invisible arrow container;r=bgrins
MozReview-Commit-ID: Ik85IPt7BIB
2016-07-06 22:03:57 +02:00
Julian Descottes 34cb206f63 Bug 1267403 - HTMLTooltip: add useXulWrapper option when displayed in a XUL document;r=ochameau
The HTMLTooltip supports an additional configuration parameter "useXulWrapper".
When set to true, if the tooltip is displayed in a XUL document, a XUL panel
will be used as an additional container for the tooltip.

This allows the tooltip to be displayed anywhere on the screen and can be
useful when displayed in small toolboxes.

MozReview-Commit-ID: 63kv4vAeW5R
2016-07-06 14:50:44 +02:00
Julian Descottes d37a2ebcdf Bug 1266456 - part7: tooltips.css remove unused event details tooltip rule;r=jsnajdr
MozReview-Commit-ID: K0nL7Jthc98
2016-06-09 16:29:29 +02:00
Julian Descottes a7428b281b Bug 1266456 - part5: HTMLTooltip setContent() support "auto" width parameter;r=bgrins
The autocomplete popup defines its width by finding the longest label
to display and then applying a "width:Xch" to its content, where X is
the length of the longest label + 3.

In order to support this, the HTMLTooltip setContent() methods allows to
use width: "auto" (which also becomes the default value). In this case,
the HTMLTooltip show() method will automatically compute the preferred
width for the tooltip. It will first calculate the tooltip height, then
measure the width of the tooltip for this computed height and use it as
the preferred width.

MozReview-Commit-ID: KDxZNB3KDdR
2016-06-23 17:30:50 +02:00
Brian Grinstead ea6a1c05f4 Bug 1277207 - Show tooltip arrow in rtl locales. r=jdescottes
MozReview-Commit-ID: Jc1jdlKhkLz
2016-06-22 18:09:45 -07:00
Jarda Snajdr 2df8e2694b Bug 1280247 - Netmonitor JS stack traces should show the frame's asyncCause r=ochameau 2016-06-15 23:30:00 +02:00
Jarda Snajdr 1cc8e2a3d0 Bug 1277264 - Part 1: Migrate netmonitor tooltips to HTML Tooltip. r=jdescottes 2016-06-12 12:01:00 +01:00
Julian Descottes 2e11b982f8 Bug 1266450 - part6: migrate EventDetails tooltip;r=bgrins
For now this is a 1 to 1 migration of the existing Tooltip
helper method from XUL to HTML.

MozReview-Commit-ID: 9YiJLgibV9h
2016-05-31 11:25:43 +02:00
Julian Descottes 1d32bc08f6 Bug 1266450 - part5: move event details tooltip css to tooltips.css;r=bgrins
MozReview-Commit-ID: 9b1C1g0e6K5
2016-06-03 15:07:23 +02:00
Julian Descottes c94e194787 Bug 1266450 - part4: allow tooltips to have a variable height;r=bgrins
With this changeset the tooltip's effective height can be smaller than
the height specified when calling setContent. If the tooltip content is
dynamic, this allows to display a small tooltip frame if the content is
collapsed, and a bigger tooltip frame when it is expanded.

MozReview-Commit-ID: 44vA0Rdz62m
2016-06-03 12:52:59 +02:00
Julian Descottes de9f21ec87 Bug 1266450 - part1: move devtools tooltip styles to dedicated file;r=bgrins
Tooltip styles are scattered between common.css and panel-specific CSS
files (e.g. inspector.css). For the HTML tooltip, the panel specific CSS
files will not be applied since the tooltip container is appended to the
devtools top window.

This changeset creates a new tooltips.css file which is loaded by default
with devtools themes.

MozReview-Commit-ID: BnoRi9gLfD5
2016-06-03 14:36:56 +02:00