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