[webkit-changes] [WebKit/WebKit] 781594: Avoid creating an InlineBoxPainter for root inline...
Simon Fraser
noreply at github.com
Mon Feb 3 09:14:07 PST 2025
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7815943cfdcb6be9d3c59306cb4eab19246069e6
https://github.com/WebKit/WebKit/commit/7815943cfdcb6be9d3c59306cb4eab19246069e6
Author: Simon Fraser <simon.fraser at apple.com>
Date: 2025-02-03 (Mon, 03 Feb 2025)
Changed paths:
M Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentPainter.cpp
Log Message:
-----------
Avoid creating an InlineBoxPainter for root inline box if possible
https://bugs.webkit.org/show_bug.cgi?id=286873
rdar://144028573
Reviewed by Alan Baradlay.
There's some overhead involved in creating an `InlineBoxPainter`, e.g. computing `LineBox::isFirst()`,
and the InlineBoxPainter is only needed on the root inline box if there's ::first-line style,
so avoid creating one if we can.
* Source/WebCore/layout/integration/inline/LayoutIntegrationInlineContentPainter.cpp:
(WebCore::LayoutIntegration::InlineContentPainter::paintDisplayBox):
Canonical link: https://commits.webkit.org/289738@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list