Bug 1568860 - Part 3: Use the contextual WalkerFront in the fonts view. r=ochameau

Depends on D49637

Differential Revision: https://phabricator.services.mozilla.com/D49639

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Gabriel Luong 2019-10-18 08:43:09 +00:00
Родитель cec1bc2e1d
Коммит 107b49e65e
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -485,7 +485,7 @@ class FontInspector {
switch (unit) { switch (unit) {
case "rem": case "rem":
// Regardless of CSS property, always use the root document element for "rem". // Regardless of CSS property, always use the root document element for "rem".
node = await this.inspector.walker.documentElement(); node = await this.node.walkerFront.documentElement();
break; break;
} }
@ -859,7 +859,7 @@ class FontInspector {
if (show) { if (show) {
const node = isForCurrentElement const node = isForCurrentElement
? this.node ? this.node
: this.inspector.walker.rootNode; : this.node.walkerFront.rootNode;
await this.fontsHighlighter.show(node, { await this.fontsHighlighter.show(node, {
CSSFamilyName: font.CSSFamilyName, CSSFamilyName: font.CSSFamilyName,