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

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

Issue 2933303002: Generate diffs for all fields on StyleRareNonInheritedData (Closed)
Patch Set: Created 3 years, 6 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/ComputedStyle.h
diff --git a/third_party/WebKit/Source/core/style/ComputedStyle.h b/third_party/WebKit/Source/core/style/ComputedStyle.h
index 7b667e1d452c40b1578bce8d1be3c4c5a1a42e41..9bedb235fc56a6f9b7043d98a43a7a63f28aedf0 100644
--- a/third_party/WebKit/Source/core/style/ComputedStyle.h
+++ b/third_party/WebKit/Source/core/style/ComputedStyle.h
@@ -1155,6 +1155,12 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
}
// Outline properties.
+
+ bool OutlineVisuallyEqual(const ComputedStyle& other) const {
+ return rare_non_inherited_data_->outline_.VisuallyEqual(
+ other.rare_non_inherited_data_->outline_);
+ }
+
// outline-color
void SetOutlineColor(const StyleColor& v) {
SET_BORDERVALUE_COLOR(rare_non_inherited_data_, outline_, v);
@@ -3414,18 +3420,42 @@ class CORE_EXPORT ComputedStyle : public ComputedStyleBase,
StyleColor VisitedLinkBorderLeftColor() const {
return rare_non_inherited_data_->visited_link_border_left_color_;
}
+ bool VisitedLinkBorderLeftColorHasChanged(const ComputedStyle& other) const {
+ return (VisitedLinkBorderLeftColor() !=
+ other.VisitedLinkBorderLeftColor() &&
+ BorderLeftWidth());
+ }
StyleColor VisitedLinkBorderRightColor() const {
return rare_non_inherited_data_->visited_link_border_right_color_;
}
+ bool VisitedLinkBorderRightColorHasChanged(const ComputedStyle& other) const {
+ return (VisitedLinkBorderRightColor() !=
+ other.VisitedLinkBorderRightColor() &&
+ BorderRightWidth());
+ }
StyleColor VisitedLinkBorderBottomColor() const {
return rare_non_inherited_data_->visited_link_border_bottom_color_;
}
+ bool VisitedLinkBorderBottomColorHasChanged(
+ const ComputedStyle& other) const {
+ return (VisitedLinkBorderBottomColor() !=
+ other.VisitedLinkBorderBottomColor() &&
+ BorderBottomWidth());
+ }
StyleColor VisitedLinkBorderTopColor() const {
return rare_non_inherited_data_->visited_link_border_top_color_;
}
+ bool VisitedLinkBorderTopColorHasChanged(const ComputedStyle& other) const {
+ return (VisitedLinkBorderTopColor() != other.VisitedLinkBorderTopColor() &&
+ BorderTopWidth());
+ }
StyleColor VisitedLinkOutlineColor() const {
return rare_non_inherited_data_->visited_link_outline_color_;
}
+ bool VisitedLinkOutlineColorHasChanged(const ComputedStyle& other) const {
+ return (VisitedLinkOutlineColor() != other.VisitedLinkOutlineColor() &&
+ OutlineWidth());
+ }
StyleColor VisitedLinkColumnRuleColor() const {
return rare_non_inherited_data_->multi_col_data_
->visited_link_column_rule_color_;

Powered by Google App Engine
This is Rietveld 408576698