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

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

Issue 1815043003: CSS border-image spec compliance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing duplicated. Created 4 years, 9 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
« 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 7914be917c72d9f3382fe6942b8ad5a0ba28d0bb..78ea45661a2562c028e51a706d47524f7936e9ee 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 != BorderStyleNone);
+ return width() && (m_style != BorderStyleNone);
}
bool isTransparent() const
@@ -55,11 +55,6 @@ public:
return !m_colorIsCurrentColor && !m_color.alpha();
}
- bool isVisible(bool checkStyle = true) const
- {
- return nonZero(checkStyle) && !isTransparent() && (!checkStyle || m_style != BorderStyleHidden);
- }
-
bool operator==(const BorderValue& o) const
{
return m_width == o.m_width && m_style == o.m_style && m_color == o.m_color && m_colorIsCurrentColor == o.m_colorIsCurrentColor;
« 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