| 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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 | 383 |
| 384 void InlineBox::invalidateDisplayItemClientsRecursively() | 384 void InlineBox::invalidateDisplayItemClientsRecursively() |
| 385 { | 385 { |
| 386 getLineLayoutItem().invalidateDisplayItemClient(*this); | 386 getLineLayoutItem().invalidateDisplayItemClient(*this); |
| 387 if (!isInlineFlowBox()) | 387 if (!isInlineFlowBox()) |
| 388 return; | 388 return; |
| 389 for (InlineBox* child = toInlineFlowBox(this)->firstChild(); child; child =
child->nextOnLine()) | 389 for (InlineBox* child = toInlineFlowBox(this)->firstChild(); child; child =
child->nextOnLine()) |
| 390 child->invalidateDisplayItemClientsRecursively(); | 390 child->invalidateDisplayItemClientsRecursively(); |
| 391 } | 391 } |
| 392 | 392 |
| 393 std::ostream& operator<<(std::ostream& ostream, const InlineBox& inlineBox) |
| 394 { |
| 395 return ostream << inlineBox.debugName(); |
| 396 } |
| 397 |
| 398 std::ostream& operator<<(std::ostream& ostream, InlineBox* inlineBox) |
| 399 { |
| 400 if (!inlineBox) |
| 401 return ostream << "null"; |
| 402 return ostream << *inlineBox; |
| 403 } |
| 404 |
| 393 } // namespace blink | 405 } // namespace blink |
| 394 | 406 |
| 395 #ifndef NDEBUG | 407 #ifndef NDEBUG |
| 396 | 408 |
| 397 void showTree(const blink::InlineBox* b) | 409 void showTree(const blink::InlineBox* b) |
| 398 { | 410 { |
| 399 if (b) | 411 if (b) |
| 400 b->showTreeForThis(); | 412 b->showTreeForThis(); |
| 401 else | 413 else |
| 402 fprintf(stderr, "Cannot showTree for (nil) InlineBox.\n"); | 414 fprintf(stderr, "Cannot showTree for (nil) InlineBox.\n"); |
| 403 } | 415 } |
| 404 | 416 |
| 405 void showLineTree(const blink::InlineBox* b) | 417 void showLineTree(const blink::InlineBox* b) |
| 406 { | 418 { |
| 407 if (b) | 419 if (b) |
| 408 b->showLineTreeForThis(); | 420 b->showLineTreeForThis(); |
| 409 else | 421 else |
| 410 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); | 422 fprintf(stderr, "Cannot showLineTree for (nil) InlineBox.\n"); |
| 411 } | 423 } |
| 412 | 424 |
| 413 #endif | 425 #endif |
| OLD | NEW |