| 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 10 matching lines...) Expand all Loading... |
| 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 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 "core/layout/LayoutVideo.h" | 26 #include "core/layout/LayoutVideo.h" |
| 27 | 27 |
| 28 #include "core/HTMLNames.h" | 28 #include "core/HTMLNames.h" |
| 29 #include "core/dom/Document.h" | 29 #include "core/dom/Document.h" |
| 30 #include "core/html/HTMLVideoElement.h" | 30 #include "core/html/HTMLVideoElement.h" |
| 31 #include "core/layout/LayoutBlockFlow.h" |
| 31 #include "core/layout/LayoutFullScreen.h" | 32 #include "core/layout/LayoutFullScreen.h" |
| 32 #include "core/layout/LayoutView.h" | |
| 33 #include "core/paint/VideoPainter.h" | 33 #include "core/paint/VideoPainter.h" |
| 34 #include "public/platform/WebLayer.h" | 34 #include "public/platform/WebLayer.h" |
| 35 | 35 |
| 36 namespace blink { | 36 namespace blink { |
| 37 | 37 |
| 38 using namespace HTMLNames; | 38 using namespace HTMLNames; |
| 39 | 39 |
| 40 LayoutVideo::LayoutVideo(HTMLVideoElement* video) | 40 LayoutVideo::LayoutVideo(HTMLVideoElement* video) |
| 41 : LayoutMedia(video) | 41 : LayoutMedia(video) |
| 42 { | 42 { |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 if (element->isFullscreen() && element->usesOverlayFullscreenVideo()) | 244 if (element->isFullscreen() && element->usesOverlayFullscreenVideo()) |
| 245 return CompositingReasonVideo; | 245 return CompositingReasonVideo; |
| 246 | 246 |
| 247 if (shouldDisplayVideo() && supportsAcceleratedRendering()) | 247 if (shouldDisplayVideo() && supportsAcceleratedRendering()) |
| 248 return CompositingReasonVideo; | 248 return CompositingReasonVideo; |
| 249 | 249 |
| 250 return CompositingReasonNone; | 250 return CompositingReasonNone; |
| 251 } | 251 } |
| 252 | 252 |
| 253 } // namespace blink | 253 } // namespace blink |
| OLD | NEW |