#ifndef StyleBackgroundData_h
#define StyleBackgroundData_h
#include "core/rendering/style/FillLayer.h"
#include "core/rendering/style/OutlineValue.h"
#include "platform/graphics/Color.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefCounted.h"
namespace WebCore {
class StyleBackgroundData : public RefCounted<StyleBackgroundData> {
public:
static PassRefPtr<StyleBackgroundData> create() { return adoptRef(new StyleBackgroundData); }
PassRefPtr<StyleBackgroundData> copy() const { return adoptRef(new StyleBackgroundData(*this)); }
~StyleBackgroundData() { }
bool operator==(const StyleBackgroundData& o) const;
bool operator!=(const StyleBackgroundData& o) const
{
return !(*this == o);
}
bool visuallyEqual(const StyleBackgroundData&) const;
const FillLayer& background() const { return m_background; }
const StyleColor& color() const { return m_color; }
const OutlineValue& outline() const { return m_outline; }
private:
friend class RenderStyle;
StyleBackgroundData();
StyleBackgroundData(const StyleBackgroundData&);
FillLayer m_background;
StyleColor m_color;
OutlineValue m_outline;
};
}
#endif