| 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 15 matching lines...) Expand all Loading... |
| 26 */ | 26 */ |
| 27 | 27 |
| 28 #include "sky/engine/config.h" | 28 #include "sky/engine/config.h" |
| 29 #include "sky/engine/core/html/HTMLCanvasElement.h" | 29 #include "sky/engine/core/html/HTMLCanvasElement.h" |
| 30 | 30 |
| 31 #include <math.h> | 31 #include <math.h> |
| 32 | 32 |
| 33 #include "base/bind.h" | 33 #include "base/bind.h" |
| 34 #include "gen/sky/core/HTMLNames.h" | 34 #include "gen/sky/core/HTMLNames.h" |
| 35 #include "gen/sky/platform/RuntimeEnabledFeatures.h" | 35 #include "gen/sky/platform/RuntimeEnabledFeatures.h" |
| 36 #include "sky/engine/bindings2/exception_messages.h" | 36 #include "sky/engine/bindings/exception_messages.h" |
| 37 #include "sky/engine/bindings2/exception_state.h" | 37 #include "sky/engine/bindings/exception_state.h" |
| 38 #include "sky/engine/core/dom/Document.h" | 38 #include "sky/engine/core/dom/Document.h" |
| 39 #include "sky/engine/core/dom/ExceptionCode.h" | 39 #include "sky/engine/core/dom/ExceptionCode.h" |
| 40 #include "sky/engine/core/dom/Microtask.h" | 40 #include "sky/engine/core/dom/Microtask.h" |
| 41 #include "sky/engine/core/frame/LocalFrame.h" | 41 #include "sky/engine/core/frame/LocalFrame.h" |
| 42 #include "sky/engine/core/frame/Settings.h" | 42 #include "sky/engine/core/frame/Settings.h" |
| 43 #include "sky/engine/core/html/ImageData.h" | 43 #include "sky/engine/core/html/ImageData.h" |
| 44 #include "sky/engine/core/html/canvas/Canvas2DContextAttributes.h" | 44 #include "sky/engine/core/html/canvas/Canvas2DContextAttributes.h" |
| 45 #include "sky/engine/core/html/canvas/CanvasRenderingContext2D.h" | 45 #include "sky/engine/core/html/canvas/CanvasRenderingContext2D.h" |
| 46 #include "sky/engine/core/html/canvas/WebGLContextAttributes.h" | 46 #include "sky/engine/core/html/canvas/WebGLContextAttributes.h" |
| 47 #include "sky/engine/core/html/canvas/WebGLContextEvent.h" | 47 #include "sky/engine/core/html/canvas/WebGLContextEvent.h" |
| (...skipping 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 } | 646 } |
| 647 return m_imageBuffer->copyImage(DontCopyBackingStore, Unscaled); | 647 return m_imageBuffer->copyImage(DontCopyBackingStore, Unscaled); |
| 648 } | 648 } |
| 649 | 649 |
| 650 FloatSize HTMLCanvasElement::sourceSize() const | 650 FloatSize HTMLCanvasElement::sourceSize() const |
| 651 { | 651 { |
| 652 return FloatSize(width(), height()); | 652 return FloatSize(width(), height()); |
| 653 } | 653 } |
| 654 | 654 |
| 655 } | 655 } |
| OLD | NEW |