diff options
Diffstat (limited to 'Source/WebCore/rendering/style/StyleBackgroundData.h')
-rw-r--r-- | Source/WebCore/rendering/style/StyleBackgroundData.h | 35 |
1 files changed, 11 insertions, 24 deletions
diff --git a/Source/WebCore/rendering/style/StyleBackgroundData.h b/Source/WebCore/rendering/style/StyleBackgroundData.h index b2996dcd8..9b95ee0ca 100644 --- a/Source/WebCore/rendering/style/StyleBackgroundData.h +++ b/Source/WebCore/rendering/style/StyleBackgroundData.h @@ -2,7 +2,7 @@ * Copyright (C) 2000 Lars Knoll (knoll@kde.org) * (C) 2000 Antti Koivisto (koivisto@kde.org) * (C) 2000 Dirk Mueller (mueller@kde.org) - * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. + * Copyright (C) 2003-2017 Apple Inc. All rights reserved. * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) * * This library is free software; you can redistribute it and/or @@ -22,46 +22,33 @@ * */ -#ifndef StyleBackgroundData_h -#define StyleBackgroundData_h +#pragma once #include "Color.h" #include "FillLayer.h" #include "OutlineValue.h" -#include <wtf/PassRefPtr.h> #include <wtf/RefCounted.h> +#include <wtf/Ref.h> namespace WebCore { class StyleBackgroundData : public RefCounted<StyleBackgroundData> { public: - static PassRef<StyleBackgroundData> create() { return adoptRef(*new StyleBackgroundData); } - PassRef<StyleBackgroundData> copy() const; - ~StyleBackgroundData() { } + static Ref<StyleBackgroundData> create() { return adoptRef(*new StyleBackgroundData); } + Ref<StyleBackgroundData> copy() const; - bool operator==(const StyleBackgroundData& o) const; - bool operator!=(const StyleBackgroundData& o) const - { - return !(*this == o); - } + bool operator==(const StyleBackgroundData&) const; + bool operator!=(const StyleBackgroundData& other) const { return !(*this == other); } 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; } + FillLayer background; + Color color; + OutlineValue outline; private: - friend class RenderStyle; - StyleBackgroundData(); - StyleBackgroundData(const StyleBackgroundData&); - - FillLayer m_background; - Color m_color; - OutlineValue m_outline; + StyleBackgroundData(const StyleBackgroundData&); }; } // namespace WebCore - -#endif // StyleBackgroundData_h |