Skip to content

Commit

Permalink
[Bug 773500] nsStyleAnimation checks for common units of nsCSSValuePa…
Browse files Browse the repository at this point in the history
…ir/Triplet are screwy r=dbaron
  • Loading branch information
dzbarsky committed Jul 13, 2012
1 parent eb56783 commit 9550869
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layout/style/nsStyleAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ nsStyleAnimation::ComputeDistance(nsCSSProperty aProperty,
unit[2] = GetCommonUnit(aProperty, triplet1->mZValue.GetUnit(),
triplet2->mZValue.GetUnit());
if (unit[0] == eCSSUnit_Null || unit[1] == eCSSUnit_Null ||
unit[0] == eCSSUnit_URL) {
unit[2] == eCSSUnit_Null) {
return false;
}

Expand Down Expand Up @@ -1758,7 +1758,7 @@ nsStyleAnimation::AddWeighted(nsCSSProperty aProperty,
unit[2] = GetCommonUnit(aProperty, triplet1.mZValue.GetUnit(),
triplet2.mZValue.GetUnit());
if (unit[0] == eCSSUnit_Null || unit[1] == eCSSUnit_Null ||
unit[0] == eCSSUnit_Null || unit[0] == eCSSUnit_URL) {
unit[2] == eCSSUnit_Null) {
return false;
}

Expand Down

0 comments on commit 9550869

Please sign in to comment.