Changeset 74272 in webkit
- Timestamp:
- Dec 17, 2010 8:43:05 AM (13 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r74266 r74272 1 2010-12-17 Ariya Hidayat <ariya@sencha.com> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Default image interpolation should reset the render hint 6 https://bugs.webkit.org/show_bug.cgi?id=51233 7 8 Save initial SmoothPixmapTransform render hint so that it can be used 9 with default image interpolation quality to reset back the render hints. 10 11 * platform/graphics/qt/GraphicsContextQt.cpp: 12 (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate): 13 (WebCore::GraphicsContext::setImageInterpolationQuality): 14 1 15 2010-12-17 Hans Wennborg <hans@chromium.org> 2 16 -
trunk/WebCore/platform/graphics/qt/GraphicsContextQt.cpp
r74248 r74272 199 199 200 200 InterpolationQuality imageInterpolationQuality; 201 bool initialSmoothPixmapTransformHint; 201 202 202 203 ContextShadow shadow; … … 229 230 , solidColor(initialSolidColor) 230 231 , imageInterpolationQuality(InterpolationDefault) 232 , initialSmoothPixmapTransformHint(false) 231 233 , painter(p) 232 234 , platformContextIsOwned(false) … … 237 239 // Use the default the QPainter was constructed with. 238 240 antiAliasingForRectsAndLines = painter->testRenderHint(QPainter::Antialiasing); 241 242 // Used for default image interpolation quality. 243 initialSmoothPixmapTransformHint = painter->testRenderHint(QPainter::SmoothPixmapTransform); 239 244 240 245 painter->setRenderHint(QPainter::Antialiasing, true); … … 1393 1398 break; 1394 1399 1395 case InterpolationDefault:1396 1400 case InterpolationMedium: 1397 1401 case InterpolationHigh: 1398 default:1399 1402 // use the filter 1400 1403 m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, true); 1401 1404 break; 1405 1406 case InterpolationDefault: 1407 default: 1408 m_data->p()->setRenderHint(QPainter::SmoothPixmapTransform, m_data->initialSmoothPixmapTransformHint); 1409 break; 1402 1410 }; 1403 1411 }
Note: See TracChangeset
for help on using the changeset viewer.