[Webkit-unassigned] [Bug 206705] Crash in RenderElement::selectionPseudoStyle with detail element set to display: contents
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jan 27 10:02:51 PST 2020
https://bugs.webkit.org/show_bug.cgi?id=206705
--- Comment #3 from Doug Kelly <dougk at apple.com> ---
(In reply to Darin Adler from comment #2)
> Comment on attachment 388598 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=388598&action=review
>
> r=me but I have to admit the logic of the change is not obvious to me
>
> > Source/WebCore/rendering/RenderElement.cpp:1419
> > + while (currentElement && currentElement->hasDisplayContents())
> > + currentElement = currentElement->parentElement();
>
> It’s not obvious *why* this is the right thing to do. So we need a comment.
> Why are we skipping over any element that "has display contents"?
Ryosuke? You were the one that mentioned that we needed to find the first parent without "display: contents" set -- but it ultimately has something to do with the next line, where we need a valid renderer. Is there something special about "display: contents" that would need this?
--
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/20200127/776344cd/attachment.htm>
More information about the webkit-unassigned
mailing list