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

Unified Diff: Source/core/rendering/style/StyleBackgroundData.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/StyleBackgroundData.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/StyleBackgroundData.cpp
diff --git a/Source/core/rendering/style/StyleBackgroundData.cpp b/Source/core/rendering/style/StyleBackgroundData.cpp
index d0b7ba4ff27efb20c272a5dfe51177b7907cb6fb..1dcfc53fb58e766b1fdcb6d28584ab754bddeed2 100644
--- a/Source/core/rendering/style/StyleBackgroundData.cpp
+++ b/Source/core/rendering/style/StyleBackgroundData.cpp
@@ -46,4 +46,9 @@ bool StyleBackgroundData::operator==(const StyleBackgroundData& o) const
return m_background == o.m_background && m_color == o.m_color && m_outline == o.m_outline;
}
+bool StyleBackgroundData::visuallyEqual(const StyleBackgroundData& o) const
+{
+ return m_background == o.m_background && m_color == o.m_color && m_outline.visuallyEqual(o.m_outline);
+}
+
} // namespace WebCore
« no previous file with comments | « Source/core/rendering/style/StyleBackgroundData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698