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

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

Issue 2857873003: Move StyleBoxData.cpp to be inline in StyleBoxData.h. (Closed)
Patch Set: Rebase Created 3 years, 7 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/StyleBoxData.h
diff --git a/third_party/WebKit/Source/core/style/StyleBoxData.h b/third_party/WebKit/Source/core/style/StyleBoxData.h
index 8174fb285bcd531c55376e0e919966ad96996f25..4017dbb7f13d7c9354b2c8d911ce7bd33916854f 100644
--- a/third_party/WebKit/Source/core/style/StyleBoxData.h
+++ b/third_party/WebKit/Source/core/style/StyleBoxData.h
@@ -45,13 +45,35 @@ class CORE_EXPORT StyleBoxData : public RefCountedCopyable<StyleBoxData> {
return AdoptRef(new StyleBoxData(*this));
}
- bool operator==(const StyleBoxData&) const;
+ bool operator==(const StyleBoxData& other) const {
+ return width_ == other.width_ && height_ == other.height_ &&
+ min_width_ == other.min_width_ && max_width_ == other.max_width_ &&
+ min_height_ == other.min_height_ &&
+ max_height_ == other.max_height_ &&
+ vertical_align_length_ == other.vertical_align_length_ &&
+ z_index_ == other.z_index_ &&
+ has_auto_z_index_ == other.has_auto_z_index_ &&
+ box_sizing_ == other.box_sizing_ &&
+ box_decoration_break_ == other.box_decoration_break_;
+ }
bool operator!=(const StyleBoxData& o) const { return !(*this == o); }
private:
friend class ComputedStyle;
- StyleBoxData();
+ StyleBoxData()
+ : width_(Length()),
+ height_(Length()),
+ min_width_(Length()),
+ max_width_(Length(kMaxSizeNone)),
+ min_height_(Length()),
+ max_height_(Length(kMaxSizeNone)),
+ z_index_(0),
+ has_auto_z_index_(static_cast<unsigned>(true)),
+ box_sizing_(static_cast<unsigned>(EBoxSizing::kContentBox)),
+ box_decoration_break_(
+ static_cast<unsigned>(EBoxDecorationBreak::kSlice)) {}
+
StyleBoxData(const StyleBoxData&) = default;
Length width_;
« no previous file with comments | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | third_party/WebKit/Source/core/style/StyleBoxData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698