From 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c Mon Sep 17 00:00:00 2001 From: Lorry Tar Creator Date: Tue, 27 Jun 2017 06:07:23 +0000 Subject: webkitgtk-2.16.5 --- .../WebCore/rendering/style/StyleBackgroundData.h | 35 +++++++--------------- 1 file changed, 11 insertions(+), 24 deletions(-) (limited to 'Source/WebCore/rendering/style/StyleBackgroundData.h') 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 #include +#include namespace WebCore { class StyleBackgroundData : public RefCounted { public: - static PassRef create() { return adoptRef(*new StyleBackgroundData); } - PassRef copy() const; - ~StyleBackgroundData() { } + static Ref create() { return adoptRef(*new StyleBackgroundData); } + Ref 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 -- cgit v1.2.1