<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r195899): ASSERTION FAILED: is<Target>(source) in EventPath::retargetTouch() since r195899"
href="https://bugs.webkit.org/show_bug.cgi?id=153741#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - REGRESSION(r195899): ASSERTION FAILED: is<Target>(source) in EventPath::retargetTouch() since r195899"
href="https://bugs.webkit.org/show_bug.cgi?id=153741">bug 153741</a>
from <span class="vcard"><a class="email" href="mailto:cgarcia@igalia.com" title="Carlos Garcia Campos <cgarcia@igalia.com>"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=153741#c3">comment #3</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=153741#c2">comment #2</a>)
> > Comment on <span class=""><a href="attachment.cgi?id=270384&action=diff" name="attach_270384" title="Fix an EventContext downcast.">attachment 270384</a> <a href="attachment.cgi?id=270384&action=edit" title="Fix an EventContext downcast.">[details]</a></span>
> > Fix an EventContext downcast.
> >
> > I didn't look closely at this, but I'm suspicious that there is a downcast
> > there if the result of the downcast can be changed without breaking the
> > build....
>
> MouseOrFocusEventContext also derives from EventContext, so the cast is
> valid form the compiler point of view. That's why we have the type traits
> thing to check the cast is valid at runtime. It ended up calling
> EventContext::isMouseOrFocusEventContext() that return false, because the
> concrete type in this case is TouchEventContext.</span >
But it's true that we are using EventContext::node(), and *m_path[0] is already an EventContext, so we don't even need the downcast, I would say.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>