Backed out changeset 5b110e44f7a6 (bug 1279703) for failing browser_styleinspector_tooltip-longhand-fontfamily.js. r=backout

This commit is contained in:
Sebastian Hengst 2016-07-11 13:37:21 +02:00
parent 579567479e
commit c9b2e89a26

View File

@ -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();