| 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 2275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 case MiddleTextBaseline: | 2286 case MiddleTextBaseline: |
| 2287 return -fontMetrics.descent() + fontMetrics.height() / 2; | 2287 return -fontMetrics.descent() + fontMetrics.height() / 2; |
| 2288 case AlphabeticTextBaseline: | 2288 case AlphabeticTextBaseline: |
| 2289 default: | 2289 default: |
| 2290 // Do nothing. | 2290 // Do nothing. |
| 2291 break; | 2291 break; |
| 2292 } | 2292 } |
| 2293 return 0; | 2293 return 0; |
| 2294 } | 2294 } |
| 2295 | 2295 |
| 2296 void CanvasRenderingContext2D::setIsHidden(bool hidden) |
| 2297 { |
| 2298 ImageBuffer* buffer = canvas()->buffer(); |
| 2299 if (buffer) |
| 2300 buffer->setIsHidden(hidden); |
| 2301 } |
| 2302 |
| 2296 blink::WebLayer* CanvasRenderingContext2D::platformLayer() const | 2303 blink::WebLayer* CanvasRenderingContext2D::platformLayer() const |
| 2297 { | 2304 { |
| 2298 return canvas()->buffer() ? canvas()->buffer()->platformLayer() : 0; | 2305 return canvas()->buffer() ? canvas()->buffer()->platformLayer() : 0; |
| 2299 } | 2306 } |
| 2300 | 2307 |
| 2301 bool CanvasRenderingContext2D::imageSmoothingEnabled() const | 2308 bool CanvasRenderingContext2D::imageSmoothingEnabled() const |
| 2302 { | 2309 { |
| 2303 return state().m_imageSmoothingEnabled; | 2310 return state().m_imageSmoothingEnabled; |
| 2304 } | 2311 } |
| 2305 | 2312 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2426 c->setAlphaAsFloat(1.0); | 2433 c->setAlphaAsFloat(1.0); |
| 2427 c->clearShadow(); | 2434 c->clearShadow(); |
| 2428 c->setCompositeOperation(CompositeSourceOver, blink::WebBlendModeNormal); | 2435 c->setCompositeOperation(CompositeSourceOver, blink::WebBlendModeNormal); |
| 2429 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); | 2436 c->drawFocusRing(path, focusRingWidth, focusRingOutline, focusRingColor); |
| 2430 c->restore(); | 2437 c->restore(); |
| 2431 | 2438 |
| 2432 didDraw(dirtyRect); | 2439 didDraw(dirtyRect); |
| 2433 } | 2440 } |
| 2434 | 2441 |
| 2435 } // namespace WebCore | 2442 } // namespace WebCore |
| OLD | NEW |