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

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

Issue 12797016: Merge 144642 "Don't apply page scale to clipRect if applyPageSca..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | 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 750 matching lines...) Expand 10 before | Expand all | Expand 10 after
761 // FIXME: If this layer's overlap bounds include its children, we don't need to add its 761 // FIXME: If this layer's overlap bounds include its children, we don't need to add its
762 // children's bounds to the overlap map. 762 // children's bounds to the overlap map.
763 layerBounds = enclosingIntRect(overlapMap.geometryMap().absoluteRect(lay er->overlapBounds())); 763 layerBounds = enclosingIntRect(overlapMap.geometryMap().absoluteRect(lay er->overlapBounds()));
764 // Empty rects never intersect, but we need them to for the purposes of overlap testing. 764 // Empty rects never intersect, but we need them to for the purposes of overlap testing.
765 if (layerBounds.isEmpty()) 765 if (layerBounds.isEmpty())
766 layerBounds.setSize(IntSize(1, 1)); 766 layerBounds.setSize(IntSize(1, 1));
767 boundsComputed = true; 767 boundsComputed = true;
768 } 768 }
769 769
770 IntRect clipRect = pixelSnappedIntRect(layer->backgroundClipRect(RenderLayer ::ClipRectsContext(rootRenderLayer(), 0, AbsoluteClipRects)).rect()); // FIXME: Incorrect for CSS regions. 770 IntRect clipRect = pixelSnappedIntRect(layer->backgroundClipRect(RenderLayer ::ClipRectsContext(rootRenderLayer(), 0, AbsoluteClipRects)).rect()); // FIXME: Incorrect for CSS regions.
771 clipRect.scale(pageScaleFactor()); 771 if (Settings* settings = m_renderView->document()->settings())
772 if (!settings->applyPageScaleFactorInCompositor())
773 clipRect.scale(pageScaleFactor());
772 clipRect.intersect(layerBounds); 774 clipRect.intersect(layerBounds);
773 overlapMap.add(layer, clipRect); 775 overlapMap.add(layer, clipRect);
774 } 776 }
775 777
776 void RenderLayerCompositor::addToOverlapMapRecursive(OverlapMap& overlapMap, Ren derLayer* layer, RenderLayer* ancestorLayer) 778 void RenderLayerCompositor::addToOverlapMapRecursive(OverlapMap& overlapMap, Ren derLayer* layer, RenderLayer* ancestorLayer)
777 { 779 {
778 if (!canBeComposited(layer) || overlapMap.contains(layer)) 780 if (!canBeComposited(layer) || overlapMap.contains(layer))
779 return; 781 return;
780 782
781 // A null ancestorLayer is an indication that 'layer' has already been pushe d. 783 // A null ancestorLayer is an indication that 'layer' has already been pushe d.
(...skipping 2131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2913 #if ENABLE(RUBBER_BANDING) 2915 #if ENABLE(RUBBER_BANDING)
2914 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); 2916 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas");
2915 info.addMember(m_contentShadowLayer, "contentShadowLayer"); 2917 info.addMember(m_contentShadowLayer, "contentShadowLayer");
2916 #endif 2918 #endif
2917 info.addMember(m_layerUpdater, "layerUpdater"); 2919 info.addMember(m_layerUpdater, "layerUpdater");
2918 } 2920 }
2919 2921
2920 } // namespace WebCore 2922 } // namespace WebCore
2921 2923
2922 #endif // USE(ACCELERATED_COMPOSITING) 2924 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698