macCatalyst: Unnecessary I-beam over images in editable areas
Created attachment 390034 [details] Patch
<rdar://problem/59235429>
Comment on attachment 390034 [details] Patch Clearing flags on attachment: 390034 Committed r256005: <https://trac.webkit.org/changeset/256005>
All reviewed patches have been landed. Closing bug.
Comment on attachment 390034 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=390034&action=review > Source/WebKit/WebProcess/WebPage/ios/WebPageIOS.mm:2844 > + if (!node) > + return false; > + RenderObject *renderer = node->renderer(); > + if (!renderer) > + return false; > + return is<RenderReplaced>(*renderer); Iād replace these six lines with this one-liner: return node && is<RenderReplaced>(node->renderer()); Fixes the position of the "*" in "RenderObject *" by deleting it, takes advantage of the null checking already built into is<>, and I think is still easy to read and reason about.