Skip to content
Permalink
Browse files
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):


Canonical link: https://commits.webkit.org/176324@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201528 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
alanbujtas committed May 31, 2016
1 parent 7515dba commit b4cf6b7c8bc60a7d9b51e3ad0494c89e43a09a94
Showing with 15 additions and 2 deletions.
  1. +10 −0 Source/WebCore/ChangeLog
  2. +5 −2 Source/WebCore/rendering/RenderObject.cpp
@@ -1,3 +1,13 @@
2016-05-31 Zalan Bujtas <zalan@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.noble@apple.com>

Unreviewed build fix; use ASSERT_UNUSED rather than ASSERT to fix release builds.
@@ -1134,8 +1134,11 @@ void RenderObject::showRenderObject(bool mark, int depth) const
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);

0 comments on commit b4cf6b7

Please sign in to comment.