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

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

Issue 2845773005: Replace ASSERT_NOT_REACHED with NOTREACHED in core/paint (Closed)
Patch Set: Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All rights
3 * reserved. 3 * reserved.
4 * 4 *
5 * Portions are Copyright (C) 1998 Netscape Communications Corporation. 5 * Portions are Copyright (C) 1998 Netscape Communications Corporation.
6 * 6 *
7 * Other contributors: 7 * Other contributors:
8 * Robert O'Callahan <roc+@cs.cmu.edu> 8 * Robert O'Callahan <roc+@cs.cmu.edu>
9 * David Baron <dbaron@fas.harvard.edu> 9 * David Baron <dbaron@fas.harvard.edu>
10 * Christian Biesinger <cbiesinger@web.de> 10 * Christian Biesinger <cbiesinger@web.de>
(...skipping 1788 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 // Now return whether we were inside this layer (this will always be true for 1799 // Now return whether we were inside this layer (this will always be true for
1800 // the root layer). 1800 // the root layer).
1801 return inside_layer; 1801 return inside_layer;
1802 } 1802 }
1803 1803
1804 Node* PaintLayer::EnclosingNode() const { 1804 Node* PaintLayer::EnclosingNode() const {
1805 for (LayoutObject* r = &GetLayoutObject(); r; r = r->Parent()) { 1805 for (LayoutObject* r = &GetLayoutObject(); r; r = r->Parent()) {
1806 if (Node* e = r->GetNode()) 1806 if (Node* e = r->GetNode())
1807 return e; 1807 return e;
1808 } 1808 }
1809 ASSERT_NOT_REACHED(); 1809 NOTREACHED();
1810 return 0; 1810 return 0;
1811 } 1811 }
1812 1812
1813 bool PaintLayer::IsInTopLayer() const { 1813 bool PaintLayer::IsInTopLayer() const {
1814 Node* node = GetLayoutObject().GetNode(); 1814 Node* node = GetLayoutObject().GetNode();
1815 return node && node->IsElementNode() && ToElement(node)->IsInTopLayer(); 1815 return node && node->IsElementNode() && ToElement(node)->IsInTopLayer();
1816 } 1816 }
1817 1817
1818 // Compute the z-offset of the point in the transformState. 1818 // Compute the z-offset of the point in the transformState.
1819 // This is effectively projecting a ray normal to the plane of ancestor, finding 1819 // This is effectively projecting a ray normal to the plane of ancestor, finding
(...skipping 1502 matching lines...) Expand 10 before | Expand all | Expand 10 after
3322 } 3322 }
3323 3323
3324 void showLayerTree(const blink::LayoutObject* layoutObject) { 3324 void showLayerTree(const blink::LayoutObject* layoutObject) {
3325 if (!layoutObject) { 3325 if (!layoutObject) {
3326 LOG(INFO) << "Cannot showLayerTree. Root is (nil)"; 3326 LOG(INFO) << "Cannot showLayerTree. Root is (nil)";
3327 return; 3327 return;
3328 } 3328 }
3329 showLayerTree(layoutObject->EnclosingLayer()); 3329 showLayerTree(layoutObject->EnclosingLayer());
3330 } 3330 }
3331 #endif 3331 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698