Modified: trunk/Source/WebCore/ChangeLog (201527 => 201528)
--- trunk/Source/WebCore/ChangeLog 2016-05-31 21:47:05 UTC (rev 201527)
+++ trunk/Source/WebCore/ChangeLog 2016-05-31 21:56:50 UTC (rev 201528)
@@ -1,3 +1,13 @@
+2016-05-31 Zalan Bujtas <[email protected]>
+
+ ShowRenderTree: Print location information for relative/sticky inlines.
+ https://bugs.webkit.org/show_bug.cgi?id=158235
+
+ Reviewed by David Hyatt.
+
+ * rendering/RenderObject.cpp:
+ (WebCore::RenderObject::showRenderObject):
+
2016-05-31 Jer Noble <[email protected]>
Unreviewed build fix; use ASSERT_UNUSED rather than ASSERT to fix release builds.
Modified: trunk/Source/WebCore/rendering/RenderObject.cpp (201527 => 201528)
--- trunk/Source/WebCore/rendering/RenderObject.cpp 2016-05-31 21:47:05 UTC (rev 201527)
+++ trunk/Source/WebCore/rendering/RenderObject.cpp 2016-05-31 21:56:50 UTC (rev 201528)
@@ -1134,8 +1134,11 @@
fprintf(stderr, "%s", name.utf8().data());
if (is<RenderBox>(*this)) {
- const auto& box = downcast<RenderBox>(*this);
- fprintf(stderr, " (%.2f, %.2f) (%.2f, %.2f)", box.x().toFloat(), box.y().toFloat(), box.width().toFloat(), box.height().toFloat());
+ FloatRect boxRect = downcast<RenderBox>(*this).frameRect();
+ fprintf(stderr, " (%.2f, %.2f) (%.2f, %.2f)", boxRect.x(), boxRect.y(), boxRect.width(), boxRect.height());
+ } else if (is<RenderInline>(*this) && isInFlowPositioned()) {
+ FloatSize inlineOffset = downcast<RenderInline>(*this).offsetForInFlowPosition();
+ fprintf(stderr, " (%.2f, %.2f)", inlineOffset.width(), inlineOffset.height());
}
fprintf(stderr, " renderer->(%p)", this);