| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 m_animatedResizeIsActive = false; | 124 m_animatedResizeIsActive = false; |
| 125 | 125 |
| 126 for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m
_objectLayerSizeMap.end(); ++it) { | 126 for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m
_objectLayerSizeMap.end(); ++it) { |
| 127 if (LocalFrame* frame = it->key->document().frame()) { | 127 if (LocalFrame* frame = it->key->document().frame()) { |
| 128 // If this renderer's containing FrameView is in live resize, punt t
he timer and hold back for now. | 128 // If this renderer's containing FrameView is in live resize, punt t
he timer and hold back for now. |
| 129 if (frame->view() && frame->view()->inLiveResize()) { | 129 if (frame->view() && frame->view()->inLiveResize()) { |
| 130 restartTimer(); | 130 restartTimer(); |
| 131 return; | 131 return; |
| 132 } | 132 } |
| 133 } | 133 } |
| 134 it->key->repaint(); | 134 it->key->paintInvalidationForWholeRenderer(); |
| 135 } | 135 } |
| 136 | 136 |
| 137 m_liveResizeOptimizationIsActive = false; | 137 m_liveResizeOptimizationIsActive = false; |
| 138 } | 138 } |
| 139 | 139 |
| 140 void ImageQualityController::restartTimer() | 140 void ImageQualityController::restartTimer() |
| 141 { | 141 { |
| 142 m_timer.startOneShot(cLowQualityTimeThreshold, FROM_HERE); | 142 m_timer.startOneShot(cLowQualityTimeThreshold, FROM_HERE); |
| 143 } | 143 } |
| 144 | 144 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 // This object has been resized to two different sizes while the timer | 218 // This object has been resized to two different sizes while the timer |
| 219 // is active, so draw at low quality, set the flag for animated resizes and | 219 // is active, so draw at low quality, set the flag for animated resizes and |
| 220 // the object to the list for high quality redraw. | 220 // the object to the list for high quality redraw. |
| 221 set(object, innerMap, layer, scaledLayoutSize); | 221 set(object, innerMap, layer, scaledLayoutSize); |
| 222 m_animatedResizeIsActive = true; | 222 m_animatedResizeIsActive = true; |
| 223 restartTimer(); | 223 restartTimer(); |
| 224 return true; | 224 return true; |
| 225 } | 225 } |
| 226 | 226 |
| 227 } // namespace WebCore | 227 } // namespace WebCore |
| OLD | NEW |