OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 if (RuntimeEnabledFeatures::cssCompositingEnabled()) | 495 if (RuntimeEnabledFeatures::cssCompositingEnabled()) |
496 updateLayerBlendMode(renderer()->style()); | 496 updateLayerBlendMode(renderer()->style()); |
497 | 497 |
498 bool isSimpleContainer = isSimpleContainerCompositingLayer(); | 498 bool isSimpleContainer = isSimpleContainerCompositingLayer(); |
499 | 499 |
500 m_owningLayer->updateDescendantDependentFlags(); | 500 m_owningLayer->updateDescendantDependentFlags(); |
501 | 501 |
502 // m_graphicsLayer is the corresponding GraphicsLayer for this RenderLayer a
nd its non-compositing | 502 // m_graphicsLayer is the corresponding GraphicsLayer for this RenderLayer a
nd its non-compositing |
503 // descendants. So, the visibility flag for m_graphicsLayer should be true i
f there are any | 503 // descendants. So, the visibility flag for m_graphicsLayer should be true i
f there are any |
504 // non-compositing visible layers. | 504 // non-compositing visible layers. |
505 m_graphicsLayer->setContentsVisible(m_owningLayer->hasVisibleContent() || ha
sVisibleNonCompositingDescendantLayers()); | 505 bool contentsVisible = m_owningLayer->hasVisibleContent() || hasVisibleNonCo
mpositingDescendantLayers(); |
| 506 if (RuntimeEnabledFeatures::overlayFullscreenVideoEnabled() && renderer()->i
sVideo()) { |
| 507 HTMLMediaElement* mediaElement = toHTMLMediaElement(renderer()->node()); |
| 508 if (mediaElement->isFullscreen()) |
| 509 contentsVisible = false; |
| 510 } |
| 511 m_graphicsLayer->setContentsVisible(contentsVisible); |
506 | 512 |
507 RenderStyle* style = renderer()->style(); | 513 RenderStyle* style = renderer()->style(); |
508 // FIXME: reflections should force transform-style to be flat in the style:
https://bugs.webkit.org/show_bug.cgi?id=106959 | 514 // FIXME: reflections should force transform-style to be flat in the style:
https://bugs.webkit.org/show_bug.cgi?id=106959 |
509 bool preserves3D = style->transformStyle3D() == TransformStyle3DPreserve3D &
& !renderer()->hasReflection(); | 515 bool preserves3D = style->transformStyle3D() == TransformStyle3DPreserve3D &
& !renderer()->hasReflection(); |
510 m_graphicsLayer->setPreserves3D(preserves3D); | 516 m_graphicsLayer->setPreserves3D(preserves3D); |
511 m_graphicsLayer->setBackfaceVisibility(style->backfaceVisibility() == Backfa
ceVisibilityVisible); | 517 m_graphicsLayer->setBackfaceVisibility(style->backfaceVisibility() == Backfa
ceVisibilityVisible); |
512 | 518 |
513 RenderLayer* compAncestor = m_owningLayer->ancestorCompositingLayer(); | 519 RenderLayer* compAncestor = m_owningLayer->ancestorCompositingLayer(); |
514 | 520 |
515 // We compute everything relative to the enclosing compositing layer. | 521 // We compute everything relative to the enclosing compositing layer. |
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1929 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { | 1935 } else if (graphicsLayer == m_scrollingContentsLayer.get()) { |
1930 name = "Scrolling Contents Layer"; | 1936 name = "Scrolling Contents Layer"; |
1931 } else { | 1937 } else { |
1932 ASSERT_NOT_REACHED(); | 1938 ASSERT_NOT_REACHED(); |
1933 } | 1939 } |
1934 | 1940 |
1935 return name; | 1941 return name; |
1936 } | 1942 } |
1937 | 1943 |
1938 } // namespace WebCore | 1944 } // namespace WebCore |
OLD | NEW |