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

Unified Diff: third_party/WebKit/Source/core/paint/ScrollRecorder.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/ScrollRecorder.cpp
diff --git a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
index ad539ee2542e7f5eb2e01d6ab453f42ce593f17b..cb9ace74d19287cf1d4fa47b4cf8465209c6bd4e 100644
--- a/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
+++ b/third_party/WebKit/Source/core/paint/ScrollRecorder.cpp
@@ -6,7 +6,7 @@
#include "core/paint/ScrollRecorder.h"
#include "platform/graphics/GraphicsContext.h"
-#include "platform/graphics/paint/DisplayItemList.h"
+#include "platform/graphics/paint/PaintController.h"
#include "platform/graphics/paint/ScrollDisplayItem.h"
namespace blink {
@@ -16,14 +16,14 @@ ScrollRecorder::ScrollRecorder(GraphicsContext& context, const DisplayItemClient
, m_beginItemType(DisplayItem::paintPhaseToScrollType(phase))
, m_context(context)
{
- ASSERT(m_context.displayItemList());
- m_context.displayItemList()->createAndAppend<BeginScrollDisplayItem>(m_client, m_beginItemType, currentOffset);
+ ASSERT(m_context.paintController());
+ m_context.paintController()->createAndAppend<BeginScrollDisplayItem>(m_client, m_beginItemType, currentOffset);
}
ScrollRecorder::~ScrollRecorder()
{
- ASSERT(m_context.displayItemList());
- m_context.displayItemList()->endItem<EndScrollDisplayItem>(m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType));
+ ASSERT(m_context.paintController());
+ m_context.paintController()->endItem<EndScrollDisplayItem>(m_client, DisplayItem::scrollTypeToEndScrollType(m_beginItemType));
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/paint/ScopeRecorder.cpp ('k') | third_party/WebKit/Source/core/paint/TableCellPainterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698