Commit cb707057 authored by wkorman's avatar wkorman Committed by Commit bot

Pass along Blink's visual rect for display items.

Resubmit of http://crrev.com/1518223002 now that we have a fix in for
http://crbug.com/569643.

Work still pending per http://crbug.com/569211 to use correct rects for certain
items.

BUG=529938
TBR=christr

Review URL: https://codereview.chromium.org/1648023002

Cr-Commit-Position: refs/heads/master@{#372201}
parent 228893be
...@@ -97,8 +97,8 @@ void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const ...@@ -97,8 +97,8 @@ void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const
m_displayItemList.assertDisplayItemClientsAreAlive(); m_displayItemList.assertDisplayItemClientsAreAlive();
#endif #endif
for (const DisplayItem& displayItem : m_displayItemList) { for (const DisplayItem& displayItem : m_displayItemList) {
// TODO(wkorman): Pass the actual visual rect for the display item. IntRect visualRect = displayItem.client().visualRect();
displayItem.appendToWebDisplayItemList(IntRect(), list); displayItem.appendToWebDisplayItemList(visualRect, list);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment