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; |
}; |