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