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

Unified Diff: Source/platform/graphics/paint/FilterDisplayItem.cpp

Issue 924533006: Don't remove empty display item pairs that draw content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address review comments Created 5 years, 10 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/platform/graphics/paint/FilterDisplayItem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/FilterDisplayItem.cpp
diff --git a/Source/platform/graphics/paint/FilterDisplayItem.cpp b/Source/platform/graphics/paint/FilterDisplayItem.cpp
index 683b2686e8b86c868154ad9636e512a391a17e6e..293f08125fd9fdaf8e62cde6c359f2f26120796a 100644
--- a/Source/platform/graphics/paint/FilterDisplayItem.cpp
+++ b/Source/platform/graphics/paint/FilterDisplayItem.cpp
@@ -40,6 +40,12 @@ void BeginFilterDisplayItem::appendToWebDisplayItemList(WebDisplayItemList* list
list->appendFilterItem(*m_webFilterOperations, FloatRect(m_bounds));
}
+bool BeginFilterDisplayItem::drawsContent() const
+{
+ // A filter with no inputs must produce its own content.
+ return m_imageFilter->countInputs() == 0;
+}
+
#ifndef NDEBUG
void BeginFilterDisplayItem::dumpPropertiesAsDebugString(WTF::StringBuilder& stringBuilder) const
{
« no previous file with comments | « Source/platform/graphics/paint/FilterDisplayItem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698