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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp

Issue 1648023002: Pass along Blink's visual rect for display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698