| Summary: | AX: Eliminate all ways AXCoreObject::elementRect could be called on an AXIsolatedObject | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tyler Wilcock <tyler_w> | ||||||||
| Component: | Accessibility | Assignee: | Tyler Wilcock <tyler_w> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | aboxhall, andresg_22, apinheiro, cfleizach, dmazzoni, ews-watchlist, jcraig, jdiggs, samuel_white, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | Other | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Tyler Wilcock
2023-04-06 21:26:52 PDT
Created attachment 465807 [details]
Patch
Can you fix spacing after : here 1768 auto size = backingObject->size(); 1769 return [NSValue valueWithSize: NSMakeSize(size.width(), Created attachment 465810 [details]
Patch
Comment on attachment 465810 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=465810&action=review > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1392 > + return @(cgPoint); do we need two lines of code here can can we do in one also does @() turn this into a NSValue? I had always hoped it would, but don't know if I tested it > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1769 > + return [NSValue valueWithSize:NSMakeSize(size.width(), size.height())]; is there no overload for (NSValue *)backingObject->size() Created attachment 465815 [details]
Patch
(In reply to chris fleizach from comment #5) > Comment on attachment 465810 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=465810&action=review > > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1392 > > + return @(cgPoint); > > do we need two lines of code here can can we do in one > > also does @() turn this into a NSValue? I had always hoped it would, but > don't know if I tested it Fixed this. And yes, @() on "some" (quoting https://clang.llvm.org/docs/ObjectiveCLiterals.html) structs will result in an NSValue wrapper. The basic CG structs are included in this "some" (I just confirmed it). > > Source/WebCore/accessibility/mac/WebAccessibilityObjectWrapperMac.mm:1769 > > + return [NSValue valueWithSize:NSMakeSize(size.width(), size.height())]; > > is there no overload for > > (NSValue *)backingObject->size() Checked and unfortunately there's no overload to automatically turn an IntSize into an NSValue. Committed 262752@main (2d9b495ba023): <https://commits.webkit.org/262752@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 465815 [details]. |