[Webkit-unassigned] [Bug 61491] Frame flattening is broken with nested frames

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 26 08:09:57 PDT 2011


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





--- Comment #6 from Kenneth Rohde Christiansen <kenneth at webkit.org>  2011-05-26 08:09:57 PST ---
I think the bug is elsewhere. The nested iframe has a fixed size and thus the flattenFrame() method is returning false:

 92     if (!isScrollable && style()->width().isFixed()
 93         && style()->height().isFixed())
             return false;

Regarding the absoluteBoundingBoxRect().intersects() test. Basically to check if something is offscreen, either of the left values of absoluteBoundingBoxRect() needs to be negative.

The code could probably be rewritten to something like:

    // Do not flatten offscreen inner frames during frame flattening.
    IntRect rect = absoluteBoundingBoxRect();
    int rightX = rect.x() + rect.width();
    int rightY = rect.y() + rect.height();

    return rightX > 0 && rightY > 0;

-- 
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