Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 64a2c5d4f8735c2f7007fce7ada27e2418ed19e9 https://github.com/WebKit/WebKit/commit/64a2c5d4f8735c2f7007fce7ada27e2418ed19e9 Author: Matt Woodrow <mattwood...@apple.com> Date: 2025-04-08 (Tue, 08 Apr 2025)
Changed paths: M Source/WebCore/dom/Document.cpp M Source/WebCore/dom/Element.cpp Log Message: ----------- Don't require a full layout to query size of SVG renderers. https://bugs.webkit.org/show_bug.cgi?id=291185 <rdar://148727795> Reviewed by Said Abou-Hallawa. For SVG content, as long as the target doesn't need any form of layout, and ancestors don't need self or positioned movement layout, then we should be able to use the existing layout values. It also updates clientLeft/Top to use this path (like width/height already do), and adds a few missing ayoutOptions::IgnorePendingStylesheets flags. * Source/WebCore/dom/Document.cpp: (WebCore::Document::updateLayoutIfDimensionsOutOfDate): * Source/WebCore/dom/Element.cpp: (WebCore::Element::offsetWidth): (WebCore::Element::offsetHeight): (WebCore::Element::clientLeft): (WebCore::Element::clientTop): (WebCore::Element::clientWidth): (WebCore::Element::clientHeight): (WebCore::Element::scrollWidth): (WebCore::Element::scrollHeight): Canonical link: https://commits.webkit.org/293444@main To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications _______________________________________________ webkit-changes mailing list webkit-changes@lists.webkit.org https://lists.webkit.org/mailman/listinfo/webkit-changes