Index: Source/platform/graphics/paint/DisplayItemList.cpp |
diff --git a/Source/platform/graphics/paint/DisplayItemList.cpp b/Source/platform/graphics/paint/DisplayItemList.cpp |
index 1f0cae0f6bf8ffd1975f0fa30997742b05d4d9e0..fec0fe1dd15942eac4fe5af295f4f2beff742ea9 100644 |
--- a/Source/platform/graphics/paint/DisplayItemList.cpp |
+++ b/Source/platform/graphics/paint/DisplayItemList.cpp |
@@ -28,7 +28,7 @@ void DisplayItemList::add(WTF::PassOwnPtr<DisplayItem> displayItem) |
if (displayItem->isEnd()) { |
ASSERT(!m_newPaints.isEmpty()); |
- if (m_newPaints.last()->isBegin()) { |
+ if (m_newPaints.last()->isBegin() && !m_newPaints.last()->drawsContent()) { |
ASSERT(displayItem->isEndAndPairedWith(*m_newPaints.last())); |
// Remove the beginning display item of this empty pair. |
m_newPaints.removeLast(); |