Branch: refs/heads/main Home: https://github.com/WebKit/WebKit Commit: 2304769b774b38cd60627bfb50d88e5259bda370 https://github.com/WebKit/WebKit/commit/2304769b774b38cd60627bfb50d88e5259bda370 Author: Darin Adler <da...@apple.com> Date: 2025-07-28 (Mon, 28 Jul 2025)
Changed paths: M Source/WebCore/css/query/MediaQueryEvaluator.cpp Log Message: ----------- MediaQueryEvaluator::evaluate has repeated computation of RenderStyle https://bugs.webkit.org/show_bug.cgi?id=293538 rdar://152366637 Reviewed by Sam Weinig. The MediaQueryEvaluator is creating a new RenderStyle each time. But this is unnecessary; we don't need a style based on the document's medium font size to correctly evaluate a media query. * Source/WebCore/css/query/MediaQueryEvaluator.cpp: (WebCore::MQ::MediaQueryEvaluator::evaluate const): Use the root element style instead of creating a new RenderStyle each time. Canonical link: https://commits.webkit.org/297928@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