Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 30a5956fe40f7bbeba786e580f37a903c1713e67
https://github.com/WebKit/WebKit/commit/30a5956fe40f7bbeba786e580f37a903c1713e67
Author: Chris Dumez <[email protected]>
Date: 2026-01-21 (Wed, 21 Jan 2026)
Changed paths:
M Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations
M Source/WebCore/platform/graphics/GraphicsContext.cpp
M Source/WebCore/platform/text/BidiResolver.h
M Source/WebCore/rendering/BidiRun.cpp
M Source/WebCore/rendering/BidiRun.h
Log Message:
-----------
Address unsafe cast warnings in BidiRun.cpp & BidiRun.h
https://bugs.webkit.org/show_bug.cgi?id=305914
Reviewed by Darin Adler.
Make BidiCharacterRun templated to avoid unsafe-looking static casts
in the BidiRun subclass.
* Source/WebCore/SaferCPPExpectations/MemoryUnsafeCastCheckerExpectations:
* Source/WebCore/platform/graphics/GraphicsContext.cpp:
(WebCore::GraphicsContext::drawBidiText):
* Source/WebCore/platform/text/BidiResolver.h:
(WebCore::BidiCharacterRun::next const):
(WebCore::BidiCharacterRun::takeNext):
(WebCore::BidiCharacterRun::setNext):
* Source/WebCore/rendering/BidiRun.cpp:
(WebCore::BidiRun::BidiRun):
(WebCore::BidiRun::takeNext): Deleted.
* Source/WebCore/rendering/BidiRun.h:
(WebCore::BidiRun::next): Deleted.
Canonical link: https://commits.webkit.org/305991@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications