mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 737510 - Print something useful when dumping an ImmutableViewportMetrics. r=Cwiiis
This commit is contained in:
parent
435f59c448
commit
315b043c15
@ -43,9 +43,10 @@ public final class DisplayPortMetrics {
|
|||||||
return sb.toString();
|
return sb.toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return "DisplayPortMetrics(" + mPosition.left + ","
|
return "DisplayPortMetrics v=(" + mPosition.left + ","
|
||||||
+ mPosition.top + "," + mPosition.right + ","
|
+ mPosition.top + "," + mPosition.right + ","
|
||||||
+ mPosition.bottom + "," + mResolution + ")";
|
+ mPosition.bottom + ") z=" + mResolution;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -81,4 +81,11 @@ public class ImmutableViewportMetrics {
|
|||||||
public FloatSize getCssPageSize() {
|
public FloatSize getCssPageSize() {
|
||||||
return new FloatSize(cssPageSizeWidth, cssPageSizeHeight);
|
return new FloatSize(cssPageSizeWidth, cssPageSizeHeight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String toString() {
|
||||||
|
return "ImmutableViewportMetrics v=(" + viewportRectLeft + "," + viewportRectTop + ","
|
||||||
|
+ viewportRectRight + "," + viewportRectBottom + ") p=(" + pageSizeWidth + ","
|
||||||
|
+ pageSizeHeight + ") z=" + zoomFactor;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user