Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
index 58d2f40c5f37cedd56612e5169d3e4729655f747..cde9a3c99881117026576217ac7b733d00d121e9 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp |
@@ -439,6 +439,7 @@ void PaintController::commitNewDisplayItems(const LayoutSize& offsetFromLayoutOb |
if (gpuAnalyzer.suitableForGpuRasterization()) |
item.analyzeForGpuRasterization(gpuAnalyzer); |
+ // TODO(wkorman): Only compute and append visual rect for drawings. |
m_newDisplayItemList.appendVisualRect(visualRectForDisplayItem(item, offsetFromLayoutObject)); |
if (item.isCacheable()) { |
@@ -512,6 +513,7 @@ void PaintController::appendDebugDrawingAfterCommit(const DisplayItemClient& dis |
DCHECK(m_newDisplayItemList.isEmpty()); |
DrawingDisplayItem& displayItem = m_currentPaintArtifact.getDisplayItemList().allocateAndConstruct<DrawingDisplayItem>(displayItemClient, DisplayItem::DebugDrawing, picture); |
displayItem.setSkippedCache(); |
+ // TODO(wkorman): Only compute and append visual rect for drawings. |
m_currentPaintArtifact.getDisplayItemList().appendVisualRect(visualRectForDisplayItem(displayItem, offsetFromLayoutObject)); |
} |