OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013, Google Inc. All rights reserved. | 2 * Copyright (c) 2013, Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "modules/imagebitmap/ImageBitmapFactories.h" | 32 #include "modules/imagebitmap/ImageBitmapFactories.h" |
33 | 33 |
34 #include "V8ImageBitmap.h" | 34 #include "V8ImageBitmap.h" |
35 #include "bindings/v8/ExceptionMessages.h" | 35 #include "bindings/v8/ExceptionMessages.h" |
36 #include "bindings/v8/ExceptionState.h" | 36 #include "bindings/v8/ExceptionState.h" |
37 #include "bindings/v8/ScriptScope.h" | 37 #include "bindings/v8/ScriptScope.h" |
38 #include "bindings/v8/ScriptState.h" | |
39 #include "core/fileapi/Blob.h" | 38 #include "core/fileapi/Blob.h" |
40 #include "core/html/HTMLCanvasElement.h" | 39 #include "core/html/HTMLCanvasElement.h" |
41 #include "core/html/HTMLImageElement.h" | 40 #include "core/html/HTMLImageElement.h" |
42 #include "core/html/HTMLVideoElement.h" | 41 #include "core/html/HTMLVideoElement.h" |
43 #include "core/html/ImageData.h" | 42 #include "core/html/ImageData.h" |
44 #include "core/html/canvas/CanvasRenderingContext2D.h" | 43 #include "core/html/canvas/CanvasRenderingContext2D.h" |
45 #include "core/frame/DOMWindow.h" | 44 #include "core/frame/DOMWindow.h" |
46 #include "core/frame/ImageBitmap.h" | 45 #include "core/frame/ImageBitmap.h" |
47 #include "core/workers/WorkerGlobalScope.h" | 46 #include "core/workers/WorkerGlobalScope.h" |
48 #include "platform/SharedBuffer.h" | 47 #include "platform/SharedBuffer.h" |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 m_resolver->resolve(imageBitmap.release()); | 351 m_resolver->resolve(imageBitmap.release()); |
353 m_factory->didFinishLoading(this); | 352 m_factory->didFinishLoading(this); |
354 } | 353 } |
355 | 354 |
356 void ImageBitmapFactories::ImageBitmapLoader::didFail(FileError::ErrorCode) | 355 void ImageBitmapFactories::ImageBitmapLoader::didFail(FileError::ErrorCode) |
357 { | 356 { |
358 rejectPromise(); | 357 rejectPromise(); |
359 } | 358 } |
360 | 359 |
361 } // namespace WebCore | 360 } // namespace WebCore |
OLD | NEW |