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

Side by Side Diff: Source/core/rendering/RenderLayerCompositor.cpp

Issue 15012010: Remove the CSS_COMPOSITING define, leaving the implementation under the runtime flag, since runtime… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed bogus test Created 7 years, 7 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 | « Source/core/rendering/RenderLayerBacking.cpp ('k') | Source/core/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 1900 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderLayerBacking.cpp ('k') | Source/core/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698