mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 21:31:04 +00:00
Bug 1057642 - Fix some printing call sites that try to print CoordTyped as floats. r=botond
This commit is contained in:
parent
2310a16f84
commit
3c19efedf2
@ -1446,7 +1446,8 @@ Layer::PrintInfo(std::stringstream& aStream, const char* aPrefix)
|
||||
aStream << nsPrintfCString(" [hscrollbar=%lld]", GetScrollbarTargetContainerId()).get();
|
||||
}
|
||||
if (GetIsFixedPosition()) {
|
||||
aStream << nsPrintfCString(" [isFixedPosition anchor=%f,%f margin=%f,%f,%f,%f]", mAnchor.x, mAnchor.y,
|
||||
aStream << nsPrintfCString(" [isFixedPosition anchor=%f,%f margin=%f,%f,%f,%f]",
|
||||
mAnchor.x.value, mAnchor.y.value,
|
||||
mMargins.top, mMargins.right, mMargins.bottom, mMargins.left).get();
|
||||
}
|
||||
if (GetIsStickyPosition()) {
|
||||
|
@ -55,7 +55,7 @@ AppendToString(std::stringstream& aStream, const mozilla::gfx::PointTyped<T>& p,
|
||||
const char* pfx="", const char* sfx="")
|
||||
{
|
||||
aStream << pfx;
|
||||
aStream << nsPrintfCString("(x=%f, y=%f)", p.x, p.y).get();
|
||||
aStream << nsPrintfCString("(x=%f, y=%f)", p.x.value, p.y.value).get();
|
||||
aStream << sfx;
|
||||
}
|
||||
|
||||
|
@ -2024,7 +2024,7 @@ const LayerMargin AsyncPanZoomController::CalculatePendingDisplayPort(
|
||||
APZC_LOG_FM(aFrameMetrics,
|
||||
"Calculated displayport as (%f %f %f %f) from velocity (%f %f) paint time %f metrics",
|
||||
displayPort.x, displayPort.y, displayPort.width, displayPort.height,
|
||||
aVelocity.x, aVelocity.y, (float)estimatedPaintDurationMillis);
|
||||
aVelocity.x.value, aVelocity.y.value, (float)estimatedPaintDurationMillis);
|
||||
|
||||
CSSMargin cssMargins;
|
||||
cssMargins.left = -displayPort.x;
|
||||
@ -2492,8 +2492,8 @@ void AsyncPanZoomController::NotifyLayersUpdated(const FrameMetrics& aLayerMetri
|
||||
|
||||
if (scrollOffsetUpdated) {
|
||||
APZC_LOG("%p updating scroll offset from (%f, %f) to (%f, %f)\n", this,
|
||||
mFrameMetrics.GetScrollOffset().x, mFrameMetrics.GetScrollOffset().y,
|
||||
aLayerMetrics.GetScrollOffset().x, aLayerMetrics.GetScrollOffset().y);
|
||||
mFrameMetrics.GetScrollOffset().x.value, mFrameMetrics.GetScrollOffset().y.value,
|
||||
aLayerMetrics.GetScrollOffset().x.value, aLayerMetrics.GetScrollOffset().y.value);
|
||||
|
||||
mFrameMetrics.CopyScrollInfoFrom(aLayerMetrics);
|
||||
|
||||
|
@ -1409,7 +1409,7 @@ ClientTiledLayerBuffer::ComputeProgressiveUpdateRegion(const nsIntRegion& aInval
|
||||
viewTransform);
|
||||
#endif
|
||||
|
||||
TILING_LOG("TILING %p: Progressive update view transform %f %f zoom %f abort %d\n", mThebesLayer, viewTransform.mTranslation.x, viewTransform.mTranslation.y, viewTransform.mScale.scale, abortPaint);
|
||||
TILING_LOG("TILING %p: Progressive update view transform %f %f zoom %f abort %d\n", mThebesLayer, viewTransform.mTranslation.x.value, viewTransform.mTranslation.y.value, viewTransform.mScale.scale, abortPaint);
|
||||
|
||||
if (abortPaint) {
|
||||
// We ignore if front-end wants to abort if this is the first,
|
||||
|
Loading…
Reference in New Issue
Block a user