Title: [276373] trunk/Source/WebCore
- Revision
- 276373
- Author
- [email protected]
- Date
- 2021-04-21 10:57:23 -0700 (Wed, 21 Apr 2021)
Log Message
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<<):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (276372 => 276373)
--- trunk/Source/WebCore/ChangeLog 2021-04-21 17:43:50 UTC (rev 276372)
+++ trunk/Source/WebCore/ChangeLog 2021-04-21 17:57:23 UTC (rev 276373)
@@ -1,3 +1,15 @@
+2021-04-21 Zalan Bujtas <[email protected]>
+
+ 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<<):
+
2021-04-21 Chris Lord <[email protected]>
DOMException should be Serializable
Modified: trunk/Source/WebCore/rendering/FloatingObjects.cpp (276372 => 276373)
--- trunk/Source/WebCore/rendering/FloatingObjects.cpp 2021-04-21 17:43:50 UTC (rev 276372)
+++ trunk/Source/WebCore/rendering/FloatingObjects.cpp 2021-04-21 17:57:23 UTC (rev 276373)
@@ -116,7 +116,12 @@
TextStream& operator<<(TextStream& stream, const FloatingObject& object)
{
- return stream << &object << " renderer " << &object.renderer() << " " << object.frameRect() << " paintsFloat " << object.paintsFloat() << " shouldPaint " << object.shouldPaint();
+ stream << &object << " renderer " << &object.renderer();
+ if (object.isPlaced())
+ stream << " " << object.frameRect();
+ else
+ stream << " (not placed yet)";
+ return stream << " paintsFloat " << object.paintsFloat() << " shouldPaint " << object.shouldPaint();
}
#endif
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes