Skip to content

Commit 99f888f

Browse files
committed
Enable mid-layout render tree dump with floating boxes
https://bugs.webkit.org/show_bug.cgi?id=224878 Reviewed by Simon Fraser. Floating box geometry dump requires the box to be placed first (see assert(isPlaced()) in FloatingObject::frameRect()). * rendering/FloatingObjects.cpp: (WebCore::operator<<): Canonical link: https://commits.webkit.org/236850@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@276373 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 1b739e7 commit 99f888f

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

Source/WebCore/ChangeLog

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
2021-04-21 Zalan Bujtas <zalan@apple.com>
2+
3+
Enable mid-layout render tree dump with floating boxes
4+
https://bugs.webkit.org/show_bug.cgi?id=224878
5+
6+
Reviewed by Simon Fraser.
7+
8+
Floating box geometry dump requires the box to be placed first (see assert(isPlaced()) in FloatingObject::frameRect()).
9+
10+
* rendering/FloatingObjects.cpp:
11+
(WebCore::operator<<):
12+
113
2021-04-21 Chris Lord <clord@igalia.com>
214

315
DOMException should be Serializable

Source/WebCore/rendering/FloatingObjects.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,12 @@ LayoutSize FloatingObject::translationOffsetToAncestor() const
116116

117117
TextStream& operator<<(TextStream& stream, const FloatingObject& object)
118118
{
119-
return stream << &object << " renderer " << &object.renderer() << " " << object.frameRect() << " paintsFloat " << object.paintsFloat() << " shouldPaint " << object.shouldPaint();
119+
stream << &object << " renderer " << &object.renderer();
120+
if (object.isPlaced())
121+
stream << " " << object.frameRect();
122+
else
123+
stream << " (not placed yet)";
124+
return stream << " paintsFloat " << object.paintsFloat() << " shouldPaint " << object.shouldPaint();
120125
}
121126

122127
#endif

0 commit comments

Comments
 (0)