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

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

Issue 1457323004: Don't render border images when border-style is none (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased, removed unnecessary border colors, etc. Created 5 years, 1 month 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/style/BorderData.h ('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/BorderValue.h
diff --git a/third_party/WebKit/Source/core/style/BorderValue.h b/third_party/WebKit/Source/core/style/BorderValue.h
index 1713110cf47c567fb45f7334f7687ebf57ec759f..b08f5130da13bb6d5837cf4f7f5092498e823f91 100644
--- a/third_party/WebKit/Source/core/style/BorderValue.h
+++ b/third_party/WebKit/Source/core/style/BorderValue.h
@@ -45,9 +45,9 @@ public:
{
}
- bool nonZero(bool checkStyle = true) const
+ bool nonZero() const
{
- return width() && (!checkStyle || m_style != BNONE);
+ return width() && (m_style != BNONE);
}
bool isTransparent() const
@@ -55,9 +55,9 @@ public:
return !m_colorIsCurrentColor && !m_color.alpha();
}
- bool isVisible(bool checkStyle = true) const
+ bool isVisible() const
{
- return nonZero(checkStyle) && !isTransparent() && (!checkStyle || m_style != BHIDDEN);
+ return nonZero() && !isTransparent() && (m_style != BHIDDEN);
}
bool operator==(const BorderValue& o) const
« no previous file with comments | « third_party/WebKit/Source/core/style/BorderData.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698