| 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 27 matching lines...) Expand all Loading... |
| 38 #include "core/html/parser/HTMLParserIdioms.h" | 38 #include "core/html/parser/HTMLParserIdioms.h" |
| 39 #include "core/imagebitmap/ImageBitmapOptions.h" | 39 #include "core/imagebitmap/ImageBitmapOptions.h" |
| 40 #include "core/layout/LayoutImage.h" | 40 #include "core/layout/LayoutImage.h" |
| 41 #include "core/layout/LayoutVideo.h" | 41 #include "core/layout/LayoutVideo.h" |
| 42 #include "platform/RuntimeEnabledFeatures.h" | 42 #include "platform/RuntimeEnabledFeatures.h" |
| 43 #include "platform/UserGestureIndicator.h" | 43 #include "platform/UserGestureIndicator.h" |
| 44 #include "platform/graphics/GraphicsContext.h" | 44 #include "platform/graphics/GraphicsContext.h" |
| 45 #include "platform/graphics/ImageBuffer.h" | 45 #include "platform/graphics/ImageBuffer.h" |
| 46 #include "platform/graphics/gpu/Extensions3DUtil.h" | 46 #include "platform/graphics/gpu/Extensions3DUtil.h" |
| 47 #include "public/platform/WebCanvas.h" | 47 #include "public/platform/WebCanvas.h" |
| 48 #include "public/platform/WebGraphicsContext3D.h" | |
| 49 | 48 |
| 50 namespace blink { | 49 namespace blink { |
| 51 | 50 |
| 52 using namespace HTMLNames; | 51 using namespace HTMLNames; |
| 53 | 52 |
| 54 inline HTMLVideoElement::HTMLVideoElement(Document& document) | 53 inline HTMLVideoElement::HTMLVideoElement(Document& document) |
| 55 : HTMLMediaElement(videoTag, document) | 54 : HTMLMediaElement(videoTag, document) |
| 56 { | 55 { |
| 57 if (document.settings()) | 56 if (document.settings()) |
| 58 m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPoste
rURL()); | 57 m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPoste
rURL()); |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 return ScriptPromise(); | 337 return ScriptPromise(); |
| 339 } | 338 } |
| 340 if (!sw || !sh) { | 339 if (!sw || !sh) { |
| 341 exceptionState.throwDOMException(IndexSizeError, String::format("The sou
rce %s provided is 0.", sw ? "height" : "width")); | 340 exceptionState.throwDOMException(IndexSizeError, String::format("The sou
rce %s provided is 0.", sw ? "height" : "width")); |
| 342 return ScriptPromise(); | 341 return ScriptPromise(); |
| 343 } | 342 } |
| 344 return ImageBitmapSource::fulfillImageBitmap(scriptState, ImageBitmap::creat
e(this, IntRect(sx, sy, sw, sh), eventTarget.toLocalDOMWindow()->document(), opt
ions)); | 343 return ImageBitmapSource::fulfillImageBitmap(scriptState, ImageBitmap::creat
e(this, IntRect(sx, sy, sw, sh), eventTarget.toLocalDOMWindow()->document(), opt
ions)); |
| 345 } | 344 } |
| 346 | 345 |
| 347 } // namespace blink | 346 } // namespace blink |
| OLD | NEW |