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

Side by Side Diff: Source/core/paint/DeprecatedPaintLayer.cpp

Issue 1312363003: Do not trigger compositing update on selection gap update for SPv2 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Annotate | Revision Log
« 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) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights reserved.
3 * 3 *
4 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 4 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
5 * 5 *
6 * Other contributors: 6 * Other contributors:
7 * Robert O'Callahan <roc+@cs.cmu.edu> 7 * Robert O'Callahan <roc+@cs.cmu.edu>
8 * David Baron <dbaron@fas.harvard.edu> 8 * David Baron <dbaron@fas.harvard.edu>
9 * Christian Biesinger <cbiesinger@web.de> 9 * Christian Biesinger <cbiesinger@web.de>
10 * Randall Jesup <rjesup@wgate.com> 10 * Randall Jesup <rjesup@wgate.com>
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 if (!depthSortDescendants) 1925 if (!depthSortDescendants)
1926 break; 1926 break;
1927 } 1927 }
1928 } 1928 }
1929 1929
1930 return resultLayer; 1930 return resultLayer;
1931 } 1931 }
1932 1932
1933 void DeprecatedPaintLayer::blockSelectionGapsBoundsChanged() 1933 void DeprecatedPaintLayer::blockSelectionGapsBoundsChanged()
1934 { 1934 {
1935 if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
1936 return;
1937
1935 setNeedsCompositingInputsUpdate(); 1938 setNeedsCompositingInputsUpdate();
1936 } 1939 }
1937 1940
1938 void DeprecatedPaintLayer::addBlockSelectionGapsBounds(const LayoutRect& bounds) 1941 void DeprecatedPaintLayer::addBlockSelectionGapsBounds(const LayoutRect& bounds)
1939 { 1942 {
1940 if (RuntimeEnabledFeatures::selectionPaintingWithoutSelectionGapsEnabled()) 1943 if (RuntimeEnabledFeatures::selectionPaintingWithoutSelectionGapsEnabled())
1941 return; 1944 return;
1942 m_blockSelectionGapsBounds.unite(enclosingIntRect(bounds)); 1945 m_blockSelectionGapsBounds.unite(enclosingIntRect(bounds));
1943 blockSelectionGapsBoundsChanged(); 1946 blockSelectionGapsBoundsChanged();
1944 } 1947 }
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after
2671 2674
2672 void showLayerTree(const blink::LayoutObject* layoutObject) 2675 void showLayerTree(const blink::LayoutObject* layoutObject)
2673 { 2676 {
2674 if (!layoutObject) { 2677 if (!layoutObject) {
2675 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2678 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2676 return; 2679 return;
2677 } 2680 }
2678 showLayerTree(layoutObject->enclosingLayer()); 2681 showLayerTree(layoutObject->enclosingLayer());
2679 } 2682 }
2680 #endif 2683 #endif
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