Index: Source/platform/graphics/paint/DrawingDisplayItem.cpp |
diff --git a/Source/platform/graphics/paint/DrawingDisplayItem.cpp b/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
index 1c34bb4f89e408cba2900ba6d3380c622b325209..0c859288670aaae7e7a168ac9dab6f1551174b78 100644 |
--- a/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
+++ b/Source/platform/graphics/paint/DrawingDisplayItem.cpp |
@@ -20,6 +20,11 @@ void DrawingDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list) co |
list->appendDrawingItem(m_picture.get()); |
} |
+bool DrawingDisplayItem::drawsContent() const |
+{ |
+ return m_picture->approximateOpCount() > 0; |
+} |
+ |
#ifndef NDEBUG |
void DrawingDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const |
{ |