Index: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp |
index fb737d2d430c3eb226df769601073e5f033d0183..87f7f5e1e8b93ef7e35b5527f772185e087ed91a 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp |
@@ -97,8 +97,8 @@ void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const |
m_displayItemList.assertDisplayItemClientsAreAlive(); |
#endif |
for (const DisplayItem& displayItem : m_displayItemList) { |
- // TODO(wkorman): Pass the actual visual rect for the display item. |
- displayItem.appendToWebDisplayItemList(IntRect(), list); |
+ IntRect visualRect = displayItem.client().visualRect(); |
+ displayItem.appendToWebDisplayItemList(visualRect, list); |
pdr.
2016/01/28 23:07:45
Mind wrapping this all up in one line?
for (const
|
} |
} |