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

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

Issue 1543333002: CL for perf tryjob on linux (collapsed borders, field) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/TableCellPainter.cpp ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/style/CollapsedBorderValue.h
diff --git a/third_party/WebKit/Source/core/style/CollapsedBorderValue.h b/third_party/WebKit/Source/core/style/CollapsedBorderValue.h
index f780d7d0756ba66f6b30ba189ae823c51ea7fa41..9abf8db6b2469bd6c013edeb9cbcc86d41f80783 100644
--- a/third_party/WebKit/Source/core/style/CollapsedBorderValue.h
+++ b/third_party/WebKit/Source/core/style/CollapsedBorderValue.h
@@ -70,9 +70,21 @@ public:
return color() == o.color() && isTransparent() == o.isTransparent() && isSameIgnoringColor(o);
}
+ bool isVisible() const
+ {
+ return style() > BHIDDEN && !isTransparent() && exists();
+ }
+
bool shouldPaint(const CollapsedBorderValue& tableCurrentBorderValue) const
{
- return style() > BHIDDEN && !isTransparent() && exists() && isSameIgnoringColor(tableCurrentBorderValue);
+ return isVisible() && isSameIgnoringColor(tableCurrentBorderValue);
+ }
+
+ bool isEquivalentForPainting(const CollapsedBorderValue& o) const
+ {
+ if (!isVisible() && !o.isVisible())
+ return true;
+ return equals(o);
}
private:
« no previous file with comments | « third_party/WebKit/Source/core/paint/TableCellPainter.cpp ('k') | tools/run-perf-test.cfg » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698