Skip to content

Commit

Permalink
StyleAdjuster.cpp: fix has no member named isMediaElement
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=262106

Reviewed by Michael Catanzaro.

The Element class only adds the isMediaElement function if ENABLE(VIDEO).

Signed-off-by: Thomas Devoogdt <thomas.devoogdt@barco.com>
Canonical link: https://commits.webkit.org/266719.68@bugfix/StyleAdjuster-2.42.0
  • Loading branch information
ThomasDevoogdt authored and mcatanzaro committed Sep 26, 2023
1 parent 8d923e3 commit 5373496
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Source/WebCore/style/StyleAdjuster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@ static bool shouldInheritTextDecorationsInEffect(const RenderStyle& style, const
auto isAtMediaUAShadowBoundary = [&] {
if (!element)
return false;
#if ENABLE(VIDEO)
auto* parentNode = element->parentNode();
return parentNode && parentNode->isUserAgentShadowRoot() && parentNode->parentOrShadowHostElement()->isMediaElement();
#else
return false;
#endif
}();

// Outermost <svg> roots are considered to be atomic inline-level.
Expand Down

0 comments on commit 5373496

Please sign in to comment.