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 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 return; | 713 return; |
714 GraphicsContext* c = drawingContext(); | 714 GraphicsContext* c = drawingContext(); |
715 realizeSaves(c); | 715 realizeSaves(c); |
716 modifiableState().m_globalComposite = op; | 716 modifiableState().m_globalComposite = op; |
717 modifiableState().m_globalBlend = blendMode; | 717 modifiableState().m_globalBlend = blendMode; |
718 if (!c) | 718 if (!c) |
719 return; | 719 return; |
720 c->setCompositeOperation(op, blendMode); | 720 c->setCompositeOperation(op, blendMode); |
721 } | 721 } |
722 | 722 |
723 void CanvasRenderingContext2D::setCurrentTransform(PassRefPtr<SVGMatrixTearOff>
passMatrixTearOff) | 723 void CanvasRenderingContext2D::setCurrentTransform(PassRefPtrWillBeRawPtr<SVGMat
rixTearOff> passMatrixTearOff) |
724 { | 724 { |
725 RefPtr<SVGMatrixTearOff> matrixTearOff = passMatrixTearOff; | 725 RefPtrWillBeRawPtr<SVGMatrixTearOff> matrixTearOff = passMatrixTearOff; |
726 const AffineTransform& transform = matrixTearOff->value(); | 726 const AffineTransform& transform = matrixTearOff->value(); |
727 setTransform(transform.a(), transform.b(), transform.c(), transform.d(), tra
nsform.e(), transform.f()); | 727 setTransform(transform.a(), transform.b(), transform.c(), transform.d(), tra
nsform.e(), transform.f()); |
728 } | 728 } |
729 | 729 |
730 void CanvasRenderingContext2D::scale(float sx, float sy) | 730 void CanvasRenderingContext2D::scale(float sx, float sy) |
731 { | 731 { |
732 GraphicsContext* c = drawingContext(); | 732 GraphicsContext* c = drawingContext(); |
733 if (!c) | 733 if (!c) |
734 return; | 734 return; |
735 if (!state().m_invertibleCTM) | 735 if (!state().m_invertibleCTM) |
(...skipping 1709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2445 | 2445 |
2446 unsigned CanvasRenderingContext2D::hitRegionsCount() const | 2446 unsigned CanvasRenderingContext2D::hitRegionsCount() const |
2447 { | 2447 { |
2448 if (m_hitRegionManager) | 2448 if (m_hitRegionManager) |
2449 return m_hitRegionManager->getHitRegionsCount(); | 2449 return m_hitRegionManager->getHitRegionsCount(); |
2450 | 2450 |
2451 return 0; | 2451 return 0; |
2452 } | 2452 } |
2453 | 2453 |
2454 } // namespace blink | 2454 } // namespace blink |
OLD | NEW |