Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: ab75d6125139a1e2356269a82facc0201946a910
https://github.com/WebKit/WebKit/commit/ab75d6125139a1e2356269a82facc0201946a910
Author: Vitor Roriz <[email protected]>
Date: 2025-09-09 (Tue, 09 Sep 2025)
Changed paths:
M Source/WebCore/rendering/TextBoxPainter.cpp
Log Message:
-----------
TextBoxPainter: Extract skipping of painting handled by TextDecorationPainter
to its own function
https://bugs.webkit.org/show_bug.cgi?id=298617
rdar://160230239
Reviewed by Tim Nguyen.
At TextBoxPainter::paintPlatformDocumentMarkers we paint markers for
spelling and grammar errors. We skip painting these markers when
there is pseudo-style (::spelling-error, ::grammar-error) targeting
the text-decoration property.
This is because here we just want to paint markers with its native appearance.
Painting due to text-decoration (that can manipulate style and color) is already
handled by TextDecorationPainter.
To make it clearer, we are extracting this behavior to its own free function.
* Source/WebCore/rendering/TextBoxPainter.cpp:
(WebCore::deferMarkersToBePaintedAsTextDecoration):
(WebCore::TextBoxPainter::paintPlatformDocumentMarkers):
Canonical link: https://commits.webkit.org/299778@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes