Commit Graph
20 Commits
Author SHA1 Message Date
Julian Descottes 4a1d954727 Bug 1569495 - Stop using inline styles and inner HTML for image tooltip r=miker
Differential Revision: https://phabricator.services.mozilla.com/D39644
2019-07-29 11:46:53 +00:00
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
Julian Descottes 7674d57438 Bug 1501918 - Restore tooltip size when updating Variable and BrokenImage content;r=pbro
Another regression linked to removing setContent API on HTMLTooltip.
The initial feedback to remove the method was from me, because we started seeing
two ways to set the content of the tooltip (DOM APIs or setContent) and I prefered
keeping only one. However the DOM approach still almost forces you to call setContentSize
in case your tooltip instance is shared for different content.

This is the case for the preview tooltip, which is used for CSS variables, fonts and image
previews. Maybe we should revisit the decision to remove this setContent API

Differential Revision: https://phabricator.services.mozilla.com/D9752
2018-10-25 09:44:18 +00:00
Mantaroh Yoshinaga 6f7df8a1ac Bug 1472942 - Part 2. Add setContentSize() instead of setContent() in HTMLTooltip. r=birtles
This patch will remove setContest(), and change the following things instead of this:

 * Use HTMLTooltip.panel.appendChild() instead of HTMLTooltip.setContent().
 * Add HTMLTooltip.setContetnSize() to specify the panel size if need this.

Differential Revision: https://phabricator.services.mozilla.com/D7044
2018-09-27 07:14:55 +00:00
Julian Descottes 82711b9a8f Bug 1454696 - Run eslint --fix for prefer-const;r=yulia
MozReview-Commit-ID: F6xUXCgdRE4
2018-06-01 12:36:09 +02:00
Frederik Braun 96b2642639 Bug 1351608 - Disable warnings for existing violations to no-unsanitize rule r=Standard8.
MozReview-Commit-ID: 7cTNL5jMtRw
2017-07-03 20:07:02 +01:00
Julian Descottes ef32c972af Bug 1372112 - Use encodeURI to set ImageTooltipHelper image source. r=pbro
MozReview-Commit-ID: D15x6pPaxVr
2017-06-12 12:00:21 +02:00
Stoyan Dimitrov 8c6794de16 Bug 1360548 - Adapt dimension of broken image tooltip to content. r=jdescottes 2017-05-11 10:03:42 +02:00
Stefan Yohansson 20195ca04e Bug 1349520 - disable checkered background for font preview tooltips;r=jdescottes
Added flag hideCheckeredBackground to hide checkered background if pass true.

MozReview-Commit-ID: FOQO59xqGvt
2017-03-28 17:28:54 -03:00
Stefan Yohansson 947d1a00f9 Bug 1067999 - Fixed 'Images in background-image tooltips aren't always easy to see' by adding a repeating image for the tooltip widget. r=ntim 2017-03-10 11:38:30 -03: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
Tom Tromey 1976c3df85 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Wes Kocher 20d9f9713d Backed out 2 changesets (bug 1312041) for mass failures a=backout
Backed out changeset c4f42d7d5453 (bug 1312041)
Backed out changeset 9bfbc8480d43 (bug 1312041)
2016-11-01 10:30:45 -07:00
Tom Tromey d1b2d82846 Bug 1312041 - remove requireRawId rewriting in favor of Loader paths; r=jryans
MozReview-Commit-ID: 6OSszbKpp74
2016-10-25 21:30:18 -06:00
Julian Descottes e4e930753a Bug 1295608 - Migrate devtools/client/shared to use l10n.js instead of Services.string;r=pbro
MozReview-Commit-ID: 2OdCYtae3ad
2016-08-25 17:21:00 +02:00
Sebastian Hengst 183398778b Backed out changeset 51bd96b9f93d (bug 1295608) 2016-08-25 14:20:06 +02:00
Julian Descottes 13d70d5fd7 Bug 1295608 - Migrate devtools/client/shared to use l10n.js instead of Services.string;r=pbro
MozReview-Commit-ID: 3yCxJ9bQBF5
2016-08-23 11:19:59 +02:00
Julian Descottes df9144d00a Bug 1266456 - part2: HTMLTooltip setContent() use object as 2nd arg;r=jsnajdr
setContent expects 3 arguments: content, width, height. Height is already optional
but for the autocomplete migration, the width will also become optional.

Using an object argument for width and height makes this easier.

MozReview-Commit-ID: 9CiMG0BdLOR
2016-06-23 17:27:32 +02:00
Julian Descottes ce41dce5f4 Bug 1266450 - part2: remove iframe container for HTML tooltip;r=bgrins
In order to have tooltips with a variable height, the tooltip container
should be allowed to resize itself on the fly, which cannot be achieved
with an iframe.

This changeset makes the HTMLTooltip rely on a HTML container inserted
in the XUL document directly. This allows to go back to a synchronous
API which also simplifies the implementation.

MozReview-Commit-ID: EDcsnVSKmeU
2016-05-30 23:02:58 +02:00
Julian Descottes 9b74db5fce Bug 1266448 - part3: use HTML tooltip for markupview image previews;r=ochameau
MozReview-Commit-ID: E45sJPVAsxj
2016-05-15 14:45:51 +02:00