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

Unified Diff: Source/core/paint/RoundedInnerRectClipper.cpp

Issue 1203343002: WIP for display item list backed by ListContainer Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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/core/paint/LayerFixedPositionRecorder.cpp ('k') | Source/core/paint/SVGClipPainter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/RoundedInnerRectClipper.cpp
diff --git a/Source/core/paint/RoundedInnerRectClipper.cpp b/Source/core/paint/RoundedInnerRectClipper.cpp
index 3e0bfa03243402bd49ec8c221604a09af9ad0dda..ded720005e815bb2b92ccbc841b769b1c88cd558 100644
--- a/Source/core/paint/RoundedInnerRectClipper.cpp
+++ b/Source/core/paint/RoundedInnerRectClipper.cpp
@@ -48,32 +48,33 @@ RoundedInnerRectClipper::RoundedInnerRectClipper(LayoutObject& layoutObject, con
}
}
- OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips.release());
- if (m_useDisplayItemList) {
- ASSERT(m_paintInfo.context->displayItemList());
- if (m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled())
- return;
- m_paintInfo.context->displayItemList()->add(clipDisplayItem.release());
- } else {
- clipDisplayItem->replay(*paintInfo.context);
- }
+ ALLOW_UNUSED_LOCAL(m_layoutObject);
+ //OwnPtr<ClipDisplayItem> clipDisplayItem = ClipDisplayItem::create(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips.release());
+ //if (m_useDisplayItemList) {
+ // ASSERT(m_paintInfo.context->displayItemList());
+ // if (m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled())
+ // return;
+ // m_paintInfo.context->displayItemList()->add(clipDisplayItem.release());
+ //} else {
+ // clipDisplayItem->replay(*paintInfo.context);
+ //}
}
RoundedInnerRectClipper::~RoundedInnerRectClipper()
{
- DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_clipType);
- if (m_useDisplayItemList) {
- ASSERT(m_paintInfo.context->displayItemList());
- if (!m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled()) {
- if (m_paintInfo.context->displayItemList()->lastDisplayItemIsNoopBegin())
- m_paintInfo.context->displayItemList()->removeLastDisplayItem();
- else
- m_paintInfo.context->displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, endType));
- }
- } else {
- EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType);
- endClipDisplayItem.replay(*m_paintInfo.context);
- }
+ //DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_clipType);
+ //if (m_useDisplayItemList) {
+ // ASSERT(m_paintInfo.context->displayItemList());
+ // if (!m_paintInfo.context->displayItemList()->displayItemConstructionIsDisabled()) {
+ // if (m_paintInfo.context->displayItemList()->lastDisplayItemIsNoopBegin())
+ // m_paintInfo.context->displayItemList()->removeLastDisplayItem();
+ // else
+ // m_paintInfo.context->displayItemList()->add(EndClipDisplayItem::create(m_layoutObject, endType));
+ // }
+ //} else {
+ // EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType);
+ // endClipDisplayItem.replay(*m_paintInfo.context);
+ //}
}
} // namespace blink
« no previous file with comments | « Source/core/paint/LayerFixedPositionRecorder.cpp ('k') | Source/core/paint/SVGClipPainter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698