Bug 1057642 - Fix some printing call sites that try to print CoordTyped as floats. r=botond

This commit is contained in:
Kartikaya Gupta 2014-08-26 12:05:05 -04:00
parent 4539889330
commit 9a6b73f8cc
4 changed files with 7 additions and 6 deletions

View File

@ -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()) {

View File

@ -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;
}

View File

@ -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);

View File

@ -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,