| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 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 12 matching lines...) Expand all Loading... |
| 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #ifndef RenderVideo_h | 26 #ifndef RenderVideo_h |
| 27 #define RenderVideo_h | 27 #define RenderVideo_h |
| 28 | 28 |
| 29 #include "core/rendering/RenderMedia.h" | 29 #include "core/rendering/RenderMedia.h" |
| 30 | 30 |
| 31 namespace WebCore { | 31 namespace WebCore { |
| 32 | 32 |
| 33 class HTMLMediaElement; | |
| 34 class HTMLVideoElement; | 33 class HTMLVideoElement; |
| 35 | 34 |
| 36 class RenderVideo FINAL : public RenderMedia { | 35 class RenderVideo FINAL : public RenderMedia { |
| 37 public: | 36 public: |
| 38 RenderVideo(HTMLVideoElement*); | 37 RenderVideo(HTMLVideoElement*); |
| 39 virtual ~RenderVideo(); | 38 virtual ~RenderVideo(); |
| 40 | 39 |
| 41 IntRect videoBox() const; | 40 IntRect videoBox() const; |
| 42 | 41 |
| 43 static IntSize defaultSize(); | 42 static IntSize defaultSize(); |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 bool acceleratedRenderingInUse(); | 79 bool acceleratedRenderingInUse(); |
| 81 | 80 |
| 82 LayoutSize m_cachedImageSize; | 81 LayoutSize m_cachedImageSize; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderVideo, isVideo()); | 84 DEFINE_RENDER_OBJECT_TYPE_CASTS(RenderVideo, isVideo()); |
| 86 | 85 |
| 87 } // namespace WebCore | 86 } // namespace WebCore |
| 88 | 87 |
| 89 #endif // RenderVideo_h | 88 #endif // RenderVideo_h |
| OLD | NEW |