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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 } | 225 } |
226 | 226 |
227 void RenderLayerCompositor::setCompositingLayersNeedRebuild() | 227 void RenderLayerCompositor::setCompositingLayersNeedRebuild() |
228 { | 228 { |
229 // FIXME: crbug.com/332248 ideally this could be merged with setNeedsComposi
tingUpdate(). | 229 // FIXME: crbug.com/332248 ideally this could be merged with setNeedsComposi
tingUpdate(). |
230 m_compositingLayersNeedRebuild = true; | 230 m_compositingLayersNeedRebuild = true; |
231 page()->animator().scheduleVisualUpdate(); | 231 page()->animator().scheduleVisualUpdate(); |
232 lifecycle().ensureStateAtMost(DocumentLifecycle::LayoutClean); | 232 lifecycle().ensureStateAtMost(DocumentLifecycle::LayoutClean); |
233 } | 233 } |
234 | 234 |
235 static RenderVideo* findFullscreenVideoRenderer(Document& document) | 235 RenderVideo* RenderLayerCompositor::findFullscreenVideoRenderer(Document& docume
nt) |
236 { | 236 { |
237 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d
ocument); | 237 Element* fullscreenElement = FullscreenElementStack::fullscreenElementFrom(d
ocument); |
238 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { | 238 while (fullscreenElement && fullscreenElement->isFrameOwnerElement()) { |
239 Document* contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->
contentDocument(); | 239 Document* contentDocument = toHTMLFrameOwnerElement(fullscreenElement)->
contentDocument(); |
240 if (!contentDocument) | 240 if (!contentDocument) |
241 return 0; | 241 return 0; |
242 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte
ntDocument); | 242 fullscreenElement = FullscreenElementStack::fullscreenElementFrom(*conte
ntDocument); |
243 } | 243 } |
244 if (!isHTMLVideoElement(fullscreenElement)) | 244 if (!isHTMLVideoElement(fullscreenElement)) |
245 return 0; | 245 return 0; |
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 } else if (graphicsLayer == m_scrollLayer.get()) { | 1360 } else if (graphicsLayer == m_scrollLayer.get()) { |
1361 name = "LocalFrame Scrolling Layer"; | 1361 name = "LocalFrame Scrolling Layer"; |
1362 } else { | 1362 } else { |
1363 ASSERT_NOT_REACHED(); | 1363 ASSERT_NOT_REACHED(); |
1364 } | 1364 } |
1365 | 1365 |
1366 return name; | 1366 return name; |
1367 } | 1367 } |
1368 | 1368 |
1369 } // namespace WebCore | 1369 } // namespace WebCore |
OLD | NEW |