RESOLVED FIXED 121504
AX: Replace AXObjectCache postNotification method boolean arguments with enum values.
https://bugs.webkit.org/show_bug.cgi?id=121504
Summary AX: Replace AXObjectCache postNotification method boolean arguments with enum...
Samuel White
Reported 2013-09-17 10:34:29 PDT
Nearly every use of postNotification passes in a constant boolean value. Readability would improve if we replaced these booleans with enum values that were easier for reviewers to parse.
Attachments
Patch. (23.22 KB, patch)
2013-09-23 12:43 PDT, Samuel White
cfleizach: review+
Updated patch. (23.21 KB, patch)
2013-09-24 10:18 PDT, Samuel White
no flags
Samuel White
Comment 1 2013-09-17 10:50:39 PDT
Samuel White
Comment 2 2013-09-23 12:43:10 PDT
Created attachment 212381 [details] Patch. Changing postNotification bool argument to enum per "Names" rule #10 in the WebKit coding style guidelines and reviewer feedback.
chris fleizach
Comment 3 2013-09-24 08:59:52 PDT
Comment on attachment 212381 [details] Patch. View in context: https://bugs.webkit.org/attachment.cgi?id=212381&action=review > Source/WebCore/accessibility/AXObjectCache.cpp:723 > + if (object && (postTarget == TargetObservableParent)) extra parens here are not necessary
Samuel White
Comment 4 2013-09-24 10:18:33 PDT
Created attachment 212477 [details] Updated patch. Thanks for the feedback Chris. I had added the inner parens because I figured it saved people from having to do a mental lookup of operator precedence. Removed.
WebKit Commit Bot
Comment 5 2013-09-24 10:56:15 PDT
Comment on attachment 212477 [details] Updated patch. Clearing flags on attachment: 212477 Committed r156339: <http://trac.webkit.org/changeset/156339>
WebKit Commit Bot
Comment 6 2013-09-24 10:56:17 PDT
All reviewed patches have been landed. Closing bug.
Samuel White
Comment 7 2013-09-26 11:22:28 PDT
*** Bug 112857 has been marked as a duplicate of this bug. ***
Note You need to log in before you can comment on or make changes to this bug.