OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 19 matching lines...) Expand all Loading... |
30 #include "core/CSSPropertyNames.h" | 30 #include "core/CSSPropertyNames.h" |
31 #include "core/HTMLNames.h" | 31 #include "core/HTMLNames.h" |
32 #include "core/dom/Attribute.h" | 32 #include "core/dom/Attribute.h" |
33 #include "core/dom/Document.h" | 33 #include "core/dom/Document.h" |
34 #include "core/dom/ExceptionCode.h" | 34 #include "core/dom/ExceptionCode.h" |
35 #include "core/dom/Fullscreen.h" | 35 #include "core/dom/Fullscreen.h" |
36 #include "core/dom/shadow/ShadowRoot.h" | 36 #include "core/dom/shadow/ShadowRoot.h" |
37 #include "core/frame/ImageBitmap.h" | 37 #include "core/frame/ImageBitmap.h" |
38 #include "core/frame/LocalDOMWindow.h" | 38 #include "core/frame/LocalDOMWindow.h" |
39 #include "core/frame/Settings.h" | 39 #include "core/frame/Settings.h" |
40 #include "core/html/MediaCustomControlsFullscreenDetector.h" | 40 #include "core/html/media/MediaCustomControlsFullscreenDetector.h" |
41 #include "core/html/parser/HTMLParserIdioms.h" | 41 #include "core/html/parser/HTMLParserIdioms.h" |
42 #include "core/imagebitmap/ImageBitmapOptions.h" | 42 #include "core/imagebitmap/ImageBitmapOptions.h" |
43 #include "core/layout/LayoutImage.h" | 43 #include "core/layout/LayoutImage.h" |
44 #include "core/layout/LayoutVideo.h" | 44 #include "core/layout/LayoutVideo.h" |
45 #include "platform/Histogram.h" | 45 #include "platform/Histogram.h" |
46 #include "platform/RuntimeEnabledFeatures.h" | 46 #include "platform/RuntimeEnabledFeatures.h" |
47 #include "platform/UserGestureIndicator.h" | 47 #include "platform/UserGestureIndicator.h" |
48 #include "platform/graphics/GraphicsContext.h" | 48 #include "platform/graphics/GraphicsContext.h" |
49 #include "platform/graphics/ImageBuffer.h" | 49 #include "platform/graphics/ImageBuffer.h" |
50 #include "platform/graphics/gpu/Extensions3DUtil.h" | 50 #include "platform/graphics/gpu/Extensions3DUtil.h" |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 return ScriptPromise(); | 472 return ScriptPromise(); |
473 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) | 473 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) |
474 return ScriptPromise(); | 474 return ScriptPromise(); |
475 return ImageBitmapSource::fulfillImageBitmap( | 475 return ImageBitmapSource::fulfillImageBitmap( |
476 scriptState, | 476 scriptState, |
477 ImageBitmap::create(this, cropRect, | 477 ImageBitmap::create(this, cropRect, |
478 eventTarget.toLocalDOMWindow()->document(), options)); | 478 eventTarget.toLocalDOMWindow()->document(), options)); |
479 } | 479 } |
480 | 480 |
481 } // namespace blink | 481 } // namespace blink |
OLD | NEW |