Exemplo n.º 1
0
void RenderProgress::updatePartsState()
{
    if (shouldHaveParts() && !m_valuePart) {
        m_valuePart = ShadowBlockElement::createForPart(this->node(), PROGRESS_BAR_VALUE);
        addChild(m_valuePart->renderer());
    } else if (!shouldHaveParts() && m_valuePart) {
        m_valuePart->detach();
        m_valuePart = 0;
    }
}
Exemplo n.º 2
0
void RenderIndicator::requestLayoutForParts()
{
    if (shouldHaveParts() || hasParts())
        setNeedsLayout(true);
}