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

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: 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
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

Powered by Google App Engine
This is Rietveld 408576698