Bug 1481470 - Stop using xlink:href in SVG in toolkit/. r=nhnt11,desktop-theme-reviewers,harry

Differential Revision: https://phabricator.services.mozilla.com/D117207
This commit is contained in:
Silke Hofmann 2021-06-13 19:01:20 +00:00
Родитель 687f8d6b45
Коммит a31f787c6c
6 изменённых файлов: 6 добавлений и 6 удалений

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

До

Ширина:  |  Высота:  |  Размер: 6.8 KiB

После

Ширина:  |  Высота:  |  Размер: 6.7 KiB

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

До

Ширина:  |  Высота:  |  Размер: 25 KiB

После

Ширина:  |  Высота:  |  Размер: 24 KiB

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

До

Ширина:  |  Высота:  |  Размер: 22 KiB

После

Ширина:  |  Высота:  |  Размер: 22 KiB

Просмотреть файл

@ -1,4 +1,4 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="664" height="90"><defs><linearGradient id="b" x1="324.11" y1="53.56" x2="324.11" y2="52.83" gradientTransform="matrix(72 0 0 -128 -23004 6821)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff6bba"/><stop offset="1" stop-color="#ffc999"/></linearGradient><linearGradient id="c" x1="579.97" y1="46.46" x2="524.59" y2="66.59" gradientUnits="userSpaceOnUse"><stop offset=".27" stop-color="#fe82a4"/><stop offset="1" stop-color="#fe7fa3" stop-opacity="0"/></linearGradient><linearGradient id="a" x1="602.6" y1="42.67" x2="543.8" y2="95.35" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fc4ca0"/><stop offset="1" stop-color="#ffa769"/></linearGradient><linearGradient id="d" x1="627.55" y1="5.24" x2="616.47" y2="92.5" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#7542e5"/><stop offset=".15" stop-color="#8b4ee5"/><stop offset=".62" stop-color="#ff4aa2"/><stop offset="1" stop-color="#ff778e"/></linearGradient><linearGradient id="e" x1="644.75" y1="11.14" x2="640.27" y2="43.06" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#20123a"/><stop offset="1" stop-color="#20123a" stop-opacity="0"/></linearGradient><linearGradient id="f" x1="322.39" y1="52.97" x2="322.66" y2="52.88" gradientTransform="matrix(160 0 0 -128 -51516 6821)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fc56a1"/><stop offset="1" stop-color="#fc56a1" stop-opacity="0"/></linearGradient><linearGradient id="g" x1="42.61" y1="47.79" x2="98.34" y2="78.93" xlink:href="#a"/><linearGradient id="h" x1="12.93" y1="23.88" x2="60.52" y2="67.77" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4e27a4"/><stop offset=".34" stop-color="#8b4ee5"/><stop offset=".73" stop-color="#ff4ad9"/><stop offset="1" stop-color="#ff778e"/></linearGradient><linearGradient id="i" x1="-9.97" y1="1.03" x2="65.82" y2="107.4" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#20123a"/><stop offset=".51" stop-color="#5f2eca"/><stop offset="1" stop-color="#7542e5" stop-opacity="0"/></linearGradient></defs><path d="M0 0h664v90H0z" fill-rule="evenodd" fill="url(#b)"/><path fill="url(#c)" d="M504 0h160v90H504z"/><path d="M664 90V0H536c4.4 35.42 18.65 66.86 39.21 90z" fill-rule="evenodd" fill="url(#a)"/><path d="M664 90V0h-83c1.56 34.75 13.2 66.18 31.37 90z" fill-rule="evenodd" fill="url(#d)"/><path d="M650.22 90H664V0h-48a51.79 51.79 0 0 0 2.65 9.31z" fill="#7542e5" fill-rule="evenodd"/><path d="M649 0h15v28a130.53 130.53 0 0 0-15-28z" fill="#20123a" fill-rule="evenodd"/><path d="M650.22 90H664V0h-48a51.79 51.79 0 0 0 2.65 9.31z" fill-rule="evenodd" fill="url(#e)"/><path d="M0 0h160v90H0z" fill="url(#f)"/><path d="M128 90v-2.61C128 45 104.13 9.44 72 0H38C23 4.41 9.8 14.49 0 28.31V90z" fill="url(#g)"/><path d="M106.29 90a110.93 110.93 0 0 0 .71-12.46C107 44.49 92.5 15.6 70.9 0H0v90z" fill="url(#h)"/><path d="M98.35 90a54 54 0 0 0-9.09-23.29L42.2 0H0v89.27l.52.73z" fill="url(#i)"/><path d="M46.47 90A122.45 122.45 0 0 0 33 67.85l-2.18-3C16.62 46.34 8.42 23.51 6.16 0H0v90z" fill="#20123a"/><path d="M28 35.72V.5L156 0v35.22h508V90H0V35.22z" fill="#fff" fill-opacity=".8"/><path d="M28 0h128v5H28z" fill="#bb8bff"/><path d="M56.5 18h71a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5h-71a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5zm128 0h71a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5h-71a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5z" fill="#2b1b4c"/><rect x="82.5" y="48.5" width="533" height="29" rx="4" fill="#fff"/><path d="M98.5 61h425a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5h-425a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5z" fill="#2b1b4c"/><circle cx="27" cy="63" r="7" fill="#6e46d5"/><circle cx="55" cy="63" r="7" fill="#6e46d5"/><rect x="630" y="54" width="18" height="2.67" rx="1.33" fill="#6e46d5"/><rect x="630" y="60.67" width="18" height="2.67" rx="1.33" fill="#6e46d5"/><rect x="630" y="67" width="18" height="2.67" rx="1.33" fill="#6e46d5"/></svg>
<svg data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" width="664" height="90"><defs><linearGradient id="b" x1="324.11" y1="53.56" x2="324.11" y2="52.83" gradientTransform="matrix(72 0 0 -128 -23004 6821)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#ff6bba"/><stop offset="1" stop-color="#ffc999"/></linearGradient><linearGradient id="c" x1="579.97" y1="46.46" x2="524.59" y2="66.59" gradientUnits="userSpaceOnUse"><stop offset=".27" stop-color="#fe82a4"/><stop offset="1" stop-color="#fe7fa3" stop-opacity="0"/></linearGradient><linearGradient id="a" x1="602.6" y1="42.67" x2="543.8" y2="95.35" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fc4ca0"/><stop offset="1" stop-color="#ffa769"/></linearGradient><linearGradient id="d" x1="627.55" y1="5.24" x2="616.47" y2="92.5" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#7542e5"/><stop offset=".15" stop-color="#8b4ee5"/><stop offset=".62" stop-color="#ff4aa2"/><stop offset="1" stop-color="#ff778e"/></linearGradient><linearGradient id="e" x1="644.75" y1="11.14" x2="640.27" y2="43.06" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#20123a"/><stop offset="1" stop-color="#20123a" stop-opacity="0"/></linearGradient><linearGradient id="f" x1="322.39" y1="52.97" x2="322.66" y2="52.88" gradientTransform="matrix(160 0 0 -128 -51516 6821)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fc56a1"/><stop offset="1" stop-color="#fc56a1" stop-opacity="0"/></linearGradient><linearGradient id="g" x1="42.61" y1="47.79" x2="98.34" y2="78.93" href="#a"/><linearGradient id="h" x1="12.93" y1="23.88" x2="60.52" y2="67.77" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#4e27a4"/><stop offset=".34" stop-color="#8b4ee5"/><stop offset=".73" stop-color="#ff4ad9"/><stop offset="1" stop-color="#ff778e"/></linearGradient><linearGradient id="i" x1="-9.97" y1="1.03" x2="65.82" y2="107.4" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#20123a"/><stop offset=".51" stop-color="#5f2eca"/><stop offset="1" stop-color="#7542e5" stop-opacity="0"/></linearGradient></defs><path d="M0 0h664v90H0z" fill-rule="evenodd" fill="url(#b)"/><path fill="url(#c)" d="M504 0h160v90H504z"/><path d="M664 90V0H536c4.4 35.42 18.65 66.86 39.21 90z" fill-rule="evenodd" fill="url(#a)"/><path d="M664 90V0h-83c1.56 34.75 13.2 66.18 31.37 90z" fill-rule="evenodd" fill="url(#d)"/><path d="M650.22 90H664V0h-48a51.79 51.79 0 0 0 2.65 9.31z" fill="#7542e5" fill-rule="evenodd"/><path d="M649 0h15v28a130.53 130.53 0 0 0-15-28z" fill="#20123a" fill-rule="evenodd"/><path d="M650.22 90H664V0h-48a51.79 51.79 0 0 0 2.65 9.31z" fill-rule="evenodd" fill="url(#e)"/><path d="M0 0h160v90H0z" fill="url(#f)"/><path d="M128 90v-2.61C128 45 104.13 9.44 72 0H38C23 4.41 9.8 14.49 0 28.31V90z" fill="url(#g)"/><path d="M106.29 90a110.93 110.93 0 0 0 .71-12.46C107 44.49 92.5 15.6 70.9 0H0v90z" fill="url(#h)"/><path d="M98.35 90a54 54 0 0 0-9.09-23.29L42.2 0H0v89.27l.52.73z" fill="url(#i)"/><path d="M46.47 90A122.45 122.45 0 0 0 33 67.85l-2.18-3C16.62 46.34 8.42 23.51 6.16 0H0v90z" fill="#20123a"/><path d="M28 35.72V.5L156 0v35.22h508V90H0V35.22z" fill="#fff" fill-opacity=".8"/><path d="M28 0h128v5H28z" fill="#bb8bff"/><path d="M56.5 18h71a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5h-71a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5zm128 0h71a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5h-71a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5z" fill="#2b1b4c"/><rect x="82.5" y="48.5" width="533" height="29" rx="4" fill="#fff"/><path d="M98.5 61h425a2.5 2.5 0 0 1 2.5 2.5 2.5 2.5 0 0 1-2.5 2.5h-425a2.5 2.5 0 0 1-2.5-2.5 2.5 2.5 0 0 1 2.5-2.5z" fill="#2b1b4c"/><circle cx="27" cy="63" r="7" fill="#6e46d5"/><circle cx="55" cy="63" r="7" fill="#6e46d5"/><rect x="630" y="54" width="18" height="2.67" rx="1.33" fill="#6e46d5"/><rect x="630" y="60.67" width="18" height="2.67" rx="1.33" fill="#6e46d5"/><rect x="630" y="67" width="18" height="2.67" rx="1.33" fill="#6e46d5"/></svg>

До

Ширина:  |  Высота:  |  Размер: 4.1 KiB

После

Ширина:  |  Высота:  |  Размер: 4.1 KiB

Просмотреть файл

@ -2,7 +2,7 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14" viewBox="0 0 14 14">
<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 14 14">
<style>
circle {
fill: #808080;

До

Ширина:  |  Высота:  |  Размер: 630 B

После

Ширина:  |  Высота:  |  Размер: 587 B

Просмотреть файл

@ -1,6 +1,6 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 12 12">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 12">
<path fill="context-fill" d="M6 9L1 4l1-1 4 4 4-4 1 1z"/>
</svg>

До

Ширина:  |  Высота:  |  Размер: 383 B

После

Ширина:  |  Высота:  |  Размер: 340 B