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

Unified Diff: Source/core/layout/ImageQualityController.cpp

Issue 1062283002: Use C++11 range-based loop for core/layout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix it naming Created 5 years, 8 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 | Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/ImageQualityController.cpp
diff --git a/Source/core/layout/ImageQualityController.cpp b/Source/core/layout/ImageQualityController.cpp
index 9c45ec79065a8ce56c575fb86c3eecbc0305b812..821ca3a1ee27f6556351ce088fdfc5b2c3d1dee5 100644
--- a/Source/core/layout/ImageQualityController.cpp
+++ b/Source/core/layout/ImageQualityController.cpp
@@ -131,15 +131,15 @@ void ImageQualityController::highQualityRepaintTimerFired(Timer<ImageQualityCont
return;
m_animatedResizeIsActive = false;
- for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m_objectLayerSizeMap.end(); ++it) {
- if (LocalFrame* frame = it->key->document().frame()) {
+ for (auto* layoutObject : m_objectLayerSizeMap.keys()) {
+ if (LocalFrame* frame = layoutObject->document().frame()) {
// If this renderer's containing FrameView is in live resize, punt the timer and hold back for now.
if (frame->view() && frame->view()->inLiveResize()) {
restartTimer();
return;
}
}
- it->key->setShouldDoFullPaintInvalidation();
+ layoutObject->setShouldDoFullPaintInvalidation();
}
m_liveResizeOptimizationIsActive = false;
« no previous file with comments | « no previous file | Source/core/layout/LayoutBlock.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698