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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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 |
OLD | NEW |