Skip to content

Commit

Permalink
Add more smart pointers to RemoteDisplayListRecorder.cpp
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=260672
rdar://114401181

Reviewed by Ryosuke Niwa.

* Source/WebKit/GPUProcess/graphics/RemoteDisplayListRecorder.cpp:
(WebKit::RemoteDisplayListRecorder::setState):

Canonical link: https://commits.webkit.org/267255@main
  • Loading branch information
abigailfox authored and rniwa committed Aug 25, 2023
1 parent 7f5ccd8 commit 77dc0ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ void RemoteDisplayListRecorder::setState(DisplayList::SetState&& item)
auto gradientIdentifier = brush.gradientIdentifier();
if (!gradientIdentifier)
return true;
auto gradient = resourceCache().cachedGradient(*gradientIdentifier);
RefPtr gradient = resourceCache().cachedGradient(*gradientIdentifier);
if (!gradient) {
ASSERT_NOT_REACHED();
return false;
Expand Down

0 comments on commit 77dc0ea

Please sign in to comment.