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

Unified Diff: third_party/WebKit/Source/core/style/BorderData.h

Issue 2153283002: [css-tables] Clean up code that detects significant border changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: the big refactor Created 4 years, 5 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: third_party/WebKit/Source/core/style/BorderData.h
diff --git a/third_party/WebKit/Source/core/style/BorderData.h b/third_party/WebKit/Source/core/style/BorderData.h
index 7bdb4d3e9e1259665a119a01391b1cec554e938e..ab17716a91adc06a8f14a72d34f786596468abae 100644
--- a/third_party/WebKit/Source/core/style/BorderData.h
+++ b/third_party/WebKit/Source/core/style/BorderData.h
@@ -126,10 +126,10 @@ public:
bool sizeEquals(const BorderData& o) const
dgrogan 2016/07/16 01:32:24 Yup, screwed this up.
eae 2016/07/18 16:21:53 Acknowledged.
{
- return borderLeftWidth() != o.borderLeftWidth()
- || borderTopWidth() != o.borderTopWidth()
- || borderRightWidth() != o.borderRightWidth()
- || borderBottomWidth() != o.borderBottomWidth();
+ return borderLeftWidth() == o.borderLeftWidth()
+ && borderTopWidth() == o.borderTopWidth()
+ && borderRightWidth() == o.borderRightWidth()
+ && borderBottomWidth() == o.borderBottomWidth();
}
const BorderValue& left() const { return m_left; }

Powered by Google App Engine
This is Rietveld 408576698