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
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
Initial support for CSS variable tooltip. Removed title attribute from
variables and added a new tooltip displaying the same content.
MozReview-Commit-ID: FeHmgiS7KQj
Initial support for CSS variable tooltip. Removed title attribute from
variables and added a new tooltip displaying the same content.
MozReview-Commit-ID: FeHmgiS7KQj
Initial support for CSS variable tooltip. Removed title attribute from
variables and added a new tooltip displaying the same content.
MozReview-Commit-ID: FeHmgiS7KQj