-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Stop using pointers to HashMap / HashSet in TextEncodingRegistry.cpp #47345
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
webkit-commit-queue
merged 1 commit into
WebKit:main
from
cdumez:295166_TextEncodingRegistry_maps
Jun 30, 2025
Merged
Stop using pointers to HashMap / HashSet in TextEncodingRegistry.cpp #47345
webkit-commit-queue
merged 1 commit into
WebKit:main
from
cdumez:295166_TextEncodingRegistry_maps
Jun 30, 2025
+75
−52
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
EWS run on previous version of this PR (hash f2b1745) |
darinadler
approved these changes
Jun 28, 2025
f2b1745
to
815f514
Compare
EWS run on current version of this PR (hash 815f514) |
https://bugs.webkit.org/show_bug.cgi?id=295166 Reviewed by Darin Adler. Stop using pointers to HashMap / HashSet in TextEncodingRegistry.cpp. This is a bit of an anti-pattern since a HashMap/HashSet is already itself a pointer to a HashTable. * Source/WebCore/PAL/pal/text/TextEncodingRegistry.cpp: (PAL::WTF_REQUIRES_LOCK): (PAL::japaneseEncodings): (PAL::nonBackslashEncodings): (PAL::isJapaneseEncoding): (PAL::shouldShowBackslashAsCurrencySymbolIn): (PAL::newTextCodec): (PAL::atomCanonicalTextEncodingName): Canonical link: https://commits.webkit.org/296783@main
815f514
to
25c204e
Compare
Committed 296783@main (25c204e): https://commits.webkit.org/296783@main Reviewed commits have been landed. Closing PR #47345 and removing active labels. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Platform
Portability improvements and other general platform improvements not driven directly by site bugs.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
25c204e
815f514
🛠 wpe🛠 win🧪 wpe-wk2🧪 win-tests🧪 api-wpe🛠 gtk🧪 gtk-wk2🧪 api-gtk