mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 641393 patch 2: Make namespacing style consistent across SVG List classes, and replace some Length==0 checks with IsEmpty(). r=jwatt
This commit is contained in:
parent
f228ce35af
commit
d6b2f34020
@ -43,7 +43,7 @@
|
|||||||
#include "SVGNumberListSMILType.h"
|
#include "SVGNumberListSMILType.h"
|
||||||
#endif // MOZ_SMIL
|
#endif // MOZ_SMIL
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
SVGAnimatedNumberList::SetBaseValueString(const nsAString& aValue)
|
SVGAnimatedNumberList::SetBaseValueString(const nsAString& aValue)
|
||||||
@ -214,3 +214,5 @@ SVGAnimatedNumberList::SMILAnimatedNumberList::ClearAnimValue()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif // MOZ_SMIL
|
#endif // MOZ_SMIL
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
// See the comments in this file's header!
|
// See the comments in this file's header!
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
SVGAnimatedPathSegList::SetBaseValueString(const nsAString& aValue)
|
SVGAnimatedPathSegList::SetBaseValueString(const nsAString& aValue)
|
||||||
@ -238,3 +238,4 @@ SVGAnimatedPathSegList::SMILAnimatedPathSegList::ClearAnimValue()
|
|||||||
}
|
}
|
||||||
#endif // MOZ_SMIL
|
#endif // MOZ_SMIL
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -45,7 +45,7 @@
|
|||||||
|
|
||||||
// See the comments in this file's header!
|
// See the comments in this file's header!
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
SVGAnimatedPointList::SetBaseValueString(const nsAString& aValue)
|
SVGAnimatedPointList::SetBaseValueString(const nsAString& aValue)
|
||||||
@ -241,3 +241,4 @@ SVGAnimatedPointList::SMILAnimatedPointList::ClearAnimValue()
|
|||||||
}
|
}
|
||||||
#endif // MOZ_SMIL
|
#endif // MOZ_SMIL
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -181,8 +181,8 @@ SVGLengthListSMILType::ComputeDistance(const nsSMILValue& aFrom,
|
|||||||
// and documenting SVGLengthListAndInfo::CanZeroPadList().
|
// and documenting SVGLengthListAndInfo::CanZeroPadList().
|
||||||
|
|
||||||
NS_ASSERTION((from.CanZeroPadList() == to.CanZeroPadList()) ||
|
NS_ASSERTION((from.CanZeroPadList() == to.CanZeroPadList()) ||
|
||||||
(from.CanZeroPadList() && from.Length() == 0) ||
|
(from.CanZeroPadList() && from.IsEmpty()) ||
|
||||||
(to.CanZeroPadList() && to.Length() == 0),
|
(to.CanZeroPadList() && to.IsEmpty()),
|
||||||
"Only \"zero\" nsSMILValues from the SMIL engine should "
|
"Only \"zero\" nsSMILValues from the SMIL engine should "
|
||||||
"return PR_TRUE for CanZeroPadList() when the attribute "
|
"return PR_TRUE for CanZeroPadList() when the attribute "
|
||||||
"being animated can't be zero padded");
|
"being animated can't be zero padded");
|
||||||
@ -256,8 +256,8 @@ SVGLengthListSMILType::Interpolate(const nsSMILValue& aStartVal,
|
|||||||
// and documenting SVGLengthListAndInfo::CanZeroPadList().
|
// and documenting SVGLengthListAndInfo::CanZeroPadList().
|
||||||
|
|
||||||
NS_ASSERTION((start.CanZeroPadList() == end.CanZeroPadList()) ||
|
NS_ASSERTION((start.CanZeroPadList() == end.CanZeroPadList()) ||
|
||||||
(start.CanZeroPadList() && start.Length() == 0) ||
|
(start.CanZeroPadList() && start.IsEmpty()) ||
|
||||||
(end.CanZeroPadList() && end.Length() == 0),
|
(end.CanZeroPadList() && end.IsEmpty()),
|
||||||
"Only \"zero\" nsSMILValues from the SMIL engine should "
|
"Only \"zero\" nsSMILValues from the SMIL engine should "
|
||||||
"return PR_TRUE for CanZeroPadList() when the attribute "
|
"return PR_TRUE for CanZeroPadList() when the attribute "
|
||||||
"being animated can't be zero padded");
|
"being animated can't be zero padded");
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#include "nsTextFormatter.h"
|
#include "nsTextFormatter.h"
|
||||||
#include "nsCharSeparatedTokenizer.h"
|
#include "nsCharSeparatedTokenizer.h"
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
SVGNumberList::CopyFrom(const SVGNumberList& rhs)
|
SVGNumberList::CopyFrom(const SVGNumberList& rhs)
|
||||||
@ -108,3 +108,5 @@ SVGNumberList::SetValueFromString(const nsAString& aValue)
|
|||||||
}
|
}
|
||||||
return CopyFrom(temp);
|
return CopyFrom(temp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -56,7 +56,7 @@
|
|||||||
# SVGNumberListAndInfo has not been given an element yet.
|
# SVGNumberListAndInfo has not been given an element yet.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
/*static*/ SVGNumberListSMILType SVGNumberListSMILType::sSingleton;
|
/*static*/ SVGNumberListSMILType SVGNumberListSMILType::sSingleton;
|
||||||
|
|
||||||
@ -240,3 +240,5 @@ SVGNumberListSMILType::Interpolate(const nsSMILValue& aStartVal,
|
|||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -39,7 +39,7 @@
|
|||||||
#include "SVGPathData.h"
|
#include "SVGPathData.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
/*static*/ SVGPathSegListSMILType SVGPathSegListSMILType::sSingleton;
|
/*static*/ SVGPathSegListSMILType SVGPathSegListSMILType::sSingleton;
|
||||||
|
|
||||||
@ -469,3 +469,5 @@ SVGPathSegListSMILType::Interpolate(const nsSMILValue& aStartVal,
|
|||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -47,7 +47,7 @@
|
|||||||
#include "nsTextFormatter.h"
|
#include "nsTextFormatter.h"
|
||||||
#include "nsCharSeparatedTokenizer.h"
|
#include "nsCharSeparatedTokenizer.h"
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
nsresult
|
nsresult
|
||||||
SVGPointList::CopyFrom(const SVGPointList& rhs)
|
SVGPointList::CopyFrom(const SVGPointList& rhs)
|
||||||
@ -152,3 +152,5 @@ SVGPointList::SetValueFromString(const nsAString& aValue)
|
|||||||
}
|
}
|
||||||
return rv;
|
return rv;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#include "nsMathUtils.h"
|
#include "nsMathUtils.h"
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
using namespace mozilla;
|
namespace mozilla {
|
||||||
|
|
||||||
/*static*/ SVGPointListSMILType SVGPointListSMILType::sSingleton;
|
/*static*/ SVGPointListSMILType SVGPointListSMILType::sSingleton;
|
||||||
|
|
||||||
@ -225,3 +225,5 @@ SVGPointListSMILType::Interpolate(const nsSMILValue& aStartVal,
|
|||||||
}
|
}
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
} // namespace mozilla
|
||||||
|
Loading…
Reference in New Issue
Block a user