[Webkit-unassigned] [Bug 115303] Crash while scrolling page

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Apr 27 02:37:31 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=115303





--- Comment #1 from Jonathan Liu <net147 at gmail.com>  2013-04-27 02:35:51 PST ---
void Document::updateStyleIfNeeded()
{
    ASSERT(isMainThread());
    ASSERT(!view() || (!view()->isInLayout() && !view()->isPainting()));

    if ((!m_pendingStyleRecalcShouldForce && !childNeedsStyleRecalc()) || inPageCache())
        return;

    AnimationUpdateBlock animationUpdateBlock(m_frame ? m_frame->animation() : 0);
    recalcStyle(NoChange);
}

When the assertion failure occurs:
view(): 00000000314c17e0
view()-isInLayout(): 0
view()-isPainting(): 1
m_pendingStyleRecalcShouldForce: 0
childNeedsStyleRecalc(): 0
inPageCache(): 0

The assertion was added to check that the view is not in layout and is not painting when calling recalcStyle. As recalcStyle is not called in this situation, the assertion failure can be avoided by moving the assertion to after the early return.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list