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

Unified Diff: Source/core/rendering/style/BorderData.h

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 | « LayoutTests/fast/repaint/border-outline-0-expected.txt ('k') | Source/core/rendering/style/BorderValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/style/BorderData.h
diff --git a/Source/core/rendering/style/BorderData.h b/Source/core/rendering/style/BorderData.h
index bf96bcf797ce8e71844fd675424ec52a93151612..4df4644ebfe64255679223c993b5f63a90bb4036 100644
--- a/Source/core/rendering/style/BorderData.h
+++ b/Source/core/rendering/style/BorderData.h
@@ -94,6 +94,19 @@ public:
&& m_topLeft == o.m_topLeft && m_topRight == o.m_topRight && m_bottomLeft == o.m_bottomLeft && m_bottomRight == o.m_bottomRight;
}
+ bool visuallyEqual(const BorderData& o) const
+ {
+ return m_left.visuallyEqual(o.m_left)
+ && m_right.visuallyEqual(o.m_right)
+ && m_top.visuallyEqual(o.m_top)
+ && m_bottom.visuallyEqual(o.m_bottom)
+ && m_image == o.m_image
+ && m_topLeft == o.m_topLeft
+ && m_topRight == o.m_topRight
+ && m_bottomLeft == o.m_bottomLeft
+ && m_bottomRight == o.m_bottomRight;
+ }
+
bool operator!=(const BorderData& o) const
{
return !(*this == o);
« no previous file with comments | « LayoutTests/fast/repaint/border-outline-0-expected.txt ('k') | Source/core/rendering/style/BorderValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698