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

Unified Diff: third_party/WebKit/Source/core/paint/SVGClipPainter.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/SVGClipPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp b/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp
index 5738e22891a0124cf2e0a4ee99bb0ba6fe2e916e..31cf20c055d0feabb9036b7b9bb19629aab32398 100644
--- a/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/SVGClipPainter.cpp
@@ -15,8 +15,8 @@
#include "core/paint/TransformRecorder.h"
#include "platform/graphics/paint/ClipPathDisplayItem.h"
#include "platform/graphics/paint/CompositingDisplayItem.h"
-#include "platform/graphics/paint/DisplayItemList.h"
#include "platform/graphics/paint/DrawingDisplayItem.h"
+#include "platform/graphics/paint/PaintController.h"
namespace blink {
@@ -59,8 +59,8 @@ bool SVGClipPainter::prepareEffect(const LayoutObject& target, const FloatRect&
Path clipPath;
if (m_clip.asPath(animatedLocalTransform, targetBoundingBox, clipPath)) {
clipperState = ClipperAppliedPath;
- ASSERT(context->displayItemList());
- context->displayItemList()->createAndAppend<BeginClipPathDisplayItem>(target, clipPath);
+ ASSERT(context->paintController());
+ context->paintController()->createAndAppend<BeginClipPathDisplayItem>(target, clipPath);
return true;
}
@@ -99,8 +99,8 @@ void SVGClipPainter::finishEffect(const LayoutObject& target, GraphicsContext* c
switch (clipperState) {
case ClipperAppliedPath:
// Path-only clipping, no layers to restore but we need to emit an end to the clip path display item.
- ASSERT(context->displayItemList());
- context->displayItemList()->endItem<EndClipPathDisplayItem>(target);
+ ASSERT(context->paintController());
+ context->paintController()->endItem<EndClipPathDisplayItem>(target);
break;
case ClipperAppliedMask:
// Transfer content -> clip mask (SrcIn)

Powered by Google App Engine
This is Rietveld 408576698