OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 | 472 |
473 if (o.posChildNeedsLayout()) { | 473 if (o.posChildNeedsLayout()) { |
474 if (havePrevious) | 474 if (havePrevious) |
475 ts << ","; | 475 ts << ","; |
476 ts << " positioned child"; | 476 ts << " positioned child"; |
477 } | 477 } |
478 | 478 |
479 if (needsLayout) | 479 if (needsLayout) |
480 ts << ")"; | 480 ts << ")"; |
481 } | 481 } |
482 | |
483 #if PLATFORM(QT) | |
484 // Print attributes of embedded QWidgets. E.g. when the WebCore::Widget | |
485 // is invisible the QWidget should be invisible too. | |
486 if (o.isRenderPart()) { | |
487 const RenderPart* part = toRenderPart(const_cast<RenderObject*>(&o)); | |
488 if (part->widget() && part->widget()->platformWidget()) { | |
489 QObject* wid = part->widget()->platformWidget(); | |
490 | |
491 ts << " [QT: "; | |
492 ts << "geometry: {" << wid->property("geometry").toRect() << "} "; | |
493 ts << "isHidden: " << !wid->property("isVisible").toBool() << " "; | |
494 ts << "isSelfVisible: " << part->widget()->isSelfVisible() << " "; | |
495 ts << "isParentVisible: " << part->widget()->isParentVisible() << "
] "; | |
496 } | |
497 } | |
498 #endif | |
499 } | 482 } |
500 | 483 |
501 static void writeTextRun(TextStream& ts, const RenderText& o, const InlineTextBo
x& run) | 484 static void writeTextRun(TextStream& ts, const RenderText& o, const InlineTextBo
x& run) |
502 { | 485 { |
503 // FIXME: For now use an "enclosingIntRect" model for x, y and logicalWidth,
although this makes it harder | 486 // FIXME: For now use an "enclosingIntRect" model for x, y and logicalWidth,
although this makes it harder |
504 // to detect any changes caused by the conversion to floating point. :( | 487 // to detect any changes caused by the conversion to floating point. :( |
505 int x = run.x(); | 488 int x = run.x(); |
506 int y = run.y(); | 489 int y = run.y(); |
507 int logicalWidth = ceilf(run.left() + run.logicalWidth()) - x; | 490 int logicalWidth = ceilf(run.left() + run.logicalWidth()) - x; |
508 | 491 |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 element->document()->updateLayout(); | 898 element->document()->updateLayout(); |
916 | 899 |
917 RenderObject* renderer = element->renderer(); | 900 RenderObject* renderer = element->renderer(); |
918 if (!renderer || !renderer->isListItem()) | 901 if (!renderer || !renderer->isListItem()) |
919 return String(); | 902 return String(); |
920 | 903 |
921 return toRenderListItem(renderer)->markerText(); | 904 return toRenderListItem(renderer)->markerText(); |
922 } | 905 } |
923 | 906 |
924 } // namespace WebCore | 907 } // namespace WebCore |
OLD | NEW |