зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1446802 - use codespell -w -q4 to fix some spelling mistakes r=jwatt
This commit is contained in:
Родитель
32c95b809e
Коммит
cfec2a2890
|
@ -80,7 +80,7 @@ class DOMSVGLengthList;
|
|||
*
|
||||
* Having all the objects keep a reference directly to their element like this
|
||||
* would reduce the number of dereferences that they need to make to get their
|
||||
* internal counterpart. Hovewer, this design does not meet the "same object"
|
||||
* internal counterpart. However, this design does not meet the "same object"
|
||||
* requirement of the SVG specification. If script keeps a reference to a
|
||||
* DOMSVGLength or DOMSVGLengthList object, but not to that object's
|
||||
* DOMSVGAnimatedLengthList, then the DOMSVGAnimatedLengthList may be garbage
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
// aInternalList must be passed in explicitly because we can't use
|
||||
// InternalList() here. (Because it depends on IsAnimValList, which depends
|
||||
// on this object having been assigned to aAList's mBaseVal or mAnimVal,
|
||||
// which hasn't happend yet.)
|
||||
// which hasn't happened yet.)
|
||||
|
||||
InternalListLengthWillChange(aInternalList.Length()); // Sync mItems
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ public:
|
|||
return mItems.Length();
|
||||
}
|
||||
|
||||
/// Called to notify us to syncronize our length and detach excess items.
|
||||
/// Called to notify us to synchronize our length and detach excess items.
|
||||
void InternalListLengthWillChange(uint32_t aNewLength);
|
||||
|
||||
/**
|
||||
|
|
|
@ -64,7 +64,7 @@ public:
|
|||
// aInternalList must be passed in explicitly because we can't use
|
||||
// InternalList() here. (Because it depends on IsAnimValList, which depends
|
||||
// on this object having been assigned to aAList's mBaseVal or mAnimVal,
|
||||
// which hasn't happend yet.)
|
||||
// which hasn't happened yet.)
|
||||
|
||||
InternalListLengthWillChange(aInternalList.Length()); // Sync mItems
|
||||
}
|
||||
|
@ -87,7 +87,7 @@ public:
|
|||
return mItems.Length();
|
||||
}
|
||||
|
||||
/// Called to notify us to syncronize our length and detach excess items.
|
||||
/// Called to notify us to synchronize our length and detach excess items.
|
||||
void InternalListLengthWillChange(uint32_t aNewLength);
|
||||
|
||||
/**
|
||||
|
|
|
@ -201,7 +201,7 @@ private:
|
|||
SVGAnimatedPathSegList& InternalAList() const;
|
||||
|
||||
/// Creates an instance of the appropriate DOMSVGPathSeg sub-class for
|
||||
// aIndex, if it doesn't already exist, and then returs it.
|
||||
// aIndex, if it doesn't already exist, and then returns it.
|
||||
already_AddRefed<DOMSVGPathSeg> GetItemAt(uint32_t aIndex);
|
||||
|
||||
void MaybeInsertNullInAnimValListAt(uint32_t aIndex,
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
// aInternalList must be passed in explicitly because we can't use
|
||||
// InternalList() here. (Because it depends on IsAnimValList, which depends
|
||||
// on this object having been assigned to aAList's mBaseVal or mAnimVal,
|
||||
// which hasn't happend yet.)
|
||||
// which hasn't happened yet.)
|
||||
|
||||
InternalListLengthWillChange(aInternalList.Length()); // Sync mItems
|
||||
}
|
||||
|
|
|
@ -75,7 +75,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return !!mAnimVal || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -240,7 +240,7 @@ public:
|
|||
static float
|
||||
AngleBisect(float a1, float a2);
|
||||
|
||||
/* Generate a viewbox to viewport tranformation matrix */
|
||||
/* Generate a viewbox to viewport transformation matrix */
|
||||
|
||||
static Matrix
|
||||
GetViewBoxTransform(float aViewportWidth, float aViewportHeight,
|
||||
|
|
|
@ -114,8 +114,8 @@ SVGLength::GetValueInSpecifiedUnit(uint8_t aUnit,
|
|||
return mValue * GetAbsUnitsPerAbsUnit(aUnit, mUnit);
|
||||
}
|
||||
|
||||
// Otherwise we do a two step convertion via user units. This can only
|
||||
// succeed if aElement is non-null (although that's not sufficent to
|
||||
// Otherwise we do a two step conversion via user units. This can only
|
||||
// succeed if aElement is non-null (although that's not sufficient to
|
||||
// guarantee success).
|
||||
|
||||
float userUnitsPerCurrentUnit = GetUserUnitsPerUnit(aElement, aAxis);
|
||||
|
|
|
@ -150,7 +150,7 @@ SVGMotionSMILAnimationFunction::
|
|||
{
|
||||
MOZ_ASSERT(!HasAttr(nsGkAtoms::path),
|
||||
"Should be using |path| attr if we have it");
|
||||
MOZ_ASSERT(!mPath, "regenerating when we aleady have path");
|
||||
MOZ_ASSERT(!mPath, "regenerating when we already have path");
|
||||
MOZ_ASSERT(mPathVertices.IsEmpty(),
|
||||
"regenerating when we already have vertices");
|
||||
|
||||
|
|
|
@ -234,7 +234,7 @@ SVGPathData::GetPathSegAtLength(float aDistance) const
|
|||
* making it a small percentage of the stroke width of the path. This should
|
||||
* hopefully allow us to make the line as long as possible (to avoid rounding
|
||||
* issues in the backend resulting in the backend seeing it as having zero
|
||||
* length) while still avoiding the small rectangle being noticably different
|
||||
* length) while still avoiding the small rectangle being noticeably different
|
||||
* from a square.
|
||||
*
|
||||
* Note that this function inserts a subpath into the current gfx path that
|
||||
|
|
|
@ -147,7 +147,7 @@ SVGScriptElement::FreezeExecutionAttrs(nsIDocument* aOwnerDoc)
|
|||
if (mStringAttributes[HREF].IsExplicitlySet() ||
|
||||
mStringAttributes[XLINK_HREF].IsExplicitlySet()) {
|
||||
// variation of this code in nsHTMLScriptElement - check if changes
|
||||
// need to be transfered when modifying
|
||||
// need to be transferred when modifying
|
||||
bool isHref = false;
|
||||
nsAutoString src;
|
||||
if (mStringAttributes[HREF].IsExplicitlySet()) {
|
||||
|
|
|
@ -50,7 +50,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return mIsAnimated || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return mIsAnimated || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -152,7 +152,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return mIsAnimated || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return mIsAnimated || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return mIsAnimated || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ public:
|
|||
// set (either by animation, or by taking on the base value which has been
|
||||
// explicitly set by markup or a DOM call), false otherwise.
|
||||
// If this returns false, the animated value is still valid, that is,
|
||||
// useable, and represents the default base value of the attribute.
|
||||
// usable, and represents the default base value of the attribute.
|
||||
bool IsExplicitlySet() const
|
||||
{ return !!mAnimVal || mIsBaseSet; }
|
||||
|
||||
|
|
|
@ -86,10 +86,10 @@ function testConsolidateMatrix(g)
|
|||
"Unexpected type of cached first item in list after consolidating");
|
||||
cmpMatrix(first_item.matrix, [1, 0, 0, 1, 50, 90],
|
||||
"Unexpected value for cached first item in list after consolidating");
|
||||
// b) should still be useable
|
||||
// b) should still be usable
|
||||
first_item.setScale(2, 3);
|
||||
is(first_item.type, SVGTransform.SVG_TRANSFORM_SCALE,
|
||||
"Cached first item in list not useable after consolidating");
|
||||
"Cached first item in list not usable after consolidating");
|
||||
|
||||
// Check consolidated is live
|
||||
// a) Changes to 'consolidated' affect list
|
||||
|
|
|
@ -70,7 +70,7 @@ To have the battery of generic tests run for a new list attribute, add an elemen
|
|||
if it exists, and if the element has a property is of this type (as
|
||||
opposed to the element interface inheriting it).
|
||||
list_type
|
||||
The name of the SVGXxxList inteface implemented by the baseVal and
|
||||
The name of the SVGXxxList interface implemented by the baseVal and
|
||||
animVal objects.
|
||||
item_type
|
||||
The name of the SVGXxx interface implemented by the list items.
|
||||
|
@ -316,7 +316,7 @@ The third animation has additive="sum", with fewer items than the lower priority
|
|||
|
||||
At t=0s and t=1s we test the effect of an attribute value changes in the absence and presence of SMIL animation respectively.
|
||||
|
||||
At t=10s we programatically remove the fill="freeze" from animation 1.
|
||||
At t=10s we programmatically remove the fill="freeze" from animation 1.
|
||||
*/
|
||||
function create_animate_elements(test)
|
||||
{
|
||||
|
@ -1203,7 +1203,7 @@ function run_animation_timeline_tests()
|
|||
t.animVal.getItem(4) === t.old_animVal_items[4],
|
||||
'When an animation repeats, the list items that are at a given '+
|
||||
'index in the '+t.list_type+' for '+t.av_path+' should be the exact '+
|
||||
'same objects as were at that index before the repeat occured.');
|
||||
'same objects as were at that index before the repeat occurred.');
|
||||
|
||||
|
||||
/******************** t = 6s ********************/
|
||||
|
@ -1219,7 +1219,7 @@ function run_animation_timeline_tests()
|
|||
t.animVal.getItem(4) === t.old_animVal_items[4],
|
||||
'When an animation repeats, the list items that are at a given '+
|
||||
'index in the '+t.list_type+' for '+t.av_path+' should be the exact '+
|
||||
'same objects as were at that index before the repeat occured.');
|
||||
'same objects as were at that index before the repeat occurred.');
|
||||
|
||||
|
||||
/******************** t = 7s ********************/
|
||||
|
@ -1302,7 +1302,7 @@ function run_animation_timeline_tests()
|
|||
'Even after an animation finishes and is un-frozen, the list items '+
|
||||
'that are at a given index in the '+t.list_type+' for '+t.av_path+
|
||||
' should be the exact same objects as were at that index before the '+
|
||||
'end and unfreezing of the animation occured.');
|
||||
'end and unfreezing of the animation occurred.');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -321,8 +321,8 @@ function runTests()
|
|||
is(marker.viewBox.animVal.y, 2, "viewbox.y animVal");
|
||||
is(marker.viewBox.baseVal.width, 3, "viewbox.width baseVal");
|
||||
is(marker.viewBox.animVal.width, 3, "viewbox.width animVal");
|
||||
is(marker.viewBox.baseVal.height, 4, "viewbox.heigth baseVal");
|
||||
is(marker.viewBox.animVal.height, 4, "viewbox.heigth animVal");
|
||||
is(marker.viewBox.baseVal.height, 4, "viewbox.height baseVal");
|
||||
is(marker.viewBox.animVal.height, 4, "viewbox.height animVal");
|
||||
marker.viewBox.baseVal.x = 5;
|
||||
is(marker.viewBox.animVal.x, 5, "viewBox.x animVal");
|
||||
marker.viewBox.baseVal.y = 6;
|
||||
|
|
|
@ -143,7 +143,7 @@ public:
|
|||
}
|
||||
}
|
||||
|
||||
// We only set these once we know we're returing true.
|
||||
// We only set these once we know we're returning true.
|
||||
*mFrameInUse = true;
|
||||
(*mChainCounter)--;
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ nsSVGClipPathFrame::PointIsInsideClipPath(nsIFrame* aClippedFrame,
|
|||
// that case the other clip path further clips away the element that is being
|
||||
// clipped by the original clipPath. If this clipPath is being clipped by a
|
||||
// different clip path we need to check if it prevents the original element
|
||||
// from recieving events at aPoint:
|
||||
// from receiving events at aPoint:
|
||||
nsSVGClipPathFrame *clipPathFrame =
|
||||
SVGObserverUtils::GetEffectProperties(this).GetClipPathFrame();
|
||||
if (clipPathFrame &&
|
||||
|
|
|
@ -94,7 +94,7 @@ nsSVGFilterInstance::ComputeBounds()
|
|||
nsSVGUtils::GetRelativeRect(filterUnits, XYWH, mTargetBBox, mMetrics);
|
||||
|
||||
// Transform the user space bounds to filter space, so we
|
||||
// can align them with the pixel boundries of the offscreen surface.
|
||||
// can align them with the pixel boundaries of the offscreen surface.
|
||||
// The offscreen surface has the same scale as filter space.
|
||||
gfxRect filterSpaceBounds = UserSpaceToFilterSpace(userSpaceBounds);
|
||||
filterSpaceBounds.RoundOut();
|
||||
|
|
|
@ -1774,7 +1774,7 @@ nsSVGUtils::PaintSVGGlyph(Element* aElement, gfxContext* aContext)
|
|||
PrependLocalTransformsTo(gfxMatrix(), eUserSpaceToParent);
|
||||
}
|
||||
|
||||
// SVG-in-OpenType is not allowed to paint exteral resources, so we can
|
||||
// SVG-in-OpenType is not allowed to paint external resources, so we can
|
||||
// just pass a dummy params into PatintSVG.
|
||||
imgDrawingParams dummy;
|
||||
svgFrame->PaintSVG(*aContext, m, dummy);
|
||||
|
|
Загрузка…
Ссылка в новой задаче