Bug 1208584 - Silence unconstrained size warning by default. r=jfkthame

--HG--
extra : rebase_source : 910f4075078362dc28e15ce34e64a89f6aa639b2
This commit is contained in:
Eric Rahm 2016-01-05 15:46:43 -08:00
Родитель b66e705f39
Коммит b73c259457
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -116,6 +116,7 @@
#include "nsAnimationManager.h"
#include "nsTransitionManager.h"
#include "RestyleManager.h"
#include "LayoutLogging.h"
// Make sure getpid() works.
#ifdef XP_WIN
@ -4897,10 +4898,10 @@ nsLayoutUtils::ComputeISizeValue(
{
NS_PRECONDITION(aFrame, "non-null frame expected");
NS_PRECONDITION(aRenderingContext, "non-null rendering context expected");
NS_WARN_IF_FALSE(aContainingBlockISize != NS_UNCONSTRAINEDSIZE,
"have unconstrained inline-size; this should only result from "
"very large sizes, not attempts at intrinsic inline-size "
"calculation");
LAYOUT_WARN_IF_FALSE(aContainingBlockISize != NS_UNCONSTRAINEDSIZE,
"have unconstrained inline-size; this should only result from "
"very large sizes, not attempts at intrinsic inline-size "
"calculation");
NS_PRECONDITION(aContainingBlockISize >= 0,
"inline-size less than zero");