зеркало из https://github.com/mozilla/pjs.git
Bug 648819 - Stop ASSERTION: unknown nsISVGValue with invalid patternTransform. r=dholbert
This commit is contained in:
Родитель
cc6d0a5dd6
Коммит
f00d0604ad
|
@ -180,8 +180,7 @@ nsSVGTransformList::SetValueString(const nsAString& aValue)
|
||||||
if (NS_FAILED(rv)) {
|
if (NS_FAILED(rv)) {
|
||||||
// there was a parse error.
|
// there was a parse error.
|
||||||
rv = NS_ERROR_DOM_SYNTAX_ERR;
|
rv = NS_ERROR_DOM_SYNTAX_ERR;
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
WillModify();
|
WillModify();
|
||||||
ReleaseTransforms();
|
ReleaseTransforms();
|
||||||
PRInt32 count = xforms.Count();
|
PRInt32 count = xforms.Count();
|
||||||
|
@ -235,6 +234,9 @@ NS_IMETHODIMP nsSVGTransformList::GetNumberOfItems(PRUint32 *aNumberOfItems)
|
||||||
/* void clear (); */
|
/* void clear (); */
|
||||||
NS_IMETHODIMP nsSVGTransformList::Clear()
|
NS_IMETHODIMP nsSVGTransformList::Clear()
|
||||||
{
|
{
|
||||||
|
if (mTransforms.IsEmpty()) {
|
||||||
|
return NS_OK;
|
||||||
|
}
|
||||||
WillModify();
|
WillModify();
|
||||||
ReleaseTransforms();
|
ReleaseTransforms();
|
||||||
DidModify();
|
DidModify();
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<script>
|
||||||
|
var p = document.createElementNS("http://www.w3.org/2000/svg", "pattern");
|
||||||
|
p.setAttribute("patternTransform", "i");
|
||||||
|
p.patternTransform.baseVal.clear();
|
||||||
|
</script>
|
|
@ -105,3 +105,4 @@ load 612662-2.svg
|
||||||
load 614367-1.svg
|
load 614367-1.svg
|
||||||
load 620034-1.html
|
load 620034-1.html
|
||||||
load 621598-1.svg
|
load 621598-1.svg
|
||||||
|
load 648819-1.html
|
||||||
|
|
Загрузка…
Ссылка в новой задаче