[webkit-dev] Focus Crash Relating to MathML

Alex Milowski alex at milowski.org
Mon Oct 18 13:05:37 PDT 2010


On Mon, Oct 18, 2010 at 12:48 PM, Alexey Proskuryakov <ap at webkit.org> wrote:
>
> 18.10.2010, в 12:33, Alex Milowski написал(а):
>
>>>   https://bugs.webkit.org/show_bug.cgi?id=47745
>>
>> Even more curious is that I just noticed the crash only happens with a
>> debug build.
>
> The crash is an assertion failure, so it's not surprising that it only occurs in debug builds. Assertions aren't compiled into release builds.

OK.  Less curious now! :)

>
> Sometimes, looking at svn blame to see when the assertion was added help one figure out what it is about. In general, asking a renderer-related question like isFocusable() needs finished layout indeed - e.g. display:none makes a node unfocusable, but before layout (recalcStyle?), the renderer doesn't know that.

Yes, that makes sense.  This has something to do with the inline flow.
 The whole
problem goes away if you change the display property of the anchor to block.

All the children are marked as not needing layout but the parent (the
anchor) has
m_normalChildNeedsLayout set to true.  If you remove the MathML math element,
everything works as expected.

-- 
--Alex Milowski
"The excellence of grammar as a guide is proportional to the paucity of the
inflexions, i.e. to the degree of analysis effected by the language
considered."

Bertrand Russell in a footnote of Principles of Mathematics


More information about the webkit-dev mailing list