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

Unified Diff: Source/platform/graphics/paint/DisplayItemList.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/DisplayItem.h ('k') | Source/platform/graphics/paint/DrawingDisplayItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/platform/graphics/paint/DisplayItem.h ('k') | Source/platform/graphics/paint/DrawingDisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698