| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. | 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 #include "core/html/canvas/CanvasFontCache.h" | 41 #include "core/html/canvas/CanvasFontCache.h" |
| 42 #include "core/html/canvas/CanvasRenderingContext.h" | 42 #include "core/html/canvas/CanvasRenderingContext.h" |
| 43 #include "core/html/canvas/CanvasRenderingContextFactory.h" | 43 #include "core/html/canvas/CanvasRenderingContextFactory.h" |
| 44 #include "core/layout/LayoutHTMLCanvas.h" | 44 #include "core/layout/LayoutHTMLCanvas.h" |
| 45 #include "core/paint/DeprecatedPaintLayer.h" | 45 #include "core/paint/DeprecatedPaintLayer.h" |
| 46 #include "platform/MIMETypeRegistry.h" | 46 #include "platform/MIMETypeRegistry.h" |
| 47 #include "platform/RuntimeEnabledFeatures.h" | 47 #include "platform/RuntimeEnabledFeatures.h" |
| 48 #include "platform/graphics/BitmapImage.h" | 48 #include "platform/graphics/BitmapImage.h" |
| 49 #include "platform/graphics/Canvas2DImageBufferSurface.h" | 49 #include "platform/graphics/Canvas2DImageBufferSurface.h" |
| 50 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" | 50 #include "platform/graphics/ExpensiveCanvasHeuristicParameters.h" |
| 51 #include "platform/graphics/GraphicsContextStateSaver.h" | |
| 52 #include "platform/graphics/ImageBuffer.h" | 51 #include "platform/graphics/ImageBuffer.h" |
| 53 #include "platform/graphics/RecordingImageBufferSurface.h" | 52 #include "platform/graphics/RecordingImageBufferSurface.h" |
| 54 #include "platform/graphics/StaticBitmapImage.h" | 53 #include "platform/graphics/StaticBitmapImage.h" |
| 55 #include "platform/graphics/UnacceleratedImageBufferSurface.h" | 54 #include "platform/graphics/UnacceleratedImageBufferSurface.h" |
| 56 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" | 55 #include "platform/graphics/gpu/AcceleratedImageBufferSurface.h" |
| 57 #include "platform/transforms/AffineTransform.h" | 56 #include "platform/transforms/AffineTransform.h" |
| 58 #include "public/platform/Platform.h" | 57 #include "public/platform/Platform.h" |
| 59 #include <math.h> | 58 #include <math.h> |
| 60 #include <v8.h> | 59 #include <v8.h> |
| 61 | 60 |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 862 { | 861 { |
| 863 return FloatSize(width(), height()); | 862 return FloatSize(width(), height()); |
| 864 } | 863 } |
| 865 | 864 |
| 866 bool HTMLCanvasElement::isOpaque() const | 865 bool HTMLCanvasElement::isOpaque() const |
| 867 { | 866 { |
| 868 return m_context && !m_context->hasAlpha(); | 867 return m_context && !m_context->hasAlpha(); |
| 869 } | 868 } |
| 870 | 869 |
| 871 } // blink | 870 } // blink |
| OLD | NEW |