mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00
Bug 712037 - Add a toString() method on the viewport. r=Cwiiis
This commit is contained in:
parent
d3f1f7565c
commit
2445917fbe
@ -259,5 +259,16 @@ public class ViewportMetrics {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
StringBuffer buff = new StringBuffer(128);
|
||||
buff.append("v=").append(mViewportRect.toString())
|
||||
.append(" p=").append(mPageSize.toString())
|
||||
.append(" z=").append(mZoomFactor)
|
||||
.append(" o=").append(mViewportOffset.x)
|
||||
.append(',').append(mViewportOffset.y);
|
||||
return buff.toString();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user