Issue #2762 - Remove SVGZoomEvent interface.

Resolves #2762
This commit is contained in:
Moonchild 2025-06-24 12:18:13 +02:00 committed by roytam1
commit 1c8e994b65
17 changed files with 6 additions and 319 deletions

View file

@ -27,7 +27,6 @@ support-files =
text-helper-selection.svg
text-helper.svg
viewport-helper.svg
zoom-helper.svg
[test_a_href_01.xhtml]
[test_a_href_02.xhtml]
@ -105,5 +104,4 @@ support-files = use-with-hsts-helper.html use-with-hsts-helper.html^headers^
[test_valueAsString.xhtml]
[test_valueLeaks.xhtml]
[test_viewport.html]
[test_zoom.xhtml]

View file

@ -1,35 +0,0 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=547596
-->
<head>
<title>Test for Bug 547596</title>
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=547596">Mozilla Bug 547596</a>
<p id="display"></p>
<div id="content" style="display: none"></div>
<iframe id="svg" src="zoom-helper.svg"></iframe>
<script>
SimpleTest.waitForExplicitFinish();
function runTests() {
var doc = $("svg").contentWindow.document;
var root = doc.getElementById("root");
root.currentScale *= 2;
}
function zoomHandler(evt) {
ok(true, "zoom handler should be called on zoom");
SimpleTest.finish();
}
window.addEventListener("load", runTests, false);
</script>
</body>
</html>

View file

@ -1,4 +0,0 @@
<?xml version="1.0"?>
<svg id="root" version="1.1" xmlns="http://www.w3.org/2000/svg" onzoom="parent.zoomHandler(evt)">
<rect x="10" y="10" width="10" height="10" fill="green" />
</svg>

Before

Width:  |  Height:  |  Size: 188 B