Bug 847139 - Crash with caretPositionFromPoint. r=dholbert

This commit is contained in:
Robert Longson 2013-03-06 12:11:34 +00:00
parent acc28c7d25
commit f476b2bd6e
3 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1,13 @@
<svg xmlns="http://www.w3.org/2000/svg">
<marker><text>x</text></marker>
<script>
window.addEventListener("load", function() {
document.caretPositionFromPoint(0, 0);
}, false);
</script>
</svg>

After

Width:  |  Height:  |  Size: 203 B

View File

@ -156,3 +156,4 @@ load 841812-1.svg
load 842009-1.svg
load 842909-1.svg
load 843072-1.svg
load 847139-1.svg

View File

@ -3089,7 +3089,7 @@ nsSVGTextFrame2::FindCloserFrameForSelection(
nsPoint aPoint,
nsIFrame::FrameWithDistance* aCurrentBestFrame)
{
UpdateGlyphPositioning(true);
UpdateGlyphPositioning(false);
nsPresContext* presContext = PresContext();