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 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 #include "config.h" | 26 #include "config.h" |
27 #include "core/layout/LayoutVideo.h" | 27 #include "core/layout/LayoutVideo.h" |
28 | 28 |
29 #include "core/HTMLNames.h" | 29 #include "core/HTMLNames.h" |
30 #include "core/dom/Document.h" | 30 #include "core/dom/Document.h" |
31 #include "core/html/HTMLVideoElement.h" | 31 #include "core/html/HTMLVideoElement.h" |
32 #include "core/layout/LayoutFullScreen.h" | 32 #include "core/layout/LayoutFullScreen.h" |
| 33 #include "core/layout/LayoutView.h" |
33 #include "core/paint/VideoPainter.h" | 34 #include "core/paint/VideoPainter.h" |
34 #include "public/platform/WebLayer.h" | 35 #include "public/platform/WebLayer.h" |
35 | 36 |
36 namespace blink { | 37 namespace blink { |
37 | 38 |
38 using namespace HTMLNames; | 39 using namespace HTMLNames; |
39 | 40 |
40 LayoutVideo::LayoutVideo(HTMLVideoElement* video) | 41 LayoutVideo::LayoutVideo(HTMLVideoElement* video) |
41 : LayoutMedia(video) | 42 : LayoutMedia(video) |
42 { | 43 { |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 if (element->isFullscreen() && element->usesOverlayFullscreenVideo()) | 251 if (element->isFullscreen() && element->usesOverlayFullscreenVideo()) |
251 return CompositingReasonVideo; | 252 return CompositingReasonVideo; |
252 | 253 |
253 if (shouldDisplayVideo() && supportsAcceleratedRendering()) | 254 if (shouldDisplayVideo() && supportsAcceleratedRendering()) |
254 return CompositingReasonVideo; | 255 return CompositingReasonVideo; |
255 | 256 |
256 return CompositingReasonNone; | 257 return CompositingReasonNone; |
257 } | 258 } |
258 | 259 |
259 } // namespace blink | 260 } // namespace blink |
OLD | NEW |