Bug 725535 - "ASSERTION: Only transformed frames should have UpdateTransformLayer hint". r=roc

This commit is contained in:
Mats Palmgren 2012-02-12 22:21:50 +01:00
parent 7764d65bf7
commit 22292d33f2
3 changed files with 12 additions and 3 deletions

View File

@ -0,0 +1,8 @@
<!DOCTYPE html>
<html style="-moz-transform-style: preserve-3d">
<body>
<script>
document.addEventListener("MozReftestInvalidate", function() {document.documentElement.style.MozTransform = 'rotate(0)';}, false);
</script>
</body>
</html>

View File

@ -349,3 +349,4 @@ load 698335.html
needs-focus pref(accessibility.browsewithcaret,true) load 699353-1.html
load 707098.html
load 722137.html
load 725535.html

View File

@ -7674,9 +7674,6 @@ DoApplyRenderingChangeToTree(nsIFrame* aFrame,
"should only be called within ApplyRenderingChangeToTree");
for ( ; aFrame; aFrame = nsLayoutUtils::GetNextContinuationOrSpecialSibling(aFrame)) {
NS_ASSERTION(!(aChange & nsChangeHint_UpdateTransformLayer) || aFrame->IsTransformed(),
"Only transformed frames should have UpdateTransformLayer hint");
// Get view if this frame has one and trigger an update. If the
// frame doesn't have a view, find the nearest containing view
// (adjusting r's coordinate system to reflect the nesting) and
@ -7718,6 +7715,9 @@ ApplyRenderingChangeToTree(nsPresContext* aPresContext,
nsIFrame* aFrame,
nsChangeHint aChange)
{
NS_ASSERTION(!(aChange & nsChangeHint_UpdateTransformLayer) || aFrame->IsTransformed(),
"Only transformed frames should have UpdateTransformLayer hint");
nsIPresShell *shell = aPresContext->PresShell();
if (shell->IsPaintingSuppressed()) {
// Don't allow synchronous rendering changes when painting is turned off.