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

Unified Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 222473005: Don't repaint when setting border or outline 0 with style none (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make cross platform Created 6 years, 9 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
« no previous file with comments | « Source/core/rendering/style/BorderValue.h ('k') | Source/core/rendering/style/StyleBackgroundData.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/RenderStyle.cpp
diff --git a/Source/core/rendering/style/RenderStyle.cpp b/Source/core/rendering/style/RenderStyle.cpp
index 31a85c2cf2e1c86b8ef515f2d1cd965dff0a254e..274f75d7cd8537ac7ef232be85b8bb07f46bab04 100644
--- a/Source/core/rendering/style/RenderStyle.cpp
+++ b/Source/core/rendering/style/RenderStyle.cpp
@@ -622,8 +622,8 @@ StyleDifference RenderStyle::repaintOnlyDiff(const RenderStyle& other, unsigned&
if (inherited_flags._visibility != other.inherited_flags._visibility
|| inherited_flags.m_printColorAdjust != other.inherited_flags.m_printColorAdjust
|| inherited_flags._insideLink != other.inherited_flags._insideLink
- || surround->border != other.surround->border
- || *m_background.get() != *other.m_background.get()
+ || !surround->border.visuallyEqual(other.surround->border)
+ || !m_background->visuallyEqual(*other.m_background)
|| rareInheritedData->userModify != other.rareInheritedData->userModify
|| rareInheritedData->userSelect != other.rareInheritedData->userSelect
|| rareNonInheritedData->userDrag != other.rareNonInheritedData->userDrag
« no previous file with comments | « Source/core/rendering/style/BorderValue.h ('k') | Source/core/rendering/style/StyleBackgroundData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698