[Webkit-unassigned] [Bug 105608] [Qt] Outmost window's content size doesn't update when inner <object> frame is expanded

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 28 02:32:41 PST 2012


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





--- Comment #9 from Chen Zhixiang <chenzx at cn.fujitsu.com>  2012-12-28 02:34:48 PST ---
The problem is solved: The final shoot:

void FrameView::scheduleRelayout()
{
    // FIXME: We should assert the page is not in the page cache, but that is causing
    // too many false assertions.  See <rdar://problem/7218118>.
    ASSERT(m_frame->view() == this);

    if (m_layoutRoot) {
        m_layoutRoot->markContainingBlocksForLayout(false);
        m_layoutRoot = 0;
    }
    if (!m_layoutSchedulingEnabled)
        return;
    if (!needsLayout())
        return;
    if (!m_frame->document()->shouldScheduleLayout())
        return;

    // When frame flattening is enabled, the contents of the frame affects layout of the parent frames.
    // Also invalidate parent frame starting from the owner element of this frame.
    if (m_frame->settings() && m_frame->settings()->frameFlatteningEnabled() && m_frame->ownerRenderer()) {
        if (m_frame->ownerElement()->hasTagName(iframeTag) || m_frame->ownerElement()->hasTagName(frameTag))
            m_frame->ownerRenderer()->setNeedsLayout(true, true);
+        if (m_frame->ownerElement()->hasTagName(objectTag))
+            m_frame->ownerRenderer()->setNeedsLayout(true, true);
    }

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