#ifndef LengthSize_h
#define LengthSize_h
#include "Length.h"
namespace WebCore {
struct LengthSize {
public:
LengthSize()
{
}
LengthSize(Length width, Length height)
: m_width(WTFMove(width))
, m_height(WTFMove(height))
{
}
bool operator==(const LengthSize& o) const
{
return m_width == o.m_width && m_height == o.m_height;
}
void setWidth(Length width) { m_width = WTFMove(width); }
const Length& width() const { return m_width; }
void setHeight(Length height) { m_height = WTFMove(height); }
const Length& height() const { return m_height; }
private:
Length m_width;
Length m_height;
};
inline LengthSize blend(const LengthSize& from, const LengthSize& to, double progress)
{
return LengthSize(blend(from.width(), to.width(), progress), blend(from.height(), to.height(), progress));
}
TextStream& operator<<(TextStream&, const LengthSize&);
}
#endif // LengthSize_h