зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
301f85da17
Коммит
f46fa84727
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче