| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
| 5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
| 6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
| 7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
| 8 * | 8 * |
| 9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 fputc(' ', stderr); | 103 fputc(' ', stderr); |
| 104 | 104 |
| 105 showBox(printedCharacters); | 105 showBox(printedCharacters); |
| 106 } | 106 } |
| 107 | 107 |
| 108 void InlineBox::showBox(int printedCharacters) const | 108 void InlineBox::showBox(int printedCharacters) const |
| 109 { | 109 { |
| 110 printedCharacters += fprintf(stderr, "%s\t%p", boxName(), this); | 110 printedCharacters += fprintf(stderr, "%s\t%p", boxName(), this); |
| 111 for (; printedCharacters < showTreeCharacterOffset; printedCharacters++) | 111 for (; printedCharacters < showTreeCharacterOffset; printedCharacters++) |
| 112 fputc(' ', stderr); | 112 fputc(' ', stderr); |
| 113 fprintf(stderr, "\t%s %p\n", renderer().renderName(), &renderer()); | 113 fprintf(stderr, "\t%s %p {pos=%g,%g size=%g,%g} baseline=%i/%i\n", |
| 114 renderer().renderName(), &renderer(), x(), y(), width(), height(), |
| 115 baselinePosition(AlphabeticBaseline), |
| 116 baselinePosition(IdeographicBaseline)); |
| 114 } | 117 } |
| 115 #endif | 118 #endif |
| 116 | 119 |
| 117 float InlineBox::logicalHeight() const | 120 float InlineBox::logicalHeight() const |
| 118 { | 121 { |
| 119 if (hasVirtualLogicalHeight()) | 122 if (hasVirtualLogicalHeight()) |
| 120 return virtualLogicalHeight(); | 123 return virtualLogicalHeight(); |
| 121 | 124 |
| 122 if (renderer().isText()) | 125 if (renderer().isText()) |
| 123 return m_bitfields.isText() ? renderer().style(isFirstLineStyle())->font
Metrics().height() : 0; | 126 return m_bitfields.isText() ? renderer().style(isFirstLineStyle())->font
Metrics().height() : 0; |
| (...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 359 b->showTreeForThis(); | 362 b->showTreeForThis(); |
| 360 } | 363 } |
| 361 | 364 |
| 362 void showLineTree(const WebCore::InlineBox* b) | 365 void showLineTree(const WebCore::InlineBox* b) |
| 363 { | 366 { |
| 364 if (b) | 367 if (b) |
| 365 b->showLineTreeForThis(); | 368 b->showLineTreeForThis(); |
| 366 } | 369 } |
| 367 | 370 |
| 368 #endif | 371 #endif |
| OLD | NEW |