WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
204233
AX: Update style of lambda in isolated tree
https://bugs.webkit.org/show_bug.cgi?id=204233
Summary
AX: Update style of lambda in isolated tree
chris fleizach
Reported
2019-11-15 10:33:03 PST
Update style to remove unneeded & capture Remove Options<AXID> which is unnecessary
Attachments
patch
(5.26 KB, patch)
2019-11-15 10:48 PST
,
chris fleizach
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2019-11-15 10:33:15 PST
<
rdar://problem/57232085
>
chris fleizach
Comment 2
2019-11-15 10:48:42 PST
Created
attachment 383628
[details]
patch
Darin Adler
Comment 3
2019-11-15 16:56:41 PST
Comment on
attachment 383628
[details]
patch View in context:
https://bugs.webkit.org/attachment.cgi?id=383628&action=review
Change looks great but I am not sure I understand why the code was working.
> Source/WebCore/accessibility/isolatedtree/AXIsolatedTreeNode.cpp:98 > - setProperty(AXPropertyName::MathLineThickness, object.mathLineThickness());åà > + setProperty(AXPropertyName::MathLineThickness, object.mathLineThickness());
Wow, what was that?
> Source/WebCore/accessibility/isolatedtree/AXIsolatedTreeNode.cpp:195 > - [&] (Optional<AXID> typedValue) { > - if (!typedValue) > - return InvalidAXID; > - return typedValue.value(); > - }, > + [] (AXID& typedValue) { return typedValue; },
This looks great. I don’t understand why the old code even compiled, though! And if it did compile, why did it ever work. There’s no Optional<AXID> in the Variant. Do we have test coverage for this?
chris fleizach
Comment 4
2019-11-15 16:59:05 PST
(In reply to Darin Adler from
comment #3
)
> Comment on
attachment 383628
[details]
> patch > > View in context: >
https://bugs.webkit.org/attachment.cgi?id=383628&action=review
> > Change looks great but I am not sure I understand why the code was working. > > > Source/WebCore/accessibility/isolatedtree/AXIsolatedTreeNode.cpp:98 > > - setProperty(AXPropertyName::MathLineThickness, object.mathLineThickness());åà > > + setProperty(AXPropertyName::MathLineThickness, object.mathLineThickness()); > > Wow, what was that?
no idea... some errant character slipped in at the last second
> > > Source/WebCore/accessibility/isolatedtree/AXIsolatedTreeNode.cpp:195 > > - [&] (Optional<AXID> typedValue) { > > - if (!typedValue) > > - return InvalidAXID; > > - return typedValue.value(); > > - }, > > + [] (AXID& typedValue) { return typedValue; }, > > This looks great. > > I don’t understand why the old code even compiled, though! And if it did > compile, why did it ever work. There’s no Optional<AXID> in the Variant. >
Definitely compiled and appeared to work (unless I screwed up badly).
> Do we have test coverage for this?
Andres is working on setting up the test structure for this now.
https://bugs.webkit.org/show_bug.cgi?id=204226
Thanks!
WebKit Commit Bot
Comment 5
2019-11-15 17:42:44 PST
Comment on
attachment 383628
[details]
patch Clearing flags on attachment: 383628 Committed
r252515
: <
https://trac.webkit.org/changeset/252515
>
WebKit Commit Bot
Comment 6
2019-11-15 17:42:45 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug