Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 1641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1652 node()->showTreeForThis(); | 1652 node()->showTreeForThis(); |
| 1653 } | 1653 } |
| 1654 | 1654 |
| 1655 void LayoutObject::showLayoutTreeForThis() const | 1655 void LayoutObject::showLayoutTreeForThis() const |
| 1656 { | 1656 { |
| 1657 showLayoutTree(this, 0); | 1657 showLayoutTree(this, 0); |
| 1658 } | 1658 } |
| 1659 | 1659 |
| 1660 void LayoutObject::showLineTreeForThis() const | 1660 void LayoutObject::showLineTreeForThis() const |
| 1661 { | 1661 { |
| 1662 if (containingBlock()) | 1662 if (LayoutBlock* cb = containingBlock()) { |
| 1663 containingBlock()->showLineTreeAndMark(0, 0, 0, 0, this); | 1663 if (cb->isLayoutBlockFlow()) |
|
wkorman
2016/05/04 20:30:41
Does this change behavior of what we output at all
mstensho (USE GERRIT)
2016/05/04 20:54:25
In theory, yes. If someone wants to display the li
| |
| 1664 toLayoutBlockFlow(cb)->showLineTreeAndMark(0, 0, 0, 0, this); | |
|
wkorman
2016/05/04 20:30:41
Use nullptr rather than 0. Is it untoward re: cons
mstensho (USE GERRIT)
2016/05/04 20:54:25
Done.
| |
| 1665 } | |
| 1664 } | 1666 } |
| 1665 | 1667 |
| 1666 void LayoutObject::showLayoutObject() const | 1668 void LayoutObject::showLayoutObject() const |
| 1667 { | 1669 { |
| 1668 showLayoutObject(0); | 1670 showLayoutObject(0); |
| 1669 } | 1671 } |
| 1670 | 1672 |
| 1671 void LayoutObject::showLayoutObject(int printedCharacters) const | 1673 void LayoutObject::showLayoutObject(int printedCharacters) const |
| 1672 { | 1674 { |
| 1673 printedCharacters += fprintf(stderr, "%s %p", decoratedName().ascii().data() , this); | 1675 printedCharacters += fprintf(stderr, "%s %p", decoratedName().ascii().data() , this); |
| (...skipping 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3706 const blink::LayoutObject* root = object1; | 3708 const blink::LayoutObject* root = object1; |
| 3707 while (root->parent()) | 3709 while (root->parent()) |
| 3708 root = root->parent(); | 3710 root = root->parent(); |
| 3709 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); | 3711 root->showLayoutTreeAndMark(object1, "*", object2, "-", 0); |
| 3710 } else { | 3712 } else { |
| 3711 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); | 3713 fprintf(stderr, "Cannot showLayoutTree. Root is (nil)\n"); |
| 3712 } | 3714 } |
| 3713 } | 3715 } |
| 3714 | 3716 |
| 3715 #endif | 3717 #endif |
| OLD | NEW |