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

Unified Diff: Source/core/paint/BoxBorderPainter.cpp

Issue 1173663003: BoxBorderPainter should use computed color alpha (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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
Index: Source/core/paint/BoxBorderPainter.cpp
diff --git a/Source/core/paint/BoxBorderPainter.cpp b/Source/core/paint/BoxBorderPainter.cpp
index 453cc602f10f669fac37ddb5e443addbe2a4d646..ec93135fec480059a472d9323a56572f444d7701 100644
--- a/Source/core/paint/BoxBorderPainter.cpp
+++ b/Source/core/paint/BoxBorderPainter.cpp
@@ -546,6 +546,8 @@ BoxBorderPainter::BoxBorderPainter(const LayoutRect& borderRect, const ComputedS
continue;
}
+ ASSERT(edge.color.alpha() > 0);
+
m_visibleEdgeCount++;
m_visibleEdgeSet |= edgeFlagForSide(static_cast<BoxSide>(i));
« no previous file with comments | « LayoutTests/fast/borders/transparent-currentcolor-crash-expected.txt ('k') | Source/core/style/BorderEdge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698