mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 11:25:00 +00:00
Fix bug 380516, bug 375342, bug 374293. Patch in bug 380516. r=jwatt, sr=dbaron
This commit is contained in:
parent
20b6443053
commit
4d5483daac
5
layout/reftests/svg/dynamic-reflow-01-ref.svg
Normal file
5
layout/reftests/svg/dynamic-reflow-01-ref.svg
Normal 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 |
10
layout/reftests/svg/dynamic-reflow-01.svg
Normal file
10
layout/reftests/svg/dynamic-reflow-01.svg
Normal 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 |
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user