| Index: Source/core/dom/Text.cpp
|
| diff --git a/Source/core/dom/Text.cpp b/Source/core/dom/Text.cpp
|
| index 662c040a6e3292c704e95a47d3dffffef91dd6bf..2e1143bbcdc620a55ba915c08c7e20e7b3adf229 100644
|
| --- a/Source/core/dom/Text.cpp
|
| +++ b/Source/core/dom/Text.cpp
|
| @@ -257,6 +257,9 @@ bool Text::textRendererIsNeeded(const RenderStyle& style, const RenderObject& pa
|
| if (!parent.canHaveWhitespaceChildren())
|
| return false;
|
|
|
| + if (style.whiteSpace() == PRE_WRAP && parent.isSVG()) // pre-wrap in SVG never makes renderer.
|
| + return false;
|
| +
|
| if (style.preserveNewline()) // pre/pre-wrap/pre-line always make renderers.
|
| return true;
|
|
|
|
|