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

Side by Side Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 1398443006: Add a release assert to validate that it's frame pointers which are missing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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) 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 886 matching lines...) Expand 10 before | Expand all | Expand 10 after
897 897
898 // Return the enclosingCompositedLayerForPaintInvalidation for the given Layer 898 // Return the enclosingCompositedLayerForPaintInvalidation for the given Layer
899 // including crossing frame boundaries. 899 // including crossing frame boundaries.
900 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidationCrossingFrameBoundarie s() const 900 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidationCrossingFrameBoundarie s() const
901 { 901 {
902 const PaintLayer* layer = this; 902 const PaintLayer* layer = this;
903 PaintLayer* compositedLayer = 0; 903 PaintLayer* compositedLayer = 0;
904 while (!compositedLayer) { 904 while (!compositedLayer) {
905 compositedLayer = layer->enclosingLayerForPaintInvalidation(); 905 compositedLayer = layer->enclosingLayerForPaintInvalidation();
906 if (!compositedLayer) { 906 if (!compositedLayer) {
907 RELEASE_ASSERT(layer->layoutObject()->frame());
907 LayoutObject* owner = layer->layoutObject()->frame()->ownerLayoutObj ect(); 908 LayoutObject* owner = layer->layoutObject()->frame()->ownerLayoutObj ect();
908 if (!owner) 909 if (!owner)
909 break; 910 break;
910 layer = owner->enclosingLayer(); 911 layer = owner->enclosingLayer();
911 } 912 }
912 } 913 }
913 return compositedLayer; 914 return compositedLayer;
914 } 915 }
915 916
916 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidation() const 917 PaintLayer* PaintLayer::enclosingLayerForPaintInvalidation() const
(...skipping 1836 matching lines...) Expand 10 before | Expand all | Expand 10 after
2753 2754
2754 void showLayerTree(const blink::LayoutObject* layoutObject) 2755 void showLayerTree(const blink::LayoutObject* layoutObject)
2755 { 2756 {
2756 if (!layoutObject) { 2757 if (!layoutObject) {
2757 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n"); 2758 fprintf(stderr, "Cannot showLayerTree. Root is (nil)\n");
2758 return; 2759 return;
2759 } 2760 }
2760 showLayerTree(layoutObject->enclosingLayer()); 2761 showLayerTree(layoutObject->enclosingLayer());
2761 } 2762 }
2762 #endif 2763 #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