Skip to content

Commit 7409d44

Browse files
committed
[Safer CPP] Address UncheckedLocalVars warnings in PDFPluginBase.mm
https://bugs.webkit.org/show_bug.cgi?id=290286 rdar://147690815 Reviewed by Chris Dumez. * Source/WebKit/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations: * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm: (WebKit::PDFPluginBase::showContextMenuAtPoint): Canonical link: https://commits.webkit.org/292570@main
1 parent c7608c0 commit 7409d44

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

Source/WebKit/SaferCPPExpectations/UncheckedLocalVarsCheckerExpectations

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp
22
WebProcess/InjectedBundle/DOM/InjectedBundleRangeHandle.cpp
33
WebProcess/InjectedBundle/InjectedBundleHitTestResult.cpp
4-
WebProcess/Plugins/PDF/PDFPluginBase.mm
54
WebProcess/WebPage/DrawingArea.cpp
65
WebProcess/WebPage/RemoteLayerTree/GraphicsLayerCARemote.mm
76
WebProcess/WebPage/RemoteLayerTree/RemoteScrollingCoordinator.mm

Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1227,7 +1227,7 @@
12271227

12281228
bool PDFPluginBase::showContextMenuAtPoint(const IntPoint& point)
12291229
{
1230-
auto* frameView = m_frame ? m_frame->coreLocalFrame()->view() : nullptr;
1230+
RefPtr frameView = m_frame ? m_frame->coreLocalFrame()->view() : nullptr;
12311231
if (!frameView)
12321232
return false;
12331233
IntPoint contentsPoint = frameView->contentsToRootView(point);

0 commit comments

Comments
 (0)