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

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

Issue 1159773005: Handle border-image with fill and zero-width borders (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address review comment Created 5 years, 7 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 | « Source/core/paint/TableCellPainter.cpp ('k') | Source/core/style/ComputedStyle.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/style/BorderData.h
diff --git a/Source/core/style/BorderData.h b/Source/core/style/BorderData.h
index 4fd5d2453ce6580ff17ab0dac5204031a1b51ba7..cc7910a9b8c782caea60f70295319234524f471f 100644
--- a/Source/core/style/BorderData.h
+++ b/Source/core/style/BorderData.h
@@ -41,12 +41,18 @@ public:
, m_bottomRight(Length(0, Fixed), Length(0, Fixed))
{
}
+
bool hasBorder() const
{
bool haveImage = m_image.hasImage();
return m_left.nonZero(!haveImage) || m_right.nonZero(!haveImage) || m_top.nonZero(!haveImage) || m_bottom.nonZero(!haveImage);
}
+ bool hasBorderFill() const
+ {
+ return m_image.hasImage() && m_image.fill();
+ }
+
bool hasBorderRadius() const
{
if (!m_topLeft.width().isZero())
« no previous file with comments | « Source/core/paint/TableCellPainter.cpp ('k') | Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698