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

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

Issue 1401363003: Rename DisplayItemList to PaintController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
diff --git a/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp b/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
index d8ed29bbc1e1a5da771c0866b7ea1475d03bf53b..70da1f826c82e611426d65f83f7579f92b370fe0 100644
--- a/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
+++ b/third_party/WebKit/Source/core/paint/RoundedInnerRectClipper.cpp
@@ -8,15 +8,15 @@
#include "core/layout/LayoutBox.h"
#include "core/paint/PaintInfo.h"
#include "platform/graphics/paint/ClipDisplayItem.h"
-#include "platform/graphics/paint/DisplayItemList.h"
+#include "platform/graphics/paint/PaintController.h"
namespace blink {
RoundedInnerRectClipper::RoundedInnerRectClipper(const LayoutObject& layoutObject, const PaintInfo& paintInfo, const LayoutRect& rect, const FloatRoundedRect& clipRect, RoundedInnerRectClipperBehavior behavior)
: m_layoutObject(layoutObject)
, m_paintInfo(paintInfo)
- , m_useDisplayItemList(behavior == ApplyToDisplayListIfEnabled)
- , m_clipType(m_useDisplayItemList ? m_paintInfo.displayItemTypeForClipping() : DisplayItem::ClipBoxPaintPhaseFirst)
+ , m_usePaintController(behavior == ApplyToDisplayListIfEnabled)
+ , m_clipType(m_usePaintController ? m_paintInfo.displayItemTypeForClipping() : DisplayItem::ClipBoxPaintPhaseFirst)
{
Vector<FloatRoundedRect> roundedRectClips;
if (clipRect.isRenderable()) {
@@ -48,9 +48,9 @@ RoundedInnerRectClipper::RoundedInnerRectClipper(const LayoutObject& layoutObjec
}
}
- if (m_useDisplayItemList) {
- ASSERT(m_paintInfo.context->displayItemList());
- m_paintInfo.context->displayItemList()->createAndAppend<ClipDisplayItem>(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips);
+ if (m_usePaintController) {
+ ASSERT(m_paintInfo.context->paintController());
+ m_paintInfo.context->paintController()->createAndAppend<ClipDisplayItem>(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips);
} else {
ClipDisplayItem clipDisplayItem(layoutObject, m_clipType, LayoutRect::infiniteIntRect(), roundedRectClips);
clipDisplayItem.replay(*paintInfo.context);
@@ -60,9 +60,9 @@ RoundedInnerRectClipper::RoundedInnerRectClipper(const LayoutObject& layoutObjec
RoundedInnerRectClipper::~RoundedInnerRectClipper()
{
DisplayItem::Type endType = DisplayItem::clipTypeToEndClipType(m_clipType);
- if (m_useDisplayItemList) {
- ASSERT(m_paintInfo.context->displayItemList());
- m_paintInfo.context->displayItemList()->endItem<EndClipDisplayItem>(m_layoutObject, endType);
+ if (m_usePaintController) {
+ ASSERT(m_paintInfo.context->paintController());
+ m_paintInfo.context->paintController()->endItem<EndClipDisplayItem>(m_layoutObject, endType);
} else {
EndClipDisplayItem endClipDisplayItem(m_layoutObject, endType);
endClipDisplayItem.replay(*m_paintInfo.context);

Powered by Google App Engine
This is Rietveld 408576698