Index: third_party/WebKit/Source/core/paint/BoxClipper.cpp |
diff --git a/third_party/WebKit/Source/core/paint/BoxClipper.cpp b/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
index f3f0620e321bafa3dca9db24486fa6f44514aa9b..6edead0543fa4263f628977fb828d2feadbb6137 100644 |
--- a/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
+++ b/third_party/WebKit/Source/core/paint/BoxClipper.cpp |
@@ -19,7 +19,9 @@ BoxClipper::BoxClipper(const LayoutBox& box, const PaintInfo& paintInfo, const L |
, m_paintInfo(paintInfo) |
, m_clipType(DisplayItem::UninitializedType) |
{ |
- if (m_paintInfo.phase == PaintPhaseSelfBlockBackground || m_paintInfo.phase == PaintPhaseSelfOutline || m_paintInfo.phase == PaintPhaseMask) |
+ ASSERT(m_paintInfo.phase != PaintPhaseSelfBlockBackgroundOnly && m_paintInfo.phase != PaintPhaseSelfOutlineOnly); |
+ |
+ if (m_paintInfo.phase == PaintPhaseMask) |
return; |
bool isControlClip = m_box.hasControlClip(); |