Bug 238876 - Drop unnecessary ExceptionOr<> return types
Summary: Drop unnecessary ExceptionOr<> return types
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Chris Dumez
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-04-06 10:36 PDT by Chris Dumez
Modified: 2022-04-07 07:21 PDT (History)
23 users (show)

See Also:


Attachments
Patch (13.73 KB, patch)
2022-04-06 10:37 PDT, Chris Dumez
no flags Details | Formatted Diff | Diff
Patch (14.19 KB, patch)
2022-04-06 12:02 PDT, Chris Dumez
ews-feeder: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Dumez 2022-04-06 10:36:05 PDT
Drop unnecessary ExceptionOr<> return types as they may cause unnecessary branching at runtime.
Comment 1 Chris Dumez 2022-04-06 10:37:19 PDT
Created attachment 456832 [details]
Patch
Comment 2 Alex Christensen 2022-04-06 11:53:06 PDT
Comment on attachment 456832 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=456832&action=review

> Source/WebCore/html/CustomPaintCanvas.cpp:59
>          return { RefPtr<PaintRenderingContext2D> { &downcast<PaintRenderingContext2D>(*m_context) } };

This can be cleaned up too
Comment 3 Chris Dumez 2022-04-06 12:02:44 PDT
Created attachment 456845 [details]
Patch
Comment 4 EWS 2022-04-06 14:30:13 PDT
Committed r292506 (249349@main): <https://commits.webkit.org/249349@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 456845 [details].
Comment 5 Radar WebKit Bug Importer 2022-04-06 14:31:16 PDT
<rdar://problem/91376356>
Comment 6 Carlos Garcia Campos 2022-04-07 03:58:46 PDT
This broke the GTK build, as the EWS caught. Fixed in r292529.
Comment 7 Chris Dumez 2022-04-07 07:21:48 PDT
(In reply to Carlos Garcia Campos from comment #6)
> This broke the GTK build, as the EWS caught. Fixed in r292529.

Thanks for fixing. I guess gtk-ews was slow at the time.