Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c9720137561a71260272a0a8e92a7626b992a330
https://github.com/WebKit/WebKit/commit/c9720137561a71260272a0a8e92a7626b992a330
Author: Anne van Kesteren <[email protected]>
Date: 2025-06-02 (Mon, 02 Jun 2025)
Changed paths:
M Source/WebCore/SaferCPPExpectations/UncheckedCallArgsCheckerExpectations
M Source/WebCore/SaferCPPExpectations/UncountedCallArgsCheckerExpectations
M Source/WebCore/accessibility/AccessibilityObject.cpp
M Source/WebCore/animation/ScrollTimeline.cpp
M Source/WebCore/animation/TimelineRange.cpp
M Source/WebCore/css/parser/SizesAttributeParser.cpp
M Source/WebCore/css/typedom/ComputedStylePropertyMapReadOnly.cpp
M Source/WebCore/dom/ContainerNode.cpp
M Source/WebCore/dom/DataTransfer.cpp
M Source/WebCore/dom/DocumentFullscreen.cpp
M Source/WebCore/editing/AlternativeTextController.cpp
M Source/WebCore/editing/ApplyBlockElementCommand.cpp
M Source/WebCore/editing/ApplyStyleCommand.cpp
M Source/WebCore/editing/CompositeEditCommand.cpp
M Source/WebCore/editing/CompositeEditCommand.h
M Source/WebCore/editing/CreateLinkCommand.cpp
M Source/WebCore/editing/DeleteSelectionCommand.cpp
M Source/WebCore/editing/DictationCommand.cpp
M Source/WebCore/editing/EditCommand.cpp
M Source/WebCore/editing/EditCommand.h
M Source/WebCore/editing/Editor.cpp
M Source/WebCore/editing/FrameSelection.cpp
M Source/WebCore/editing/IndentOutdentCommand.cpp
M Source/WebCore/editing/InsertIntoTextNodeCommand.cpp
M Source/WebCore/editing/InsertLineBreakCommand.cpp
M Source/WebCore/editing/InsertListCommand.cpp
M Source/WebCore/editing/InsertParagraphSeparatorCommand.cpp
M Source/WebCore/editing/RemoveFormatCommand.cpp
M Source/WebCore/editing/ReplaceSelectionCommand.cpp
M Source/WebCore/editing/SimplifyMarkupCommand.cpp
M Source/WebCore/editing/SpellingCorrectionCommand.cpp
M Source/WebCore/editing/SplitElementCommand.cpp
M Source/WebCore/editing/TypingCommand.cpp
M Source/WebCore/editing/WrapContentsInDummySpanCommand.cpp
M Source/WebCore/editing/WritingToolsCompositionCommand.cpp
M Source/WebCore/editing/cocoa/EditorCocoa.mm
M Source/WebCore/editing/ios/EditorIOS.mm
M Source/WebCore/html/ColorInputType.cpp
M Source/WebCore/html/HTMLLabelElement.cpp
M Source/WebCore/html/parser/HTMLConstructionSite.cpp
M Source/WebCore/html/parser/HTMLPreloadScanner.cpp
M Source/WebCore/html/parser/HTMLResourcePreloader.cpp
M Source/WebCore/html/parser/HTMLResourcePreloader.h
M Source/WebCore/loader/MediaResourceLoader.cpp
M Source/WebCore/loader/archive/cf/LegacyWebArchive.cpp
M Source/WebCore/page/History.cpp
M Source/WebCore/page/LocalFrame.cpp
M Source/WebCore/page/LocalFrameView.cpp
M Source/WebCore/page/Navigation.cpp
M Source/WebCore/page/Screen.cpp
Log Message:
-----------
Reduce incorrect usage of protectedDocument()
https://bugs.webkit.org/show_bug.cgi?id=293875
rdar://152390728
Reviewed by Chris Dumez.
Apply https://github.com/WebKit/WebKit/wiki/Safer-CPP-Guidelines
After noticing a single case I ran
git grep "protectedDocument();" Source
and started correcting all the results. I also noticed that in a few
cases we could const m_document and remove protectedDocument()
completely.
Canonical link: https://commits.webkit.org/295676@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