Skip to content
Snippets Groups Projects
Commit 7f17aea1 authored by Kartikaya Gupta's avatar Kartikaya Gupta
Browse files

Bug 737510 - Print something useful when dumping an ImmutableViewportMetrics. r=Cwiiis

parent d61a9fdc
No related branches found
No related tags found
No related merge requests found
......@@ -43,9 +43,10 @@ public final class DisplayPortMetrics {
return sb.toString();
}
@Override
public String toString() {
return "DisplayPortMetrics(" + mPosition.left + ","
return "DisplayPortMetrics v=(" + mPosition.left + ","
+ mPosition.top + "," + mPosition.right + ","
+ mPosition.bottom + "," + mResolution + ")";
+ mPosition.bottom + ") z=" + mResolution;
}
}
......@@ -81,4 +81,11 @@ public class ImmutableViewportMetrics {
public FloatSize getCssPageSize() {
return new FloatSize(cssPageSizeWidth, cssPageSizeHeight);
}
@Override
public String toString() {
return "ImmutableViewportMetrics v=(" + viewportRectLeft + "," + viewportRectTop + ","
+ viewportRectRight + "," + viewportRectBottom + ") p=(" + pageSizeWidth + ","
+ pageSizeHeight + ") z=" + zoomFactor;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment