Bug 1556135 - only check if the current node is null in getClosestBackgroundImage. r=gl

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Yura Zenevich 2019-06-01 23:16:01 +00:00
Родитель 301f85da17
Коммит f46fa84727
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -302,7 +302,7 @@ function getClosestBackgroundColor(node) {
function getClosestBackgroundImage(node) {
let current = node;
while (current.ownerDocument) {
while (current) {
const computedStyle = CssLogic.getComputedStyle(current);
if (computedStyle) {
const currentBackgroundImage = computedStyle.getPropertyValue("background-image");