Exemple #1
0
HTMLProgressElement* RenderProgress::progressElement() const
{
    if (!element())
        return 0;

    if (isHTMLProgressElement(element()))
        return toHTMLProgressElement(element());

    ASSERT(element()->shadowHost());
    return toHTMLProgressElement(element()->shadowHost());
}
HTMLProgressElement* LayoutProgress::progressElement() const
{
    return toHTMLProgressElement(node());
}