| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 {pos=%g,%g size=%g,%g} baseline=%i/%i\n", | 113 fprintf(stderr, "\t%s %p {pos=%g,%g size=%g,%g} baseline=%i/%i\n", |
| 114 renderer().renderName(), &renderer(), x(), y(), width(), height(), | 114 renderer().renderName(), &renderer(), WILL_BE_LAYOUT_UNIT_TO_FLOAT(x()),
WILL_BE_LAYOUT_UNIT_TO_FLOAT(y()), WILL_BE_LAYOUT_UNIT_TO_FLOAT(width()), WILL_
BE_LAYOUT_UNIT_TO_FLOAT(height()), |
| 115 baselinePosition(AlphabeticBaseline), | 115 baselinePosition(AlphabeticBaseline), |
| 116 baselinePosition(IdeographicBaseline)); | 116 baselinePosition(IdeographicBaseline)); |
| 117 } | 117 } |
| 118 #endif | 118 #endif |
| 119 | 119 |
| 120 FloatWillBeLayoutUnit InlineBox::logicalHeight() const | 120 FloatWillBeLayoutUnit InlineBox::logicalHeight() const |
| 121 { | 121 { |
| 122 if (hasVirtualLogicalHeight()) | 122 if (hasVirtualLogicalHeight()) |
| 123 return virtualLogicalHeight(); | 123 return virtualLogicalHeight(); |
| 124 | 124 |
| (...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 b->showTreeForThis(); | 356 b->showTreeForThis(); |
| 357 } | 357 } |
| 358 | 358 |
| 359 void showLineTree(const blink::InlineBox* b) | 359 void showLineTree(const blink::InlineBox* b) |
| 360 { | 360 { |
| 361 if (b) | 361 if (b) |
| 362 b->showLineTreeForThis(); | 362 b->showLineTreeForThis(); |
| 363 } | 363 } |
| 364 | 364 |
| 365 #endif | 365 #endif |
| OLD | NEW |