Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(667)

Unified Diff: third_party/WebKit/Source/core/style/StyleBackgroundData.h

Issue 2860663002: Move StyleBackgroundData.cpp to be inline in StyleBackgroundData.h (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/style/StyleBackgroundData.h
diff --git a/third_party/WebKit/Source/core/style/StyleBackgroundData.h b/third_party/WebKit/Source/core/style/StyleBackgroundData.h
index 640d0ea57bd5dd70cd64c98398185093de192e37..b5b39eada700b6b01fd2d701ccc694418c3440f5 100644
--- a/third_party/WebKit/Source/core/style/StyleBackgroundData.h
+++ b/third_party/WebKit/Source/core/style/StyleBackgroundData.h
@@ -46,13 +46,21 @@ class CORE_EXPORT StyleBackgroundData
return AdoptRef(new StyleBackgroundData(*this));
}
- bool operator==(const StyleBackgroundData&) const;
- bool operator!=(const StyleBackgroundData& o) const { return !(*this == o); }
+ bool operator==(const StyleBackgroundData& other) const {
+ return background_ == other.background_ &&
+ background_color_ == other.background_color_;
+ }
+ bool operator!=(const StyleBackgroundData& other) const {
+ return !(*this == other);
+ }
private:
friend class ComputedStyle;
- StyleBackgroundData();
+ StyleBackgroundData()
+ : background_(FillLayer(kBackgroundFillLayer, true)),
+ background_color_(Color::kTransparent) {}
+
StyleBackgroundData(const StyleBackgroundData&) = default;
FillLayer background_;
« no previous file with comments | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | third_party/WebKit/Source/core/style/StyleBackgroundData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698