示例#1
0
void OThread::unregisterErrorFD(OO::HANDLE fd) {
#ifndef NDEBUG
	cout<<"void OThread::unregisterErrorFD(OO::HANDLE fd = \"" <<fd
			<<"\" )" <<endl;
#endif
	
	this->allocThreadFd();
	
	//reset the maxfs or minfd values if they have changed
	recalcMinMax(fd);
	
	//clear the fd
	fdm->errorfds.clear(fd);
}
示例#2
0
void RenderView::layout()
{
    if (m_printingMode)
        m_minWidth = m_width;

    // FIXME: This is all just a terrible workaround for bugs in layout when the view height changes.  
    // Find a better way to detect view height changes.  We're guessing that if we don't need layout that the reason
    // we were called is because of a FrameView bounds change.
    if (!needsLayout()) {
        setChildNeedsLayout(true, false);
        setMinMaxKnown(false);
        for (RenderObject *c = firstChild(); c; c = c->nextSibling())
            c->setChildNeedsLayout(true, false);
    }

    if (recalcMinMax())
        recalcMinMaxWidths();

    RenderBlock::layout();

    int docw = docWidth();
    int doch = docHeight();

    if (!m_printingMode) {
        setWidth(m_frameView->visibleWidth());
        setHeight(m_frameView->visibleHeight());
    }

    // ### we could maybe do the call below better and only pass true if the docsize changed.
    layoutPositionedObjects( true );

    layer()->setHeight(max(doch, m_height));
    layer()->setWidth(max(docw, m_width));
    
    setNeedsLayout(false);
}