| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPoste
rURL()); | 54 m_defaultPosterURL = AtomicString(document.settings()->defaultVideoPoste
rURL()); |
| 55 } | 55 } |
| 56 | 56 |
| 57 PassRefPtr<HTMLVideoElement> HTMLVideoElement::create(Document& document) | 57 PassRefPtr<HTMLVideoElement> HTMLVideoElement::create(Document& document) |
| 58 { | 58 { |
| 59 RefPtr<HTMLVideoElement> video = adoptRef(new HTMLVideoElement(document)); | 59 RefPtr<HTMLVideoElement> video = adoptRef(new HTMLVideoElement(document)); |
| 60 video->suspendIfNeeded(); | 60 video->suspendIfNeeded(); |
| 61 return video.release(); | 61 return video.release(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void HTMLVideoElement::trace(Visitor* visitor) | |
| 65 { | |
| 66 visitor->trace(m_imageLoader); | |
| 67 HTMLMediaElement::trace(visitor); | |
| 68 } | |
| 69 | |
| 70 bool HTMLVideoElement::rendererIsNeeded(const RenderStyle& style) | 64 bool HTMLVideoElement::rendererIsNeeded(const RenderStyle& style) |
| 71 { | 65 { |
| 72 return HTMLElement::rendererIsNeeded(style); | 66 return HTMLElement::rendererIsNeeded(style); |
| 73 } | 67 } |
| 74 | 68 |
| 75 RenderObject* HTMLVideoElement::createRenderer(RenderStyle*) | 69 RenderObject* HTMLVideoElement::createRenderer(RenderStyle*) |
| 76 { | 70 { |
| 77 return new RenderVideo(this); | 71 return new RenderVideo(this); |
| 78 } | 72 } |
| 79 | 73 |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 *status = NormalSourceImageStatus; | 229 *status = NormalSourceImageStatus; |
| 236 return imageBuffer->copyImage(mode == CopySourceImageIfVolatile ? CopyBackin
gStore : DontCopyBackingStore, Unscaled); | 230 return imageBuffer->copyImage(mode == CopySourceImageIfVolatile ? CopyBackin
gStore : DontCopyBackingStore, Unscaled); |
| 237 } | 231 } |
| 238 | 232 |
| 239 FloatSize HTMLVideoElement::sourceSize() const | 233 FloatSize HTMLVideoElement::sourceSize() const |
| 240 { | 234 { |
| 241 return FloatSize(videoWidth(), videoHeight()); | 235 return FloatSize(videoWidth(), videoHeight()); |
| 242 } | 236 } |
| 243 | 237 |
| 244 } | 238 } |
| OLD | NEW |