зеркало из https://github.com/mozilla/gecko-dev.git
Bug 732819 - "ASSERTION: don't think me need this any more" with font-size: 0. r=roc.
This commit is contained in:
Родитель
ad2c6d7b5a
Коммит
3b0c752628
|
@ -242,6 +242,7 @@ random-if(gtk2Widget) == objectBoundingBox-and-fePointLight-02.svg objectBoundin
|
|||
== suspend-07.svg pass.svg
|
||||
== suspend-08.svg pass.svg
|
||||
== symbol-01.svg symbol-01-ref.svg
|
||||
== text-font-size-01.svg pass.svg
|
||||
random-if(gtk2Widget) == text-font-weight-01.svg text-font-weight-01-ref.svg # bug 386713
|
||||
== text-gradient-01.svg text-gradient-01-ref.svg
|
||||
random-if(winWidget) == text-gradient-02.svg text-gradient-02-ref.svg # see bug 590101
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
|
||||
|
||||
<title>Test text with zero font-size</title>
|
||||
|
||||
<!-- From https://bugzilla.mozilla.org/show_bug.cgi?id=732819 -->
|
||||
|
||||
<text x="10" y="50" font-size="0">Some
|
||||
<tspan dy="30">text</tspan>
|
||||
that should not show.
|
||||
</text>
|
||||
|
||||
</svg>
|
||||
|
После Ширина: | Высота: | Размер: 409 B |
|
@ -304,6 +304,11 @@ nsSVGGlyphFrame::PaintSVG(nsRenderingContext *aContext,
|
|||
if (!GetStyleVisibility()->IsVisible())
|
||||
return NS_OK;
|
||||
|
||||
if (GetStyleFont()->mFont.size <= 0) {
|
||||
// Don't even try to paint, or cairo will go into an error state.
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
gfxContext *gfx = aContext->ThebesContext();
|
||||
PRUint16 renderMode = SVGAutoRenderState::GetRenderMode(aContext);
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче