| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc.
All rights reserved. |
| 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 4 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 5 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> | 6 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> |
| 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 7 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 8 * Copyright (C) 2012 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012 Intel Corporation. All rights reserved. |
| 9 * | 9 * |
| 10 * Redistribution and use in source and binary forms, with or without | 10 * Redistribution and use in source and binary forms, with or without |
| (...skipping 2384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2395 return state().m_imageSmoothingEnabled; | 2395 return state().m_imageSmoothingEnabled; |
| 2396 } | 2396 } |
| 2397 | 2397 |
| 2398 void CanvasRenderingContext2D::setWebkitImageSmoothingEnabled(bool enabled) | 2398 void CanvasRenderingContext2D::setWebkitImageSmoothingEnabled(bool enabled) |
| 2399 { | 2399 { |
| 2400 if (enabled == state().m_imageSmoothingEnabled) | 2400 if (enabled == state().m_imageSmoothingEnabled) |
| 2401 return; | 2401 return; |
| 2402 | 2402 |
| 2403 realizeSaves(); | 2403 realizeSaves(); |
| 2404 modifiableState().m_imageSmoothingEnabled = enabled; | 2404 modifiableState().m_imageSmoothingEnabled = enabled; |
| 2405 drawingContext()->setImageInterpolationQuality(enabled ? DefaultInterpolatio
nQuality : InterpolationNone); | 2405 GraphicsContext* c = drawingContext(); |
| 2406 if (c) |
| 2407 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality :
InterpolationNone); |
| 2406 } | 2408 } |
| 2407 | 2409 |
| 2408 } // namespace WebCore | 2410 } // namespace WebCore |
| OLD | NEW |