зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1093327 - Correct marker orientation of polygon and polylines. r=cam
This commit is contained in:
Родитель
5a9230e92a
Коммит
6e7cf817ac
|
@ -105,7 +105,7 @@ nsSVGPolyElement::GetMarkPoints(nsTArray<nsSVGMark> *aMarks)
|
|||
if (i == 1) {
|
||||
aMarks->ElementAt(0).angle = angle;
|
||||
} else {
|
||||
aMarks->ElementAt(aMarks->Length() - 2).angle =
|
||||
aMarks->ElementAt(aMarks->Length() - 1).angle =
|
||||
SVGContentUtils::AngleBisect(prevAngle, angle);
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<marker id="startMarker" markerUnits="userSpaceOnUse" orient="auto" markerWidth="30" markerHeight="45" refX="15" refY="22.5">
|
||||
<rect fill="red" x="0.5" y="0.5" width="29" height="44"/>
|
||||
</marker>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
<polyline fill="none" marker-start="url(#startMarker)" points="190 40 220 40 310 190 340 190"/>
|
||||
<rect x="175" y="18" width="30" height="45" fill="lime" />
|
||||
|
||||
</svg>
|
После Ширина: | Высота: | Размер: 602 B |
|
@ -200,6 +200,7 @@ fuzzy-if(cocoaWidget,15,19679) fuzzy-if(winWidget,1,8800) fuzzy-if(!cocoaWidget&
|
|||
== marker-viewBox-01.svg marker-viewBox-01-ref.svg
|
||||
== marker-orientation-01.svg marker-orientation-01-ref.svg
|
||||
pref(svg.marker-improvements.enabled,true) == marker-orientation-02.svg marker-orientation-02-ref.svg
|
||||
== marker-orientation-03.svg pass.svg
|
||||
== mask-basic-01.svg pass.svg
|
||||
== mask-basic-02.svg mask-basic-02-ref.svg
|
||||
== mask-basic-03.svg pass.svg
|
||||
|
|
Загрузка…
Ссылка в новой задаче