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
4bccf87c66
commit
c49b3b664f
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user