| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 // If this layoutObject's containing FrameView is in live resize, pu
nt the timer and hold back for now. | 135 // If this layoutObject's containing FrameView is in live resize, pu
nt the timer and hold back for now. |
| 136 if (frame->view() && frame->view()->inLiveResize()) { | 136 if (frame->view() && frame->view()->inLiveResize()) { |
| 137 restartTimer(); | 137 restartTimer(); |
| 138 return; | 138 return; |
| 139 } | 139 } |
| 140 } | 140 } |
| 141 ObjectLayerSizeMap::iterator i = m_objectLayerSizeMap.find(layoutObject)
; | 141 ObjectLayerSizeMap::iterator i = m_objectLayerSizeMap.find(layoutObject)
; |
| 142 if (i != m_objectLayerSizeMap.end()) { | 142 if (i != m_objectLayerSizeMap.end()) { |
| 143 // Only invalidate the object if it is animating. | 143 // Only invalidate the object if it is animating. |
| 144 if (i->value.isResizing) { | 144 if (i->value.isResizing) { |
| 145 // TODO(wangxianzhu): Use LayoutObject::mutableForPainting(). | 145 // TODO(wangxianzhu): Use LayoutObject::getMutableForPainting(). |
| 146 const_cast<LayoutObject*>(layoutObject)->setShouldDoFullPaintInv
alidation(); | 146 const_cast<LayoutObject*>(layoutObject)->setShouldDoFullPaintInv
alidation(); |
| 147 } | 147 } |
| 148 i->value.isResizing = false; | 148 i->value.isResizing = false; |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 | 151 |
| 152 m_liveResizeOptimizationIsActive = false; | 152 m_liveResizeOptimizationIsActive = false; |
| 153 } | 153 } |
| 154 | 154 |
| 155 void ImageQualityController::restartTimer() | 155 void ImageQualityController::restartTimer() |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 } | 234 } |
| 235 // This object has been resized to two different sizes while the timer | 235 // This object has been resized to two different sizes while the timer |
| 236 // is active, so draw at low quality, set the flag for animated resizes and | 236 // is active, so draw at low quality, set the flag for animated resizes and |
| 237 // the object to the list for high quality redraw. | 237 // the object to the list for high quality redraw. |
| 238 set(object, innerMap, layer, layoutSize, true); | 238 set(object, innerMap, layer, layoutSize, true); |
| 239 restartTimer(); | 239 restartTimer(); |
| 240 return true; | 240 return true; |
| 241 } | 241 } |
| 242 | 242 |
| 243 } // namespace blink | 243 } // namespace blink |
| OLD | NEW |