| 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 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1911 bool RenderLayerCompositor::requiresCompositingForFilters(RenderObject* renderer
) const | 1911 bool RenderLayerCompositor::requiresCompositingForFilters(RenderObject* renderer
) const |
| 1912 { | 1912 { |
| 1913 if (!(m_compositingTriggers & ChromeClient::FilterTrigger)) | 1913 if (!(m_compositingTriggers & ChromeClient::FilterTrigger)) |
| 1914 return false; | 1914 return false; |
| 1915 | 1915 |
| 1916 return renderer->hasFilter(); | 1916 return renderer->hasFilter(); |
| 1917 } | 1917 } |
| 1918 | 1918 |
| 1919 bool RenderLayerCompositor::requiresCompositingForBlending(RenderObject* rendere
r) const | 1919 bool RenderLayerCompositor::requiresCompositingForBlending(RenderObject* rendere
r) const |
| 1920 { | 1920 { |
| 1921 #if ENABLE(CSS_COMPOSITING) | |
| 1922 return renderer->hasBlendMode(); | 1921 return renderer->hasBlendMode(); |
| 1923 #else | |
| 1924 UNUSED_PARAM(renderer); | |
| 1925 return false; | |
| 1926 #endif | |
| 1927 } | 1922 } |
| 1928 | 1923 |
| 1929 bool RenderLayerCompositor::requiresCompositingForPosition(RenderObject* rendere
r, const RenderLayer* layer, RenderLayer::ViewportConstrainedNotCompositedReason
* viewportConstrainedNotCompositedReason) const | 1924 bool RenderLayerCompositor::requiresCompositingForPosition(RenderObject* rendere
r, const RenderLayer* layer, RenderLayer::ViewportConstrainedNotCompositedReason
* viewportConstrainedNotCompositedReason) const |
| 1930 { | 1925 { |
| 1931 // position:fixed elements that create their own stacking context (e.g. have
an explicit z-index, | 1926 // position:fixed elements that create their own stacking context (e.g. have
an explicit z-index, |
| 1932 // opacity, transform) can get their own composited layer. A stacking contex
t is required otherwise | 1927 // opacity, transform) can get their own composited layer. A stacking contex
t is required otherwise |
| 1933 // z-index and clipping will be broken. | 1928 // z-index and clipping will be broken. |
| 1934 if (!renderer->isPositioned()) | 1929 if (!renderer->isPositioned()) |
| 1935 return false; | 1930 return false; |
| 1936 | 1931 |
| (...skipping 846 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2783 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); | 2778 info.addMember(m_layerForScrollCorner, "layerForScrollCorner"); |
| 2784 #if ENABLE(RUBBER_BANDING) | 2779 #if ENABLE(RUBBER_BANDING) |
| 2785 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); | 2780 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); |
| 2786 info.addMember(m_contentShadowLayer, "contentShadowLayer"); | 2781 info.addMember(m_contentShadowLayer, "contentShadowLayer"); |
| 2787 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); | 2782 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); |
| 2788 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); | 2783 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); |
| 2789 #endif | 2784 #endif |
| 2790 } | 2785 } |
| 2791 | 2786 |
| 2792 } // namespace WebCore | 2787 } // namespace WebCore |
| OLD | NEW |