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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2293703002: Refactor Node::showTree*() functions. (Closed)
Patch Set: Created 4 years, 3 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after
1275 1275
1276 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior) 1276 void LayoutObject::dirtyLinesFromChangedChild(LayoutObject*, MarkingBehavior)
1277 { 1277 {
1278 } 1278 }
1279 1279
1280 #ifndef NDEBUG 1280 #ifndef NDEBUG
1281 1281
1282 void LayoutObject::showTreeForThis() const 1282 void LayoutObject::showTreeForThis() const
1283 { 1283 {
1284 if (node()) 1284 if (node())
1285 node()->showTreeForThis(); 1285 ::showTree(node());
1286 } 1286 }
1287 1287
1288 void LayoutObject::showLayoutTreeForThis() const 1288 void LayoutObject::showLayoutTreeForThis() const
1289 { 1289 {
1290 showLayoutTree(this, 0); 1290 showLayoutTree(this, 0);
1291 } 1291 }
1292 1292
1293 void LayoutObject::showLineTreeForThis() const 1293 void LayoutObject::showLineTreeForThis() const
1294 { 1294 {
1295 if (LayoutBlock* cb = containingBlock()) { 1295 if (LayoutBlock* cb = containingBlock()) {
(...skipping 1935 matching lines...) Expand 10 before | Expand all | Expand 10 after
3231 const blink::LayoutObject* root = object1; 3231 const blink::LayoutObject* root = object1;
3232 while (root->parent()) 3232 while (root->parent())
3233 root = root->parent(); 3233 root = root->parent();
3234 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3234 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3235 } else { 3235 } else {
3236 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)"); 3236 WTFLogAlways("%s", "Cannot showLayoutTree. Root is (nil)");
3237 } 3237 }
3238 } 3238 }
3239 3239
3240 #endif 3240 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698