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

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

Issue 1952763002: Move showLineTreeAndMark() to LayoutBlockFlow. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use nullptr Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | 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) 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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after
1636 node()->showTreeForThis(); 1636 node()->showTreeForThis();
1637 } 1637 }
1638 1638
1639 void LayoutObject::showLayoutTreeForThis() const 1639 void LayoutObject::showLayoutTreeForThis() const
1640 { 1640 {
1641 showLayoutTree(this, 0); 1641 showLayoutTree(this, 0);
1642 } 1642 }
1643 1643
1644 void LayoutObject::showLineTreeForThis() const 1644 void LayoutObject::showLineTreeForThis() const
1645 { 1645 {
1646 if (containingBlock()) 1646 if (LayoutBlock* cb = containingBlock()) {
1647 containingBlock()->showLineTreeAndMark(0, 0, 0, 0, this); 1647 if (cb->isLayoutBlockFlow())
1648 toLayoutBlockFlow(cb)->showLineTreeAndMark(nullptr, nullptr, nullptr , nullptr, this);
1649 }
1648 } 1650 }
1649 1651
1650 void LayoutObject::showLayoutObject() const 1652 void LayoutObject::showLayoutObject() const
1651 { 1653 {
1652 showLayoutObject(0); 1654 showLayoutObject(0);
1653 } 1655 }
1654 1656
1655 void LayoutObject::showLayoutObject(int printedCharacters) const 1657 void LayoutObject::showLayoutObject(int printedCharacters) const
1656 { 1658 {
1657 printedCharacters += fprintf(stderr, "%s %p", decoratedName().ascii().data() , this); 1659 printedCharacters += fprintf(stderr, "%s %p", decoratedName().ascii().data() , this);
(...skipping 2030 matching lines...) Expand 10 before | Expand all | Expand 10 after
3688 const blink::LayoutObject* root = object1; 3690 const blink::LayoutObject* root = object1;
3689 while (root->parent()) 3691 while (root->parent())
3690 root = root->parent(); 3692 root = root->parent();
3691 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); 3693 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0);
3692 } else { 3694 } else {
3693 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); 3695 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n");
3694 } 3696 }
3695 } 3697 }
3696 3698
3697 #endif 3699 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698