зеркало из https://github.com/mozilla/pjs.git
Fix incorrect uses of aInherited rather than inherited so that we can make aInherited const. (Bug 476598) r+sr=bzbarsky
This commit is contained in:
Родитель
e00aab3166
Коммит
c413c2574f
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test for incorrect inherited/aInherited use in -moz-transform-origin handling</title>
|
||||
<style type="text/css">
|
||||
|
||||
p {
|
||||
height: 20px;
|
||||
width: 20px;
|
||||
background: green;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
</style>
|
||||
<!-- scaled from bottom right -->
|
||||
<p style="margin-top: 40px; margin-left: 40px;"></p>
|
||||
<!-- scaled from 2x times bottom right -->
|
||||
<p style="margin-top: 30px; margin-left: 30px;"></p>
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test for incorrect inherited/aInherited use in -moz-transform-origin handling</title>
|
||||
<style type="text/css">
|
||||
|
||||
p {
|
||||
-moz-transform: scale(2);
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
background: green;
|
||||
margin: 50px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<p style="-moz-transform-origin: 10px 10px"></p>
|
||||
<p style="-moz-transform-origin: 20px 20px"></p>
|
|
@ -0,0 +1,16 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test for incorrect inherited/aInherited use in -moz-transform-origin handling</title>
|
||||
<style type="text/css">
|
||||
|
||||
p {
|
||||
-moz-transform-origin: 1em 1em;
|
||||
-moz-transform: scale(2);
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
background: green;
|
||||
margin: 50px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<p style="font-size: 10px"></p>
|
||||
<p style="font-size: 20px"></p>
|
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE HTML>
|
||||
<title>Test for incorrect inherited/aInherited use in -moz-transform-origin handling</title>
|
||||
<style type="text/css">
|
||||
|
||||
p {
|
||||
-moz-transform-origin: inherit;
|
||||
-moz-transform: scale(2);
|
||||
height: 10px;
|
||||
width: 10px;
|
||||
background: green;
|
||||
margin: 50px;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div style="-moz-transform-origin: 10px 10px">
|
||||
<p style="font-size: 10px"></p>
|
||||
</div>
|
||||
<div style="-moz-transform-origin: 20px 20px">
|
||||
<p style="font-size: 20px"></p>
|
||||
</div>
|
|
@ -1040,3 +1040,8 @@ fails == 461512-1.html 461512-1-ref.html # Bug 461512
|
|||
== 476063-2.html 476063-2-ref.html
|
||||
!= 476063-3.html 476063-3-ref.html
|
||||
== 476063-4.xhtml 476063-4-ref.xhtml
|
||||
== 476598-1a.html 476598-1-ref.html
|
||||
== 476598-1a.html 476598-1-ref2.html
|
||||
== 476598-1b.html 476598-1-ref.html
|
||||
== 476598-1b.html 476598-1-ref2.html
|
||||
!= 476598-1-ref.html about:blank
|
||||
|
|
|
@ -3617,7 +3617,7 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
|
|||
display->mTransformOrigin[0],
|
||||
parentDisplay->mTransformOrigin[0],
|
||||
SETCOORD_LPH | SETCOORD_INITIAL_HALF,
|
||||
aContext, mPresContext, aInherited);
|
||||
aContext, mPresContext, inherited);
|
||||
NS_ASSERTION(result, "Malformed -moz-transform-origin parse!");
|
||||
}
|
||||
|
||||
|
@ -3635,7 +3635,7 @@ nsRuleNode::ComputeDisplayData(void* aStartStruct,
|
|||
display->mTransformOrigin[1],
|
||||
parentDisplay->mTransformOrigin[1],
|
||||
SETCOORD_LPH | SETCOORD_INITIAL_HALF,
|
||||
aContext, mPresContext, aInherited);
|
||||
aContext, mPresContext, inherited);
|
||||
NS_ASSERTION(result, "Malformed -moz-transform-origin parse!");
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче