Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(566)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp

Issue 1413573004: Set page height for printing tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back out patch set 4 and mark tests with NeedsManualRebaseline. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/printing/forced-break-tree-dump-only.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « third_party/WebKit/LayoutTests/printing/forced-break-tree-dump-only.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698