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

Side by Side Diff: third_party/WebKit/Source/core/layout/ImageQualityController.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 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 unified diff | Download patch
OLDNEW
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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 return false; 174 return false;
175 175
176 if (!layer) 176 if (!layer)
177 return false; 177 return false;
178 178
179 if (object.style()->imageRendering() == ImageRenderingOptimizeContrast) 179 if (object.style()->imageRendering() == ImageRenderingOptimizeContrast)
180 return true; 180 return true;
181 181
182 if (LocalFrame* frame = object.frame()) { 182 if (LocalFrame* frame = object.frame()) {
183 if (frame->settings() && 183 if (frame->settings() &&
184 frame->settings()->useDefaultImageInterpolationQuality()) 184 frame->settings()->getUseDefaultImageInterpolationQuality())
185 return false; 185 return false;
186 } 186 }
187 187
188 // Look ourselves up in the hashtables. 188 // Look ourselves up in the hashtables.
189 ObjectLayerSizeMap::iterator i = m_objectLayerSizeMap.find(&object); 189 ObjectLayerSizeMap::iterator i = m_objectLayerSizeMap.find(&object);
190 LayerSizeMap* innerMap = nullptr; 190 LayerSizeMap* innerMap = nullptr;
191 bool objectIsResizing = false; 191 bool objectIsResizing = false;
192 if (i != m_objectLayerSizeMap.end()) { 192 if (i != m_objectLayerSizeMap.end()) {
193 innerMap = &i->value.layerSizeMap; 193 innerMap = &i->value.layerSizeMap;
194 objectIsResizing = i->value.isResizing; 194 objectIsResizing = i->value.isResizing;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 } 235 }
236 // This object has been resized to two different sizes while the timer 236 // This object has been resized to two different sizes while the timer
237 // is active, so draw at low quality, set the flag for animated resizes and 237 // is active, so draw at low quality, set the flag for animated resizes and
238 // the object to the list for high quality redraw. 238 // the object to the list for high quality redraw.
239 set(object, innerMap, layer, layoutSize, true); 239 set(object, innerMap, layer, layoutSize, true);
240 restartTimer(lastFrameTimeMonotonic); 240 restartTimer(lastFrameTimeMonotonic);
241 return true; 241 return true;
242 } 242 }
243 243
244 } // namespace blink 244 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/MouseEventManager.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698