| Index: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
|
| diff --git a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
|
| index e5a582cafae3d606560846122918c0ebdd1ad4d4..cd85476993f3c09134223e43d6115fd320605746 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp
|
| @@ -789,8 +789,10 @@ String externalRepresentation(LocalFrame* frame, LayoutAsTextBehavior behavior)
|
| return String();
|
|
|
| PrintContext printContext(frame);
|
| - if (behavior & LayoutAsTextPrintingMode)
|
| - printContext.begin(toLayoutBox(layoutObject)->size().width().toFloat());
|
| + if (behavior & LayoutAsTextPrintingMode) {
|
| + FloatSize size(toLayoutBox(layoutObject)->size());
|
| + printContext.begin(size.width(), size.height());
|
| + }
|
|
|
| return externalRepresentation(toLayoutBox(layoutObject), behavior);
|
| }
|
|
|