diff --git a/layout/reftests/svg/text/reftest.list b/layout/reftests/svg/text/reftest.list index 7ab8aebfa854..175e6ad817ee 100644 --- a/layout/reftests/svg/text/reftest.list +++ b/layout/reftests/svg/text/reftest.list @@ -29,6 +29,7 @@ default-preferences pref(svg.text.css-frames.enabled,true) == simple-fill-color.svg simple-fill-color-ref.html HTTP(../..) == simple-fill-gradient.svg simple-fill-gradient-ref.svg == simple-fill-none.svg simple.svg +== simple-pointer-events.svg simple.svg == simple-multiple-dx.svg simple-multiple-dx-ref.html == simple-multiple-dx-2.svg simple-multiple-dx.svg diff --git a/layout/reftests/svg/text/simple-pointer-events.svg b/layout/reftests/svg/text/simple-pointer-events.svg new file mode 100644 index 000000000000..6c572418bb98 --- /dev/null +++ b/layout/reftests/svg/text/simple-pointer-events.svg @@ -0,0 +1,7 @@ + + + hello + diff --git a/layout/svg/nsSVGTextFrame2.cpp b/layout/svg/nsSVGTextFrame2.cpp index 138e8b406bae..7c2c253d7082 100644 --- a/layout/svg/nsSVGTextFrame2.cpp +++ b/layout/svg/nsSVGTextFrame2.cpp @@ -3333,7 +3333,7 @@ nsSVGTextFrame2::ReflowSVG() uint16_t hitTestFlags = nsSVGUtils::GetGeometryHitTestFlags(run.mFrame); if ((hitTestFlags & SVG_HIT_TEST_FILL) || - run.mFrame->StyleSVG()->mFill.mType == eStyleSVGPaintType_None) { + run.mFrame->StyleSVG()->mFill.mType != eStyleSVGPaintType_None) { runFlags |= TextRenderedRun::eIncludeFill; } if ((hitTestFlags & SVG_HIT_TEST_STROKE) ||