mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Backed out changeset 5b110e44f7a6 (bug 1279703) for failing browser_styleinspector_tooltip-longhand-fontfamily.js. r=backout
This commit is contained in:
parent
579567479e
commit
c9b2e89a26
@ -12,7 +12,7 @@
|
||||
// - in-content highlighters that appear when hovering over property values
|
||||
// - etc.
|
||||
|
||||
const {getColor} = require("devtools/client/shared/theme");
|
||||
const {getTheme} = require("devtools/client/shared/theme");
|
||||
const {HTMLTooltip} = require("devtools/client/shared/widgets/HTMLTooltip");
|
||||
const {
|
||||
getImageDimensions,
|
||||
@ -472,7 +472,7 @@ TooltipsOverlay.prototype = {
|
||||
font = font.replace("!important", "");
|
||||
font = font.trim();
|
||||
|
||||
let fillStyle = getColor("body-color");
|
||||
let fillStyle = getTheme() === "light" ? "black" : "white";
|
||||
let {data, size: maxDim} = yield nodeFront.getFontFamilyDataURL(font, fillStyle);
|
||||
|
||||
let imageUrl = yield data.string();
|
||||
|
Loading…
Reference in New Issue
Block a user