зеркало из https://github.com/mozilla/pjs.git
Fixing bug 328439. Use EqualsLiteral and AppendLiteral where appropriate in svg/content. Patched by Robert Longson <longsonr@gmail.com>. r=me, sr=roc@ocallahan.org
This commit is contained in:
Родитель
a7b01df21b
Коммит
3b6be7f651
|
@ -613,17 +613,17 @@ CheckStandardNames(nsIDOMSVGAnimatedString *aStr)
|
|||
nsAutoString str;
|
||||
aStr->GetAnimVal(str);
|
||||
|
||||
if (str.Equals(NS_LITERAL_STRING("SourceGraphic")))
|
||||
if (str.EqualsLiteral("SourceGraphic"))
|
||||
return NS_FE_SOURCEGRAPHIC;
|
||||
if (str.Equals(NS_LITERAL_STRING("SourceAlpha")))
|
||||
if (str.EqualsLiteral("SourceAlpha"))
|
||||
return NS_FE_SOURCEALPHA;
|
||||
if (str.Equals(NS_LITERAL_STRING("BackgroundImage")))
|
||||
if (str.EqualsLiteral("BackgroundImage"))
|
||||
return NS_FE_BACKGROUNDIMAGE;
|
||||
if (str.Equals(NS_LITERAL_STRING("BackgroundAlpha")))
|
||||
if (str.EqualsLiteral("BackgroundAlpha"))
|
||||
return NS_FE_BACKGROUNDALPHA;
|
||||
if (str.Equals(NS_LITERAL_STRING("FillPaint")))
|
||||
if (str.EqualsLiteral("FillPaint"))
|
||||
return NS_FE_FILLPAINT;
|
||||
if (str.Equals(NS_LITERAL_STRING("StrokePaint")))
|
||||
if (str.EqualsLiteral("StrokePaint"))
|
||||
return NS_FE_STROKEPAINT;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -183,7 +183,7 @@ nsSVGNumberList::GetValueString(nsAString& aValue)
|
|||
|
||||
if (++i >= count) break;
|
||||
|
||||
aValue.Append(NS_LITERAL_STRING(" "));
|
||||
aValue.AppendLiteral(" ");
|
||||
}
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче