OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 m_animatedResizeIsActive = false; | 130 m_animatedResizeIsActive = false; |
131 | 131 |
132 for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m
_objectLayerSizeMap.end(); ++it) { | 132 for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m
_objectLayerSizeMap.end(); ++it) { |
133 if (LocalFrame* frame = it->key->document().frame()) { | 133 if (LocalFrame* frame = it->key->document().frame()) { |
134 // If this renderer's containing FrameView is in live resize, punt t
he timer and hold back for now. | 134 // If this renderer's containing FrameView is in live resize, punt t
he timer and hold back for now. |
135 if (frame->view() && frame->view()->inLiveResize()) { | 135 if (frame->view() && frame->view()->inLiveResize()) { |
136 restartTimer(); | 136 restartTimer(); |
137 return; | 137 return; |
138 } | 138 } |
139 } | 139 } |
140 it->key->paintInvalidationForWholeRenderer(); | 140 it->key->setShouldDoFullPaintInvalidation(true); |
141 } | 141 } |
142 | 142 |
143 m_liveResizeOptimizationIsActive = false; | 143 m_liveResizeOptimizationIsActive = false; |
144 } | 144 } |
145 | 145 |
146 void ImageQualityController::restartTimer() | 146 void ImageQualityController::restartTimer() |
147 { | 147 { |
148 m_timer.startOneShot(cLowQualityTimeThreshold, FROM_HERE); | 148 m_timer.startOneShot(cLowQualityTimeThreshold, FROM_HERE); |
149 } | 149 } |
150 | 150 |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 // This object has been resized to two different sizes while the timer | 227 // This object has been resized to two different sizes while the timer |
228 // is active, so draw at low quality, set the flag for animated resizes and | 228 // is active, so draw at low quality, set the flag for animated resizes and |
229 // the object to the list for high quality redraw. | 229 // the object to the list for high quality redraw. |
230 set(object, innerMap, layer, scaledLayoutSize); | 230 set(object, innerMap, layer, scaledLayoutSize); |
231 m_animatedResizeIsActive = true; | 231 m_animatedResizeIsActive = true; |
232 restartTimer(); | 232 restartTimer(); |
233 return true; | 233 return true; |
234 } | 234 } |
235 | 235 |
236 } // namespace blink | 236 } // namespace blink |
OLD | NEW |