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

Unified Diff: third_party/WebKit/Source/core/paint/LineBoxListPainter.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/LineBoxListPainter.cpp
diff --git a/third_party/WebKit/Source/core/paint/LineBoxListPainter.cpp b/third_party/WebKit/Source/core/paint/LineBoxListPainter.cpp
index 9074de057f44cc630e025e69daf746217475c26b..d27d73f40e97b137753cc96bc852e39d2d31e744 100644
--- a/third_party/WebKit/Source/core/paint/LineBoxListPainter.cpp
+++ b/third_party/WebKit/Source/core/paint/LineBoxListPainter.cpp
@@ -14,7 +14,7 @@
#include "core/paint/InlinePainter.h"
#include "core/paint/ObjectPainter.h"
#include "core/paint/PaintInfo.h"
-#include "platform/graphics/paint/DisplayItemList.h"
+#include "platform/graphics/paint/PaintController.h"
namespace blink {
@@ -63,24 +63,24 @@ void LineBoxListPainter::paint(const LayoutBoxModelObject& layoutObject, const P
}
}
-static void invalidateLineBoxPaintOffsetsInternal(DisplayItemList* displayItemList, InlineFlowBox* inlineBox)
+static void invalidateLineBoxPaintOffsetsInternal(PaintController* paintController, InlineFlowBox* inlineBox)
{
- displayItemList->invalidatePaintOffset(*inlineBox);
+ paintController->invalidatePaintOffset(*inlineBox);
for (InlineBox* child = inlineBox->firstChild(); child; child = child->nextOnLine()) {
if (!child->lineLayoutItem().isText() && child->boxModelObject().hasSelfPaintingLayer())
continue;
if (child->isInlineFlowBox())
- invalidateLineBoxPaintOffsetsInternal(displayItemList, toInlineFlowBox(child));
+ invalidateLineBoxPaintOffsetsInternal(paintController, toInlineFlowBox(child));
else
- displayItemList->invalidatePaintOffset(*child);
+ paintController->invalidatePaintOffset(*child);
}
}
void LineBoxListPainter::invalidateLineBoxPaintOffsets(const PaintInfo& paintInfo) const
{
- DisplayItemList* displayItemList = paintInfo.context->displayItemList();
+ PaintController* paintController = paintInfo.context->paintController();
for (InlineFlowBox* curr = m_lineBoxList.firstLineBox(); curr; curr = curr->nextLineBox())
- invalidateLineBoxPaintOffsetsInternal(displayItemList, curr);
+ invalidateLineBoxPaintOffsetsInternal(paintController, curr);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698