| OLD | NEW | 
|---|
| 1 /* | 1 /* | 
| 2  * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2  * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 
| 3  *           (C) 2000 Antti Koivisto (koivisto@kde.org) | 3  *           (C) 2000 Antti Koivisto (koivisto@kde.org) | 
| 4  *           (C) 2000 Dirk Mueller (mueller@kde.org) | 4  *           (C) 2000 Dirk Mueller (mueller@kde.org) | 
| 5  * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5  * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 
| 6  * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6  * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 
| 7  * | 7  * | 
| 8  * This library is free software; you can redistribute it and/or | 8  * This library is free software; you can redistribute it and/or | 
| 9  * modify it under the terms of the GNU Library General Public | 9  * modify it under the terms of the GNU Library General Public | 
| 10  * License as published by the Free Software Foundation; either | 10  * License as published by the Free Software Foundation; either | 
| (...skipping 28 matching lines...) Expand all  Loading... | 
| 39 class CORE_EXPORT StyleBackgroundData | 39 class CORE_EXPORT StyleBackgroundData | 
| 40     : public RefCountedCopyable<StyleBackgroundData> { | 40     : public RefCountedCopyable<StyleBackgroundData> { | 
| 41  public: | 41  public: | 
| 42   static PassRefPtr<StyleBackgroundData> Create() { | 42   static PassRefPtr<StyleBackgroundData> Create() { | 
| 43     return AdoptRef(new StyleBackgroundData); | 43     return AdoptRef(new StyleBackgroundData); | 
| 44   } | 44   } | 
| 45   PassRefPtr<StyleBackgroundData> Copy() const { | 45   PassRefPtr<StyleBackgroundData> Copy() const { | 
| 46     return AdoptRef(new StyleBackgroundData(*this)); | 46     return AdoptRef(new StyleBackgroundData(*this)); | 
| 47   } | 47   } | 
| 48 | 48 | 
| 49   bool operator==(const StyleBackgroundData&) const; | 49   bool operator==(const StyleBackgroundData& other) const { | 
| 50   bool operator!=(const StyleBackgroundData& o) const { return !(*this == o); } | 50     return background_ == other.background_ && | 
|  | 51            background_color_ == other.background_color_; | 
|  | 52   } | 
|  | 53   bool operator!=(const StyleBackgroundData& other) const { | 
|  | 54     return !(*this == other); | 
|  | 55   } | 
| 51 | 56 | 
| 52  private: | 57  private: | 
| 53   friend class ComputedStyle; | 58   friend class ComputedStyle; | 
| 54 | 59 | 
| 55   StyleBackgroundData(); | 60   StyleBackgroundData() | 
|  | 61       : background_(FillLayer(kBackgroundFillLayer, true)), | 
|  | 62         background_color_(Color::kTransparent) {} | 
|  | 63 | 
| 56   StyleBackgroundData(const StyleBackgroundData&) = default; | 64   StyleBackgroundData(const StyleBackgroundData&) = default; | 
| 57 | 65 | 
| 58   FillLayer background_; | 66   FillLayer background_; | 
| 59   StyleColor background_color_; | 67   StyleColor background_color_; | 
| 60 }; | 68 }; | 
| 61 | 69 | 
| 62 }  // namespace blink | 70 }  // namespace blink | 
| 63 | 71 | 
| 64 #endif  // StyleBackgroundData_h | 72 #endif  // StyleBackgroundData_h | 
| OLD | NEW | 
|---|