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

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

Issue 1643523006: Reduce code verbosity in passing invalidation rect to cc. (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 87f7f5e1e8b93ef7e35b5527f772185e087ed91a..b2fed1c59e59c1519065cb29513b62d1126ad1d1 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintArtifact.cpp
@@ -96,10 +96,8 @@ void PaintArtifact::appendToWebDisplayItemList(WebDisplayItemList* list) const
#if ENABLE(ASSERT)
m_displayItemList.assertDisplayItemClientsAreAlive();
#endif
- for (const DisplayItem& displayItem : m_displayItemList) {
- IntRect visualRect = displayItem.client().visualRect();
- displayItem.appendToWebDisplayItemList(visualRect, list);
- }
+ for (const DisplayItem& displayItem : m_displayItemList)
+ displayItem.appendToWebDisplayItemList(displayItem.client().visualRect(), list);
}
} // namespace blink
« 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