| Summary: | Clean up Element::isFocusableWithoutResolvingFullStyle() | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Component: | DOM | Assignee: | Tim Nguyen (:ntim) <ntim> | ||||||||
| Status: | RESOLVED FIXED | ||||||||||
| Severity: | Normal | CC: | cdumez, cmarcelo, darin, esprehn+autocc, ews-watchlist, kangil.han, koivisto, webkit-bug-importer | ||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||
| Version: | WebKit Nightly Build | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Tim Nguyen (:ntim)
2022-04-09 06:49:35 PDT
Created attachment 457161 [details]
Patch
Comment on attachment 457161 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457161&action=review > Source/WebCore/dom/Element.cpp:3560 > + auto isFocusableStyle = [](const RenderStyle* style) -> bool { Since this won’t work on null, it should take RenderStyle&, not *. > Source/WebCore/dom/Element.cpp:3568 > + return isFocusableStyle(renderStyle()); And we would put the * here at the call site. Created attachment 457814 [details]
Patch
(In reply to Darin Adler from comment #2) > Comment on attachment 457161 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=457161&action=review > > > Source/WebCore/dom/Element.cpp:3560 > > + auto isFocusableStyle = [](const RenderStyle* style) -> bool { > > Since this won’t work on null, it should take RenderStyle&, not *. Yeah, the previous version crashed as EWS showed, made it check for the style's existence as well so I don't duplicate it. Comment on attachment 457814 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=457814&action=review > Source/WebCore/dom/Element.cpp:3560 > + auto isFocusableStyle = [](const RenderStyle* style) -> bool { ->bool is not necessary Created attachment 457868 [details]
[fast-cq] Patch
Committed r293011 (249750@main): <https://commits.webkit.org/249750@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 457868 [details]. |