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

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

Issue 2573963002: [SPInvalidation] Update paint properties when border radii change (Closed)
Patch Set: Rebase Created 4 years 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 | « third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8cfd587be8d6ac4461eaae0f8cd2d0dbd3e22fcb..fb7ada516f6acaaa67677c4bf38a6f306416d7b8 100644
--- a/third_party/WebKit/Source/core/style/BorderData.h
+++ b/third_party/WebKit/Source/core/style/BorderData.h
@@ -92,17 +92,13 @@ class BorderData {
bool operator==(const BorderData& o) const {
return m_left == o.m_left && m_right == o.m_right && m_top == o.m_top &&
- m_bottom == 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;
+ m_bottom == o.m_bottom && m_image == o.m_image && radiiEqual(o);
}
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;
+ m_image == o.m_image && radiiEqual(o);
}
bool visualOverflowEqual(const BorderData& o) const {
@@ -118,6 +114,11 @@ class BorderData {
borderBottomWidth() == o.borderBottomWidth();
}
+ bool radiiEqual(const BorderData& o) const {
+ return m_topLeft == o.m_topLeft && m_topRight == o.m_topRight &&
+ m_bottomLeft == o.m_bottomLeft && m_bottomRight == o.m_bottomRight;
+ }
+
const BorderValue& left() const { return m_left; }
const BorderValue& right() const { return m_right; }
const BorderValue& top() const { return m_top; }
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698