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

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

Issue 2883803002: Move StyleInheritedData.cpp to be inline in StyleInheritedData.h. (Closed)
Patch Set: 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/StyleInheritedData.h
diff --git a/third_party/WebKit/Source/core/style/StyleInheritedData.h b/third_party/WebKit/Source/core/style/StyleInheritedData.h
index bbcbe483251b93d78a57e9676ae3ec8c1c177161..b3e01f783cec1d68cde286fa96a06d40cd2ca4b8 100644
--- a/third_party/WebKit/Source/core/style/StyleInheritedData.h
+++ b/third_party/WebKit/Source/core/style/StyleInheritedData.h
@@ -47,7 +47,14 @@ class CORE_EXPORT StyleInheritedData
return AdoptRef(new StyleInheritedData(*this));
}
- bool operator==(const StyleInheritedData&) const;
+ bool operator==(const StyleInheritedData& other) const {
+ return line_height_ == other.line_height_ && font_ == other.font_ &&
+ color_ == other.color_ &&
+ visited_link_color_ == other.visited_link_color_ &&
+ horizontal_border_spacing_ == other.horizontal_border_spacing_ &&
+ text_autosizing_multiplier_ == other.text_autosizing_multiplier_ &&
+ vertical_border_spacing_ == other.vertical_border_spacing_;
+ }
bool operator!=(const StyleInheritedData& o) const { return !(*this == o); }
short horizontal_border_spacing_;
@@ -63,7 +70,14 @@ class CORE_EXPORT StyleInheritedData
float text_autosizing_multiplier_;
private:
- StyleInheritedData();
+ StyleInheritedData()
+ : horizontal_border_spacing_(0),
+ vertical_border_spacing_(0),
+ line_height_(Length(-100.0, kPercent)),
+ color_(Color::kBlack),
+ visited_link_color_(Color::kBlack),
+ text_autosizing_multiplier_(1) {}
+
StyleInheritedData(const StyleInheritedData&) = default;
};
« no previous file with comments | « third_party/WebKit/Source/core/style/BUILD.gn ('k') | third_party/WebKit/Source/core/style/StyleInheritedData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698