| 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 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2200 c->setImageInterpolationQuality(enabled ? CanvasDefaultInterpolationQual
ity : 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::drawFocusIfNeeded(Element* element) |
| 2211 { | 2211 { |
| 2212 if (!focusRingCallIsValid(m_path, element)) | 2212 if (!focusRingCallIsValid(m_path, element)) |
| 2213 return; | 2213 return; |
| 2214 | 2214 |
| 2215 updateFocusRingAccessibility(m_path, element); | 2215 updateFocusRingAccessibility(m_path, element); |
| 2216 // Note: we need to check document->focusedElement() rather than just callin
g | 2216 // Note: we need to check document->focusedElement() rather than just callin
g |
| 2217 // element->focused(), because element->focused() isn't updated until after | 2217 // element->focused(), because element->focused() isn't updated until after |
| 2218 // focus events fire. | 2218 // focus events fire. |
| 2219 if (element->document().focusedElement() == element) | 2219 if (element->document().focusedElement() == element) |
| 2220 drawFocusRing(m_path); | 2220 drawFocusRing(m_path); |
| (...skipping 76 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 |