OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 static RenderVideo* findFullscreenVideoRenderer(Document& document) | 315 static RenderVideo* findFullscreenVideoRenderer(Document& document) |
316 { | 316 { |
317 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d
ocument); | 317 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d
ocument); |
318 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { | 318 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { |
319 Document* contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->
contentDocument(); | 319 Document* contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->
contentDocument(); |
320 if (!contentDocument) | 320 if (!contentDocument) |
321 return 0; | 321 return 0; |
322 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte
ntDocument); | 322 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte
ntDocument); |
323 } | 323 } |
324 if (!fullscreenElement || !fullscreenElement->hasTagName(videoTag)) | 324 if (!isHTMLVideoElement(fullscreenElement)) |
325 return 0; | 325 return 0; |
326 RenderObject* renderer = fullscreenElement->renderer(); | 326 RenderObject* renderer = fullscreenElement->renderer(); |
327 if (!renderer) | 327 if (!renderer) |
328 return 0; | 328 return 0; |
329 return toRenderVideo(renderer); | 329 return toRenderVideo(renderer); |
330 } | 330 } |
331 | 331 |
332 void RenderLayerCompositor::finishCompositingUpdateForFrameTree(LocalFrame* fram
e) | 332 void RenderLayerCompositor::finishCompositingUpdateForFrameTree(LocalFrame* fram
e) |
333 { | 333 { |
334 for (LocalFrame* child = frame->tree().firstChild(); child; child = child->t
ree().nextSibling()) | 334 for (LocalFrame* child = frame->tree().firstChild(); child; child = child->t
ree().nextSibling()) |
(...skipping 1908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2243 } else if (graphicsLayer == m_scrollLayer.get()) { | 2243 } else if (graphicsLayer == m_scrollLayer.get()) { |
2244 name = "LocalFrame Scrolling Layer"; | 2244 name = "LocalFrame Scrolling Layer"; |
2245 } else { | 2245 } else { |
2246 ASSERT_NOT_REACHED(); | 2246 ASSERT_NOT_REACHED(); |
2247 } | 2247 } |
2248 | 2248 |
2249 return name; | 2249 return name; |
2250 } | 2250 } |
2251 | 2251 |
2252 } // namespace WebCore | 2252 } // namespace WebCore |
OLD | NEW |