Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: WebCore/rendering/RenderLayerCompositor.cpp

Issue 14295007: Remove the CSS_COMPOSITING define, the CSS blending and compositing (Closed) Base URL: http://src.chromium.org/blink/trunk/Source/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « WebCore/rendering/RenderLayerBacking.cpp ('k') | WebCore/rendering/RenderObject.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1876 1876
1877 return renderer->hasFilter(); 1877 return renderer->hasFilter();
1878 #else 1878 #else
1879 UNUSED_PARAM(renderer); 1879 UNUSED_PARAM(renderer);
1880 return false; 1880 return false;
1881 #endif 1881 #endif
1882 } 1882 }
1883 1883
1884 bool RenderLayerCompositor::requiresCompositingForBlending(RenderObject* rendere r) const 1884 bool RenderLayerCompositor::requiresCompositingForBlending(RenderObject* rendere r) const
1885 { 1885 {
1886 #if ENABLE(CSS_COMPOSITING)
1887 return renderer->hasBlendMode(); 1886 return renderer->hasBlendMode();
1888 #else
1889 UNUSED_PARAM(renderer);
1890 return false;
1891 #endif
1892 } 1887 }
1893 1888
1894 bool RenderLayerCompositor::requiresCompositingForPosition(RenderObject* rendere r, const RenderLayer* layer, RenderLayer::ViewportConstrainedNotCompositedReason * viewportConstrainedNotCompositedReason) const 1889 bool RenderLayerCompositor::requiresCompositingForPosition(RenderObject* rendere r, const RenderLayer* layer, RenderLayer::ViewportConstrainedNotCompositedReason * viewportConstrainedNotCompositedReason) const
1895 { 1890 {
1896 // position:fixed elements that create their own stacking context (e.g. have an explicit z-index, 1891 // position:fixed elements that create their own stacking context (e.g. have an explicit z-index,
1897 // opacity, transform) can get their own composited layer. A stacking contex t is required otherwise 1892 // opacity, transform) can get their own composited layer. A stacking contex t is required otherwise
1898 // z-index and clipping will be broken. 1893 // z-index and clipping will be broken.
1899 if (!renderer->isPositioned()) 1894 if (!renderer->isPositioned())
1900 return false; 1895 return false;
1901 1896
(...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after
2778 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); 2773 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas");
2779 info.addMember(m_contentShadowLayer, "contentShadowLayer"); 2774 info.addMember(m_contentShadowLayer, "contentShadowLayer");
2780 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); 2775 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea");
2781 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); 2776 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea");
2782 info.addMember(m_layerForHeader, "layerForHeader"); 2777 info.addMember(m_layerForHeader, "layerForHeader");
2783 info.addMember(m_layerForFooter, "layerForFooter"); 2778 info.addMember(m_layerForFooter, "layerForFooter");
2784 #endif 2779 #endif
2785 } 2780 }
2786 2781
2787 } // namespace WebCore 2782 } // namespace WebCore
OLDNEW
« no previous file with comments | « WebCore/rendering/RenderLayerBacking.cpp ('k') | WebCore/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698