diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/rendering/style/StyleBackgroundData.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
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 |