mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
Bug 847139 - Crash with caretPositionFromPoint. r=dholbert
This commit is contained in:
parent
acc28c7d25
commit
f476b2bd6e
13
layout/svg/crashtests/847139-1.svg
Normal file
13
layout/svg/crashtests/847139-1.svg
Normal 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 |
@ -156,3 +156,4 @@ load 841812-1.svg
|
||||
load 842009-1.svg
|
||||
load 842909-1.svg
|
||||
load 843072-1.svg
|
||||
load 847139-1.svg
|
||||
|
@ -3089,7 +3089,7 @@ nsSVGTextFrame2::FindCloserFrameForSelection(
|
||||
nsPoint aPoint,
|
||||
nsIFrame::FrameWithDistance* aCurrentBestFrame)
|
||||
{
|
||||
UpdateGlyphPositioning(true);
|
||||
UpdateGlyphPositioning(false);
|
||||
|
||||
nsPresContext* presContext = PresContext();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user