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, 2013 Intel Corporation. All rights reserved. | 8 * Copyright (C) 2012, 2013 Intel Corporation. All rights reserved. |
9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. | 9 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. |
10 * | 10 * |
(...skipping 2179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2190 | 2190 |
2191 void CanvasRenderingContext2D::setImageSmoothingEnabled(bool enabled) | 2191 void CanvasRenderingContext2D::setImageSmoothingEnabled(bool enabled) |
2192 { | 2192 { |
2193 if (enabled == state().m_imageSmoothingEnabled) | 2193 if (enabled == state().m_imageSmoothingEnabled) |
2194 return; | 2194 return; |
2195 | 2195 |
2196 realizeSaves(); | 2196 realizeSaves(); |
2197 modifiableState().m_imageSmoothingEnabled = enabled; | 2197 modifiableState().m_imageSmoothingEnabled = enabled; |
2198 GraphicsContext* c = drawingContext(); | 2198 GraphicsContext* c = drawingContext(); |
2199 if (c) | 2199 if (c) |
2200 c->setImageInterpolationQuality(enabled ? DefaultInterpolationQuality :
InterpolationNone); | 2200 c->setImageInterpolationQuality(enabled ? CanvasDefaultInterpolationQual
ity : InterpolationNone); |
2201 } | 2201 } |
2202 | 2202 |
2203 PassRefPtr<Canvas2DContextAttributes> CanvasRenderingContext2D::getContextAttrib
utes() const | 2203 PassRefPtr<Canvas2DContextAttributes> CanvasRenderingContext2D::getContextAttrib
utes() const |
2204 { | 2204 { |
2205 RefPtr<Canvas2DContextAttributes> attributes = Canvas2DContextAttributes::cr
eate(); | 2205 RefPtr<Canvas2DContextAttributes> attributes = Canvas2DContextAttributes::cr
eate(); |
2206 attributes->setAlpha(m_hasAlpha); | 2206 attributes->setAlpha(m_hasAlpha); |
2207 return attributes.release(); | 2207 return attributes.release(); |
2208 } | 2208 } |
2209 | 2209 |
2210 void CanvasRenderingContext2D::drawSystemFocusRing(Element* element) | 2210 void CanvasRenderingContext2D::drawSystemFocusRing(Element* element) |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2297 const int focusRingWidth = 5; | 2297 const int focusRingWidth = 5; |
2298 const int focusRingOutline = 0; | 2298 const int focusRingOutline = 0; |
2299 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); | 2299 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); |
2300 | 2300 |
2301 c->restore(); | 2301 c->restore(); |
2302 | 2302 |
2303 didDraw(dirtyRect); | 2303 didDraw(dirtyRect); |
2304 } | 2304 } |
2305 | 2305 |
2306 } // namespace WebCore | 2306 } // namespace WebCore |
OLD | NEW |