Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1060)

Side by Side Diff: Source/core/html/canvas/CanvasRenderingContext2D.cpp

Issue 678163002: Oilpan: move SVG property hierarchy to the heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698