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

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

Issue 388253004: Drawing an animated image to a canvas now behave as expected (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Correcting bug and moving logic to HTMLImageElenemt Created 6 years, 5 months 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "core/html/TextMetrics.h" 54 #include "core/html/TextMetrics.h"
55 #include "core/html/canvas/CanvasGradient.h" 55 #include "core/html/canvas/CanvasGradient.h"
56 #include "core/html/canvas/CanvasPattern.h" 56 #include "core/html/canvas/CanvasPattern.h"
57 #include "core/html/canvas/CanvasStyle.h" 57 #include "core/html/canvas/CanvasStyle.h"
58 #include "core/html/canvas/Path2D.h" 58 #include "core/html/canvas/Path2D.h"
59 #include "core/rendering/RenderImage.h" 59 #include "core/rendering/RenderImage.h"
60 #include "core/rendering/RenderLayer.h" 60 #include "core/rendering/RenderLayer.h"
61 #include "core/rendering/RenderTheme.h" 61 #include "core/rendering/RenderTheme.h"
62 #include "platform/fonts/FontCache.h" 62 #include "platform/fonts/FontCache.h"
63 #include "platform/geometry/FloatQuad.h" 63 #include "platform/geometry/FloatQuad.h"
64 #include "platform/graphics/BitmapImage.h"
Justin Novosad 2014/07/24 17:49:22 No longer needed
Rémi Piotaix 2014/07/25 18:21:00 Done.
64 #include "platform/graphics/DrawLooperBuilder.h" 65 #include "platform/graphics/DrawLooperBuilder.h"
65 #include "platform/graphics/GraphicsContextStateSaver.h" 66 #include "platform/graphics/GraphicsContextStateSaver.h"
66 #include "platform/text/TextRun.h" 67 #include "platform/text/TextRun.h"
67 #include "wtf/CheckedArithmetic.h" 68 #include "wtf/CheckedArithmetic.h"
68 #include "wtf/MathExtras.h" 69 #include "wtf/MathExtras.h"
69 #include "wtf/OwnPtr.h" 70 #include "wtf/OwnPtr.h"
70 #include "wtf/Uint8ClampedArray.h" 71 #include "wtf/Uint8ClampedArray.h"
71 #include "wtf/text/StringBuilder.h" 72 #include "wtf/text/StringBuilder.h"
72 73
73 namespace WebCore { 74 namespace WebCore {
(...skipping 2372 matching lines...) Expand 10 before | Expand all | Expand 10 after
2446 2447
2447 unsigned CanvasRenderingContext2D::hitRegionsCount() const 2448 unsigned CanvasRenderingContext2D::hitRegionsCount() const
2448 { 2449 {
2449 if (m_hitRegionManager) 2450 if (m_hitRegionManager)
2450 return m_hitRegionManager->getHitRegionsCount(); 2451 return m_hitRegionManager->getHitRegionsCount();
2451 2452
2452 return 0; 2453 return 0;
2453 } 2454 }
2454 2455
2455 } // namespace WebCore 2456 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698