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

Unified Diff: Source/platform/graphics/paint/DrawingDisplayItem.h

Issue 924533006: Don't remove empty display item pairs that draw content (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
Index: Source/platform/graphics/paint/DrawingDisplayItem.h
diff --git a/Source/platform/graphics/paint/DrawingDisplayItem.h b/Source/platform/graphics/paint/DrawingDisplayItem.h
index 8aff94a9bab414cd9429b9abc255a1ad79236fb0..d98f0161b3eb0640e55f89bc5a6a9b25f3f6e77f 100644
--- a/Source/platform/graphics/paint/DrawingDisplayItem.h
+++ b/Source/platform/graphics/paint/DrawingDisplayItem.h
@@ -23,6 +23,8 @@ public:
virtual void replay(GraphicsContext*);
virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override;
+ virtual bool drawsContent() const override { return true; }
Stephen Chennney 2015/02/19 16:13:27 This should check the picture contents. approximat
ajuma 2015/02/19 17:36:51 Done.
+
PassRefPtr<const SkPicture> picture() const { return m_picture; }
protected:

Powered by Google App Engine
This is Rietveld 408576698