diff --git a/LayoutTests/platform/glib/svg/zoom/page/zoom-zoom-coords-expected.txt b/LayoutTests/platform/glib/svg/zoom/page/zoom-zoom-coords-expected.txt deleted file mode 100644 index 36f6770aff1e..000000000000 --- a/LayoutTests/platform/glib/svg/zoom/page/zoom-zoom-coords-expected.txt +++ /dev/null @@ -1,115 +0,0 @@ -Test -Test -Test -This test checks getBoundingClientRect() on zoomed HTML and SVG elements - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - -Gray rectangles: 100x50 -Green rectangles: 100x50, zoom=200% -Blue rectangles: 200x100, zoom=50% - -Checking HTML elements: - -PASS div1.left.toFixed(2) is "0.00" -PASS div1.top.toFixed(2) is "0.00" -PASS div1.width.toFixed(2) is "100.00" -PASS div1.height.toFixed(2) is "50.00" -PASS div1.right.toFixed(2) is "100.00" -PASS div1.bottom.toFixed(2) is "50.00" - -PASS div2.left.toFixed(2) is "0.00" -PASS div2.top.toFixed(2) is "25.00" -PASS div2.width.toFixed(2) is "100.00" -PASS div2.height.toFixed(2) is "50.00" -PASS div2.right.toFixed(2) is "100.00" -PASS div2.bottom.toFixed(2) is "75.00" - -PASS div3.left.toFixed(2) is "0.00" -PASS div3.top.toFixed(2) is "300.00" -PASS div3.width.toFixed(2) is "200.00" -PASS div3.height.toFixed(2) is "100.00" -PASS div3.right.toFixed(2) is "200.00" -PASS div3.bottom.toFixed(2) is "400.00" - -Checking SVG elements: - -PASS svg1.left.toFixed(2) is "0.00" -PASS svg1.top.toFixed(2) is "250.00" -PASS svg1.width.toFixed(2) is "150.00" -PASS svg1.height.toFixed(2) is "50.00" -PASS svg1.right.toFixed(2) is "150.00" -PASS svg1.bottom.toFixed(2) is "300.00" -PASS rect1.left.toFixed(2) is "0.00" -PASS rect1.top.toFixed(2) is "250.00" -PASS rect1.width.toFixed(2) is "100.00" -PASS rect1.height.toFixed(2) is "50.00" -PASS rect1.right.toFixed(2) is "100.00" -PASS rect1.bottom.toFixed(2) is "300.00" -PASS image1.left.toFixed(2) is "100.00" -PASS image1.top.toFixed(2) is "250.00" -PASS image1.width.toFixed(2) is "50.00" -PASS image1.height.toFixed(2) is "25.00" -PASS image1.right.toFixed(2) is "150.00" -PASS image1.bottom.toFixed(2) is "275.00" -PASS text1.left.toFixed(2) is "100.00" -FAIL text1.top.toFixed(2) should be 282.95. Was 282.58. -FAIL text1.width.toFixed(2) should be 45.55. Was 49.20. -FAIL text1.height.toFixed(2) should be 5.70. Was 6.16. -FAIL text1.right.toFixed(2) should be 145.55. Was 149.20. -FAIL text1.bottom.toFixed(2) should be 288.64. Was 288.73. - -PASS svg2.left.toFixed(2) is "75.00" -PASS svg2.top.toFixed(2) is "100.00" -PASS svg2.width.toFixed(2) is "150.00" -PASS svg2.height.toFixed(2) is "50.00" -PASS svg2.right.toFixed(2) is "225.00" -PASS svg2.bottom.toFixed(2) is "150.00" -PASS rect2.left.toFixed(2) is "75.00" -PASS rect2.top.toFixed(2) is "100.00" -PASS rect2.width.toFixed(2) is "100.00" -PASS rect2.height.toFixed(2) is "50.00" -PASS rect2.right.toFixed(2) is "175.00" -PASS rect2.bottom.toFixed(2) is "150.00" -PASS image2.left.toFixed(2) is "175.00" -PASS image2.top.toFixed(2) is "100.00" -PASS image2.width.toFixed(2) is "50.00" -PASS image2.height.toFixed(2) is "25.00" -PASS image2.right.toFixed(2) is "225.00" -PASS image2.bottom.toFixed(2) is "125.00" -PASS text2.left.toFixed(2) is "175.00" -FAIL text2.top.toFixed(2) should be 132.95. Was 132.75. -FAIL text2.width.toFixed(2) should be 45.55. Was 47.44. -FAIL text2.height.toFixed(2) should be 5.70. Was 5.94. -FAIL text2.right.toFixed(2) should be 220.55. Was 222.44. -FAIL text2.bottom.toFixed(2) should be 138.64. Was 138.69. - -PASS svg3.left.toFixed(2) is "900.00" -PASS svg3.top.toFixed(2) is "500.00" -PASS svg3.width.toFixed(2) is "300.00" -PASS svg3.height.toFixed(2) is "100.00" -PASS svg3.right.toFixed(2) is "1200.00" -PASS svg3.bottom.toFixed(2) is "600.00" -PASS rect3.left.toFixed(2) is "900.00" -PASS rect3.top.toFixed(2) is "500.00" -PASS rect3.width.toFixed(2) is "200.00" -PASS rect3.height.toFixed(2) is "100.00" -PASS rect3.right.toFixed(2) is "1100.00" -PASS rect3.bottom.toFixed(2) is "600.00" -PASS image3.left.toFixed(2) is "1100.00" -PASS image3.top.toFixed(2) is "500.00" -PASS image3.width.toFixed(2) is "100.00" -PASS image3.height.toFixed(2) is "50.00" -PASS image3.right.toFixed(2) is "1200.00" -PASS image3.bottom.toFixed(2) is "550.00" -PASS text3.left.toFixed(2) is "1100.00" -FAIL text3.top.toFixed(2) should be 565.38. Was 565.16. -FAIL text3.width.toFixed(2) should be 96.16. Was 98.41. -FAIL text3.height.toFixed(2) should be 12.03. Was 12.31. -FAIL text3.right.toFixed(2) should be 1196.16. Was 1198.41. -FAIL text3.bottom.toFixed(2) should be 577.41. Was 577.47. - -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/LayoutTests/platform/mac-ventura-wk2-lbse-text/svg/zoom/page/zoom-zoom-coords-expected.txt b/LayoutTests/platform/mac-ventura-wk2-lbse-text/svg/zoom/page/zoom-zoom-coords-expected.txt deleted file mode 100644 index 7629741651ec..000000000000 --- a/LayoutTests/platform/mac-ventura-wk2-lbse-text/svg/zoom/page/zoom-zoom-coords-expected.txt +++ /dev/null @@ -1,115 +0,0 @@ -Test -Test -Test -This test checks getBoundingClientRect() on zoomed HTML and SVG elements - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - -Gray rectangles: 100x50 -Green rectangles: 100x50, zoom=200% -Blue rectangles: 200x100, zoom=50% - -Checking HTML elements: - -PASS div1.left.toFixed(2) is "0.00" -PASS div1.top.toFixed(2) is "0.00" -PASS div1.width.toFixed(2) is "100.00" -PASS div1.height.toFixed(2) is "50.00" -PASS div1.right.toFixed(2) is "100.00" -PASS div1.bottom.toFixed(2) is "50.00" - -PASS div2.left.toFixed(2) is "0.00" -PASS div2.top.toFixed(2) is "25.00" -PASS div2.width.toFixed(2) is "100.00" -PASS div2.height.toFixed(2) is "50.00" -PASS div2.right.toFixed(2) is "100.00" -PASS div2.bottom.toFixed(2) is "75.00" - -PASS div3.left.toFixed(2) is "0.00" -PASS div3.top.toFixed(2) is "300.00" -PASS div3.width.toFixed(2) is "200.00" -PASS div3.height.toFixed(2) is "100.00" -PASS div3.right.toFixed(2) is "200.00" -PASS div3.bottom.toFixed(2) is "400.00" - -Checking SVG elements: - -PASS svg1.left.toFixed(2) is "0.00" -PASS svg1.top.toFixed(2) is "250.00" -PASS svg1.width.toFixed(2) is "150.00" -PASS svg1.height.toFixed(2) is "50.00" -PASS svg1.right.toFixed(2) is "150.00" -PASS svg1.bottom.toFixed(2) is "300.00" -PASS rect1.left.toFixed(2) is "0.00" -PASS rect1.top.toFixed(2) is "250.00" -PASS rect1.width.toFixed(2) is "100.00" -PASS rect1.height.toFixed(2) is "50.00" -PASS rect1.right.toFixed(2) is "100.00" -PASS rect1.bottom.toFixed(2) is "300.00" -PASS image1.left.toFixed(2) is "100.00" -PASS image1.top.toFixed(2) is "250.00" -PASS image1.width.toFixed(2) is "50.00" -PASS image1.height.toFixed(2) is "25.00" -PASS image1.right.toFixed(2) is "150.00" -PASS image1.bottom.toFixed(2) is "275.00" -PASS text1.left.toFixed(2) is "100.00" -PASS text1.top.toFixed(2) is "282.95" -PASS text1.width.toFixed(2) is "45.55" -PASS text1.height.toFixed(2) is "5.70" -PASS text1.right.toFixed(2) is "145.55" -PASS text1.bottom.toFixed(2) is "288.64" - -PASS svg2.left.toFixed(2) is "75.00" -PASS svg2.top.toFixed(2) is "100.00" -PASS svg2.width.toFixed(2) is "150.00" -PASS svg2.height.toFixed(2) is "50.00" -PASS svg2.right.toFixed(2) is "225.00" -PASS svg2.bottom.toFixed(2) is "150.00" -PASS rect2.left.toFixed(2) is "75.00" -PASS rect2.top.toFixed(2) is "100.00" -PASS rect2.width.toFixed(2) is "100.00" -PASS rect2.height.toFixed(2) is "50.00" -PASS rect2.right.toFixed(2) is "175.00" -PASS rect2.bottom.toFixed(2) is "150.00" -PASS image2.left.toFixed(2) is "175.00" -PASS image2.top.toFixed(2) is "100.00" -PASS image2.width.toFixed(2) is "50.00" -PASS image2.height.toFixed(2) is "25.00" -PASS image2.right.toFixed(2) is "225.00" -PASS image2.bottom.toFixed(2) is "125.00" -PASS text2.left.toFixed(2) is "175.00" -PASS text2.top.toFixed(2) is "132.95" -PASS text2.width.toFixed(2) is "45.55" -PASS text2.height.toFixed(2) is "5.70" -PASS text2.right.toFixed(2) is "220.55" -PASS text2.bottom.toFixed(2) is "138.64" - -PASS svg3.left.toFixed(2) is "900.00" -PASS svg3.top.toFixed(2) is "500.00" -PASS svg3.width.toFixed(2) is "300.00" -PASS svg3.height.toFixed(2) is "100.00" -PASS svg3.right.toFixed(2) is "1200.00" -PASS svg3.bottom.toFixed(2) is "600.00" -PASS rect3.left.toFixed(2) is "900.00" -PASS rect3.top.toFixed(2) is "500.00" -PASS rect3.width.toFixed(2) is "200.00" -PASS rect3.height.toFixed(2) is "100.00" -PASS rect3.right.toFixed(2) is "1100.00" -PASS rect3.bottom.toFixed(2) is "600.00" -PASS image3.left.toFixed(2) is "1100.00" -PASS image3.top.toFixed(2) is "500.00" -PASS image3.width.toFixed(2) is "100.00" -PASS image3.height.toFixed(2) is "50.00" -PASS image3.right.toFixed(2) is "1200.00" -PASS image3.bottom.toFixed(2) is "550.00" -PASS text3.left.toFixed(2) is "1100.00" -PASS text3.top.toFixed(2) is "565.38" -PASS text3.width.toFixed(2) is "96.16" -PASS text3.height.toFixed(2) is "12.03" -PASS text3.right.toFixed(2) is "1196.16" -PASS text3.bottom.toFixed(2) is "577.41" - -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/LayoutTests/platform/mac/svg/zoom/page/zoom-zoom-coords-expected.txt b/LayoutTests/platform/mac/svg/zoom/page/zoom-zoom-coords-expected.txt deleted file mode 100644 index 36f6770aff1e..000000000000 --- a/LayoutTests/platform/mac/svg/zoom/page/zoom-zoom-coords-expected.txt +++ /dev/null @@ -1,115 +0,0 @@ -Test -Test -Test -This test checks getBoundingClientRect() on zoomed HTML and SVG elements - -On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE". - -Gray rectangles: 100x50 -Green rectangles: 100x50, zoom=200% -Blue rectangles: 200x100, zoom=50% - -Checking HTML elements: - -PASS div1.left.toFixed(2) is "0.00" -PASS div1.top.toFixed(2) is "0.00" -PASS div1.width.toFixed(2) is "100.00" -PASS div1.height.toFixed(2) is "50.00" -PASS div1.right.toFixed(2) is "100.00" -PASS div1.bottom.toFixed(2) is "50.00" - -PASS div2.left.toFixed(2) is "0.00" -PASS div2.top.toFixed(2) is "25.00" -PASS div2.width.toFixed(2) is "100.00" -PASS div2.height.toFixed(2) is "50.00" -PASS div2.right.toFixed(2) is "100.00" -PASS div2.bottom.toFixed(2) is "75.00" - -PASS div3.left.toFixed(2) is "0.00" -PASS div3.top.toFixed(2) is "300.00" -PASS div3.width.toFixed(2) is "200.00" -PASS div3.height.toFixed(2) is "100.00" -PASS div3.right.toFixed(2) is "200.00" -PASS div3.bottom.toFixed(2) is "400.00" - -Checking SVG elements: - -PASS svg1.left.toFixed(2) is "0.00" -PASS svg1.top.toFixed(2) is "250.00" -PASS svg1.width.toFixed(2) is "150.00" -PASS svg1.height.toFixed(2) is "50.00" -PASS svg1.right.toFixed(2) is "150.00" -PASS svg1.bottom.toFixed(2) is "300.00" -PASS rect1.left.toFixed(2) is "0.00" -PASS rect1.top.toFixed(2) is "250.00" -PASS rect1.width.toFixed(2) is "100.00" -PASS rect1.height.toFixed(2) is "50.00" -PASS rect1.right.toFixed(2) is "100.00" -PASS rect1.bottom.toFixed(2) is "300.00" -PASS image1.left.toFixed(2) is "100.00" -PASS image1.top.toFixed(2) is "250.00" -PASS image1.width.toFixed(2) is "50.00" -PASS image1.height.toFixed(2) is "25.00" -PASS image1.right.toFixed(2) is "150.00" -PASS image1.bottom.toFixed(2) is "275.00" -PASS text1.left.toFixed(2) is "100.00" -FAIL text1.top.toFixed(2) should be 282.95. Was 282.58. -FAIL text1.width.toFixed(2) should be 45.55. Was 49.20. -FAIL text1.height.toFixed(2) should be 5.70. Was 6.16. -FAIL text1.right.toFixed(2) should be 145.55. Was 149.20. -FAIL text1.bottom.toFixed(2) should be 288.64. Was 288.73. - -PASS svg2.left.toFixed(2) is "75.00" -PASS svg2.top.toFixed(2) is "100.00" -PASS svg2.width.toFixed(2) is "150.00" -PASS svg2.height.toFixed(2) is "50.00" -PASS svg2.right.toFixed(2) is "225.00" -PASS svg2.bottom.toFixed(2) is "150.00" -PASS rect2.left.toFixed(2) is "75.00" -PASS rect2.top.toFixed(2) is "100.00" -PASS rect2.width.toFixed(2) is "100.00" -PASS rect2.height.toFixed(2) is "50.00" -PASS rect2.right.toFixed(2) is "175.00" -PASS rect2.bottom.toFixed(2) is "150.00" -PASS image2.left.toFixed(2) is "175.00" -PASS image2.top.toFixed(2) is "100.00" -PASS image2.width.toFixed(2) is "50.00" -PASS image2.height.toFixed(2) is "25.00" -PASS image2.right.toFixed(2) is "225.00" -PASS image2.bottom.toFixed(2) is "125.00" -PASS text2.left.toFixed(2) is "175.00" -FAIL text2.top.toFixed(2) should be 132.95. Was 132.75. -FAIL text2.width.toFixed(2) should be 45.55. Was 47.44. -FAIL text2.height.toFixed(2) should be 5.70. Was 5.94. -FAIL text2.right.toFixed(2) should be 220.55. Was 222.44. -FAIL text2.bottom.toFixed(2) should be 138.64. Was 138.69. - -PASS svg3.left.toFixed(2) is "900.00" -PASS svg3.top.toFixed(2) is "500.00" -PASS svg3.width.toFixed(2) is "300.00" -PASS svg3.height.toFixed(2) is "100.00" -PASS svg3.right.toFixed(2) is "1200.00" -PASS svg3.bottom.toFixed(2) is "600.00" -PASS rect3.left.toFixed(2) is "900.00" -PASS rect3.top.toFixed(2) is "500.00" -PASS rect3.width.toFixed(2) is "200.00" -PASS rect3.height.toFixed(2) is "100.00" -PASS rect3.right.toFixed(2) is "1100.00" -PASS rect3.bottom.toFixed(2) is "600.00" -PASS image3.left.toFixed(2) is "1100.00" -PASS image3.top.toFixed(2) is "500.00" -PASS image3.width.toFixed(2) is "100.00" -PASS image3.height.toFixed(2) is "50.00" -PASS image3.right.toFixed(2) is "1200.00" -PASS image3.bottom.toFixed(2) is "550.00" -PASS text3.left.toFixed(2) is "1100.00" -FAIL text3.top.toFixed(2) should be 565.38. Was 565.16. -FAIL text3.width.toFixed(2) should be 96.16. Was 98.41. -FAIL text3.height.toFixed(2) should be 12.03. Was 12.31. -FAIL text3.right.toFixed(2) should be 1196.16. Was 1198.41. -FAIL text3.bottom.toFixed(2) should be 577.41. Was 577.47. - -PASS successfullyParsed is true - -TEST COMPLETE - diff --git a/LayoutTests/svg/zoom/page/zoom-zoom-coords-expected.txt b/LayoutTests/svg/zoom/page/zoom-zoom-coords-expected.txt index b69122fdf1b3..3828f723b544 100644 --- a/LayoutTests/svg/zoom/page/zoom-zoom-coords-expected.txt +++ b/LayoutTests/svg/zoom/page/zoom-zoom-coords-expected.txt @@ -53,11 +53,11 @@ PASS image1.height.toFixed(2) is "25.00" PASS image1.right.toFixed(2) is "150.00" PASS image1.bottom.toFixed(2) is "275.00" PASS text1.left.toFixed(2) is "100.00" -PASS text1.top.toFixed(2) is "282.66" +PASS text1.top.toFixed(2) is "282.58" PASS text1.width.toFixed(2) is "49.20" PASS text1.height.toFixed(2) is "6.16" PASS text1.right.toFixed(2) is "149.20" -PASS text1.bottom.toFixed(2) is "288.82" +PASS text1.bottom.toFixed(2) is "288.73" PASS svg2.left.toFixed(2) is "75.00" PASS svg2.top.toFixed(2) is "100.00" @@ -78,11 +78,11 @@ PASS image2.height.toFixed(2) is "25.00" PASS image2.right.toFixed(2) is "225.00" PASS image2.bottom.toFixed(2) is "125.00" PASS text2.left.toFixed(2) is "175.00" -PASS text2.top.toFixed(2) is "132.66" +PASS text2.top.toFixed(2) is "132.75" PASS text2.width.toFixed(2) is "47.44" PASS text2.height.toFixed(2) is "5.94" PASS text2.right.toFixed(2) is "222.44" -PASS text2.bottom.toFixed(2) is "138.60" +PASS text2.bottom.toFixed(2) is "138.69" PASS svg3.left.toFixed(2) is "900.00" PASS svg3.top.toFixed(2) is "500.00" @@ -103,11 +103,11 @@ PASS image3.height.toFixed(2) is "50.00" PASS image3.right.toFixed(2) is "1200.00" PASS image3.bottom.toFixed(2) is "550.00" PASS text3.left.toFixed(2) is "1100.00" -PASS text3.top.toFixed(2) is "565.33" +PASS text3.top.toFixed(2) is "565.16" PASS text3.width.toFixed(2) is "98.41" PASS text3.height.toFixed(2) is "12.31" PASS text3.right.toFixed(2) is "1198.41" -PASS text3.bottom.toFixed(2) is "577.64" +PASS text3.bottom.toFixed(2) is "577.47" PASS successfullyParsed is true diff --git a/LayoutTests/svg/zoom/page/zoom-zoom-coords.xhtml b/LayoutTests/svg/zoom/page/zoom-zoom-coords.xhtml index 0929240c9fad..863c78456a49 100644 --- a/LayoutTests/svg/zoom/page/zoom-zoom-coords.xhtml +++ b/LayoutTests/svg/zoom/page/zoom-zoom-coords.xhtml @@ -112,11 +112,11 @@ function executeTest() { shouldBeEqualToString('image1.bottom.toFixed(2)', '275.00'); text1 = document.getElementById("text1").getBoundingClientRect(); shouldBeEqualToString('text1.left.toFixed(2)', '100.00'); - shouldBeEqualToString('text1.top.toFixed(2)', '282.95'); - shouldBeEqualToString('text1.width.toFixed(2)', '45.55'); - shouldBeEqualToString('text1.height.toFixed(2)', '5.70'); - shouldBeEqualToString('text1.right.toFixed(2)', '145.55'); - shouldBeEqualToString('text1.bottom.toFixed(2)', '288.64'); + shouldBeEqualToString('text1.top.toFixed(2)', '282.58'); + shouldBeEqualToString('text1.width.toFixed(2)', '49.20'); + shouldBeEqualToString('text1.height.toFixed(2)', '6.16'); + shouldBeEqualToString('text1.right.toFixed(2)', '149.20'); + shouldBeEqualToString('text1.bottom.toFixed(2)', '288.73'); debug(""); svg2 = document.getElementById("svg2").getBoundingClientRect(); @@ -142,11 +142,11 @@ function executeTest() { shouldBeEqualToString('image2.bottom.toFixed(2)', '125.00'); text2 = document.getElementById("text2").getBoundingClientRect(); shouldBeEqualToString('text2.left.toFixed(2)', '175.00'); - shouldBeEqualToString('text2.top.toFixed(2)', '132.95'); - shouldBeEqualToString('text2.width.toFixed(2)', '45.55'); - shouldBeEqualToString('text2.height.toFixed(2)', '5.70'); - shouldBeEqualToString('text2.right.toFixed(2)', '220.55'); - shouldBeEqualToString('text2.bottom.toFixed(2)', '138.64'); + shouldBeEqualToString('text2.top.toFixed(2)', '132.75'); + shouldBeEqualToString('text2.width.toFixed(2)', '47.44'); + shouldBeEqualToString('text2.height.toFixed(2)', '5.94'); + shouldBeEqualToString('text2.right.toFixed(2)', '222.44'); + shouldBeEqualToString('text2.bottom.toFixed(2)', '138.69'); debug(""); svg3 = document.getElementById("svg3").getBoundingClientRect(); @@ -172,11 +172,11 @@ function executeTest() { shouldBeEqualToString('image3.bottom.toFixed(2)', '550.00'); text3 = document.getElementById("text3").getBoundingClientRect(); shouldBeEqualToString('text3.left.toFixed(2)', '1100.00'); - shouldBeEqualToString('text3.top.toFixed(2)', '565.38'); - shouldBeEqualToString('text3.width.toFixed(2)', '96.16'); - shouldBeEqualToString('text3.height.toFixed(2)', '12.03'); - shouldBeEqualToString('text3.right.toFixed(2)', '1196.16'); - shouldBeEqualToString('text3.bottom.toFixed(2)', '577.41'); + shouldBeEqualToString('text3.top.toFixed(2)', '565.16'); + shouldBeEqualToString('text3.width.toFixed(2)', '98.41'); + shouldBeEqualToString('text3.height.toFixed(2)', '12.31'); + shouldBeEqualToString('text3.right.toFixed(2)', '1198.41'); + shouldBeEqualToString('text3.bottom.toFixed(2)', '577.47'); debug(""); } diff --git a/Source/WebCore/rendering/svg/SVGLayerTransformComputation.h b/Source/WebCore/rendering/svg/SVGLayerTransformComputation.h index 38ee06fc6d85..4ca40289cf84 100644 --- a/Source/WebCore/rendering/svg/SVGLayerTransformComputation.h +++ b/Source/WebCore/rendering/svg/SVGLayerTransformComputation.h @@ -122,6 +122,8 @@ class SVGLayerTransformComputation { auto ctm = computeAccumulatedTransform(stopAtLayer ? &stopAtLayer->renderer() : nullptr, TransformState::TrackSVGScreenCTMMatrix); ctm.scale(m_renderer.document().deviceScaleFactor()); + if (!m_renderer.document().isSVGDocument()) + ctm.scale(m_renderer.style().effectiveZoom()); return narrowPrecisionToFloat(std::hypot(ctm.xScale(), ctm.yScale()) / sqrtOfTwoDouble); }