Bug 1825921 - Remove SVGUtils::GetFirstNonAAncestorFrame r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D174352
This commit is contained in:
@@ -3338,8 +3338,7 @@ const nsCSSFrameConstructor::FrameConstructionData*
|
||||
nsCSSFrameConstructor::FindTextData(const Text& aTextContent,
|
||||
nsIFrame* aParentFrame) {
|
||||
if (aParentFrame && IsFrameForSVG(aParentFrame)) {
|
||||
nsIFrame* ancestorFrame = SVGUtils::GetFirstNonAAncestorFrame(aParentFrame);
|
||||
if (!ancestorFrame || !SVGUtils::IsInSVGTextSubtree(ancestorFrame)) {
|
||||
if (!SVGUtils::IsInSVGTextSubtree(aParentFrame)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user