Fix bug 380516, bug 375342, bug 374293. Patch in bug 380516. r=jwatt, sr=dbaron

This commit is contained in:
bzbarsky@mit.edu 2007-05-23 13:10:43 -07:00
parent 20b6443053
commit 4d5483daac
4 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,5 @@
<?xml version="1.0"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect id="test" x="100" y="100" width="100" height="100"
style="width: 200px"/>
</svg>

After

Width:  |  Height:  |  Size: 174 B

View File

@ -0,0 +1,10 @@
<?xml version="1.0"?>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg">
<rect id="test" x="100" y="100" width="100" height="100"/>
<script>
window.onload = function() {
var node = document.getElementById("test");
node.style.width = "200px";
}
</script>
</svg>

After

Width:  |  Height:  |  Size: 297 B

View File

@ -20,3 +20,4 @@ skip-if(MOZ_WIDGET_TOOLKIT=="gtk2") == pseudo-classes-02.svg pseudo-classes-02-r
== stroke-width-percentage-01.svg pass.svg
skip-if(MOZ_WIDGET_TOOLKIT=="gtk2") == text-in-link-01.svg text-in-link-01-ref.svg # bug 379600 (crashes linux)
== viewport-percent-graphic-user-01.svg pass.svg
== dynamic-reflow-01.svg dynamic-reflow-01-ref.svg

View File

@ -205,6 +205,8 @@ nsSVGOuterSVGFrame::Reflow(nsPresContext* aPresContext,
// This means that something happened to one of our descendants
// (excluding those inside svg:foreignObject, since
// nsSVGForeignObjectFrame is a reflow root).
aDesiredSize.width = mRect.width;
aDesiredSize.height = mRect.height;
aStatus = NS_FRAME_COMPLETE;
return NS_OK;
}