| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 #include "platform/graphics/gpu/Extensions3DUtil.h" | 47 #include "platform/graphics/gpu/Extensions3DUtil.h" |
| 48 #include "public/platform/WebCanvas.h" | 48 #include "public/platform/WebCanvas.h" |
| 49 #include <memory> | 49 #include <memory> |
| 50 | 50 |
| 51 namespace blink { | 51 namespace blink { |
| 52 | 52 |
| 53 using namespace HTMLNames; | 53 using namespace HTMLNames; |
| 54 | 54 |
| 55 inline HTMLVideoElement::HTMLVideoElement(Document& document) | 55 inline HTMLVideoElement::HTMLVideoElement(Document& document) |
| 56 : HTMLMediaElement(videoTag, document) { | 56 : HTMLMediaElement(videoTag, document) { |
| 57 if (document.settings()) | 57 if (document.settings()) { |
| 58 m_defaultPosterURL = | 58 m_defaultPosterURL = |
| 59 AtomicString(document.settings()->defaultVideoPosterURL()); | 59 AtomicString(document.settings()->getDefaultVideoPosterURL()); |
| 60 } |
| 60 } | 61 } |
| 61 | 62 |
| 62 HTMLVideoElement* HTMLVideoElement::create(Document& document) { | 63 HTMLVideoElement* HTMLVideoElement::create(Document& document) { |
| 63 HTMLVideoElement* video = new HTMLVideoElement(document); | 64 HTMLVideoElement* video = new HTMLVideoElement(document); |
| 64 video->ensureUserAgentShadowRoot(); | 65 video->ensureUserAgentShadowRoot(); |
| 65 video->suspendIfNeeded(); | 66 video->suspendIfNeeded(); |
| 66 return video; | 67 return video; |
| 67 } | 68 } |
| 68 | 69 |
| 69 DEFINE_TRACE(HTMLVideoElement) { | 70 DEFINE_TRACE(HTMLVideoElement) { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 376 return ScriptPromise(); | 377 return ScriptPromise(); |
| 377 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) | 378 if (!ImageBitmap::isResizeOptionValid(options, exceptionState)) |
| 378 return ScriptPromise(); | 379 return ScriptPromise(); |
| 379 return ImageBitmapSource::fulfillImageBitmap( | 380 return ImageBitmapSource::fulfillImageBitmap( |
| 380 scriptState, | 381 scriptState, |
| 381 ImageBitmap::create(this, cropRect, | 382 ImageBitmap::create(this, cropRect, |
| 382 eventTarget.toLocalDOMWindow()->document(), options)); | 383 eventTarget.toLocalDOMWindow()->document(), options)); |
| 383 } | 384 } |
| 384 | 385 |
| 385 } // namespace blink | 386 } // namespace blink |
| OLD | NEW |