chore: remove redundant parameters from isElementStyleVisibilityVisible (#30637)
This commit is contained in:
parent
ddeec35450
commit
7c826719ec
|
|
@ -84,7 +84,7 @@ export function isElementStyleVisibilityVisible(element: Element, style?: CSSSty
|
||||||
// https://bugs.webkit.org/show_bug.cgi?id=264733
|
// https://bugs.webkit.org/show_bug.cgi?id=264733
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
if (Element.prototype.checkVisibility && browserNameForWorkarounds !== 'webkit') {
|
if (Element.prototype.checkVisibility && browserNameForWorkarounds !== 'webkit') {
|
||||||
if (!element.checkVisibility({ checkOpacity: false, checkVisibilityCSS: false }))
|
if (!element.checkVisibility())
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
// Manual workaround for WebKit that does not have checkVisibility.
|
// Manual workaround for WebKit that does not have checkVisibility.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue