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

Unified Diff: Source/core/layout/style/LayoutStyle.cpp

Issue 915213002: :visited invalidation for background/border/outline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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: Source/core/layout/style/LayoutStyle.cpp
diff --git a/Source/core/layout/style/LayoutStyle.cpp b/Source/core/layout/style/LayoutStyle.cpp
index 3915a94c7683873de695056165c52574f38d721e..bf50043a9b45a551b2e07fbf890d38fc9539c87b 100644
--- a/Source/core/layout/style/LayoutStyle.cpp
+++ b/Source/core/layout/style/LayoutStyle.cpp
@@ -667,7 +667,13 @@ bool LayoutStyle::diffNeedsPaintInvalidationObject(const LayoutStyle& other) con
|| rareNonInheritedData->m_objectFit != other.rareNonInheritedData->m_objectFit
|| rareNonInheritedData->m_objectPosition != other.rareNonInheritedData->m_objectPosition
|| !rareNonInheritedData->shapeOutsideDataEquivalent(*other.rareNonInheritedData.get())
- || !rareNonInheritedData->clipPathDataEquivalent(*other.rareNonInheritedData.get()))
+ || !rareNonInheritedData->clipPathDataEquivalent(*other.rareNonInheritedData.get())
+ || (visitedLinkBorderLeftColor() != other.visitedLinkBorderLeftColor() && borderLeftWidth())
+ || (visitedLinkBorderRightColor() != other.visitedLinkBorderRightColor() && borderRightWidth())
+ || (visitedLinkBorderBottomColor() != other.visitedLinkBorderBottomColor() && borderBottomWidth())
+ || (visitedLinkBorderTopColor() != other.visitedLinkBorderTopColor() && borderTopWidth())
+ || (visitedLinkOutlineColor() != other.visitedLinkOutlineColor() && outlineWidth())
+ || (visitedLinkBackgroundColor() != other.visitedLinkBackgroundColor()))
return true;
}

Powered by Google App Engine
This is Rietveld 408576698