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

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

Issue 292743012: Update a stale comment in RenderLayer. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | 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 1890 matching lines...) Expand 10 before | Expand all | Expand 10 after
1901 DisableCompositingQueryAsserts disabler; 1901 DisableCompositingQueryAsserts disabler;
1902 1902
1903 if (compositingState() != NotComposited && compositingState() != PaintsIntoG roupedBacking) { 1903 if (compositingState() != NotComposited && compositingState() != PaintsIntoG roupedBacking) {
1904 // The updatingControlTints() painting pass goes through compositing lay ers, 1904 // The updatingControlTints() painting pass goes through compositing lay ers,
1905 // but we need to ensure that we don't cache clip rects computed with th e wrong root in this case. 1905 // but we need to ensure that we don't cache clip rects computed with th e wrong root in this case.
1906 if (context->updatingControlTints() || (paintingInfo.paintBehavior & Pai ntBehaviorFlattenCompositingLayers)) { 1906 if (context->updatingControlTints() || (paintingInfo.paintBehavior & Pai ntBehaviorFlattenCompositingLayers)) {
1907 paintFlags |= PaintLayerTemporaryClipRects; 1907 paintFlags |= PaintLayerTemporaryClipRects;
1908 } else if (!compositedLayerMapping()->paintsIntoCompositedAncestor() 1908 } else if (!compositedLayerMapping()->paintsIntoCompositedAncestor()
1909 && !shouldDoSoftwarePaint(this, paintFlags & PaintLayerPaintingRefle ction) 1909 && !shouldDoSoftwarePaint(this, paintFlags & PaintLayerPaintingRefle ction)
1910 && !paintForFixedRootBackground(this, paintFlags)) { 1910 && !paintForFixedRootBackground(this, paintFlags)) {
1911 // If this RenderLayer should paint into its own backing, that will be done via CompositedLayerMapping::paintIntoLayer(). 1911 // If this RenderLayer should paint into its own backing, that will be done via CompositedLayerMapping::paintContents()
1912 // and CompositedLayerMapping::doPaintTask().
1912 return; 1913 return;
1913 } 1914 }
1914 } else if (viewportConstrainedNotCompositedReason() == NotCompositedForBound sOutOfView) { 1915 } else if (viewportConstrainedNotCompositedReason() == NotCompositedForBound sOutOfView) {
1915 // Don't paint out-of-view viewport constrained layers (when doing prepa inting) because they will never be visible 1916 // Don't paint out-of-view viewport constrained layers (when doing prepa inting) because they will never be visible
1916 // unless their position or viewport size is changed. 1917 // unless their position or viewport size is changed.
1917 return; 1918 return;
1918 } 1919 }
1919 1920
1920 // Non self-painting leaf layers don't need to be painted as their renderer( ) should properly paint itself. 1921 // Non self-painting leaf layers don't need to be painted as their renderer( ) should properly paint itself.
1921 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant()) 1922 if (!isSelfPaintingLayer() && !hasSelfPaintingLayerDescendant())
(...skipping 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
4021 } 4022 }
4022 } 4023 }
4023 4024
4024 void showLayerTree(const WebCore::RenderObject* renderer) 4025 void showLayerTree(const WebCore::RenderObject* renderer)
4025 { 4026 {
4026 if (!renderer) 4027 if (!renderer)
4027 return; 4028 return;
4028 showLayerTree(renderer->enclosingLayer()); 4029 showLayerTree(renderer->enclosingLayer());
4029 } 4030 }
4030 #endif 4031 #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