[Webkit-unassigned] [Bug 196601] [ATK] Cleanup accessible wrapper base class
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Apr 5 03:00:42 PDT 2019
https://bugs.webkit.org/show_bug.cgi?id=196601
Mario Sanchez Prada <mario at webkit.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mario at webkit.org
Attachment #366803|review? |review+
Flags| |
--- Comment #4 from Mario Sanchez Prada <mario at webkit.org> ---
Comment on attachment 366803
--> https://bugs.webkit.org/attachment.cgi?id=366803
Rebased patch
View in context: https://bugs.webkit.org/attachment.cgi?id=366803&action=review
It looks good to me, only one comment on that there's a part of the code that looks like could be removed altogether (either now or in a follow-up patch)
> Source/WebCore/accessibility/atk/WebKitAccessible.cppSource/WebCore/accessibility/atk/WebKitAccessibleWrapperAtk.cpp:369
> + auto* atkParent = parent ? ATK_OBJECT(parent->wrapper()) : nullptr;
It seems like this will always yield nullptr to atkParent, since `parent == nullptr` already if you made it here... meaning that the for loop below won't ever be executed.
Actually, it seems that the whole `(!parent && isRootObject(coreObject)) { ... }` block can be removed, as all we can do if `parent == nullptr` at this point is to return -1, which is what the if block right after this one does.
However, I think it's better to keep this for now as this patch is just about cleaning things up and translating, so feel free to address that in a follow-up patch.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190405/b21dcda4/attachment.html>
More information about the webkit-unassigned
mailing list