static _resizedComponents()

in resources/perf.webkit.org/public/v3/components/base.js [112:128]


    static _resizedComponents(componentSet)
    {
        if (!componentSet)
            return [];

        const resizedList = [];
        for (let component of componentSet) {
            const element = component.element();
            const width = element.offsetWidth;
            const height = element.offsetHeight;
            const oldSize = component._oldSizeToCheckForResize;
            if (oldSize && oldSize.width == width && oldSize.height == height)
                continue;
            resizedList.push(component);
        }
        return resizedList;
    }