-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Follow up fixes to "Refactor RenderThemeMac::iconForAttachment" #46225
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
base: main
Are you sure you want to change the base?
Follow up fixes to "Refactor RenderThemeMac::iconForAttachment" #46225
Conversation
EWS run on previous version of this PR (hash 4b510ed) |
4b510ed
to
7358164
Compare
EWS run on previous version of this PR (hash 7358164) |
7358164
to
c2a1e91
Compare
EWS run on previous version of this PR (hash c2a1e91) |
@@ -418,9 +418,7 @@ static bool exceedsRenderTreeSizeSizeThreshold(uint64_t thresholdSize, uint64_t | |||
#else | |||
auto iconAndSize = RenderThemeMac::iconForAttachment(fileName, contentType, title); | |||
#endif | |||
auto icon = iconAndSize.icon; | |||
size = iconAndSize.size; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size
is an out parameter, is this really safe to delete?
Also, when doing a follow-up it's nice to reference the commit identifier (in this case, 295710@main) rather than the title (which is not unique, and less easy to search for). |
https://bugs.webkit.org/show_bug.cgi?id=293919 rdar://152453766 Reviewed by NOBODY (OOPS!). Updated syntax as according to comments on the last commit. Reverted "auto size = image.size" back to "auto size = [image size]" as this caused a compilation error. I did not implement the change of "convertPlatformImageToBitmap() to accept a RenderThemeCocoa::IconAndSize" as iconAndSize does not contain the same value as iconSize. (Previous Commit: 295710@main) * Source/WebCore/rendering/mac/RenderThemeMac.mm: (WebCore::RenderThemeMac::iconForAttachment): * Source/WebKit/UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::WebPageProxy::iconForAttachment):
c2a1e91
to
db8cba4
Compare
EWS run on current version of this PR (hash db8cba4) |
@igower does not have committer permissions according to https://raw.githubusercontent.com/WebKit/WebKit/main/metadata/contributors.json. If you do have committer permissions, please ensure that your GitHub username is added to contributors.json. Rejecting db8cba4 from merge queue. Safe-Merge-Queue: Build #61511. |
Safe-Merge-Queue: Build #61511. |
db8cba4
db8cba4
🛠 playstation