Title: [201528] trunk/Source/WebCore
Revision
201528
Author
za...@apple.com
Date
2016-05-31 14:56:50 -0700 (Tue, 31 May 2016)

Log Message

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):

Modified Paths

Diff

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  <za...@apple.com>
+
+        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  <jer.no...@apple.com>
 
         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);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to