| Index: Source/core/css/resolver/StyleResolverState.h
|
| diff --git a/Source/core/css/resolver/StyleResolverState.h b/Source/core/css/resolver/StyleResolverState.h
|
| index 4a1dc69e20d7e61b6a81076f70451bf5e445fd16..f68311c43f234306f8a2fe7a450591211e50b34f 100644
|
| --- a/Source/core/css/resolver/StyleResolverState.h
|
| +++ b/Source/core/css/resolver/StyleResolverState.h
|
| @@ -128,16 +128,6 @@ public:
|
| void setWritingMode(WritingMode writingMode) { m_fontBuilder.didChangeFontParameters(m_style->setWritingMode(writingMode)); }
|
| void setTextOrientation(TextOrientation textOrientation) { m_fontBuilder.didChangeFontParameters(m_style->setTextOrientation(textOrientation)); }
|
|
|
| - // SVG handles zooming in a different way compared to CSS. The whole document is scaled instead
|
| - // of each individual length value in the render style / tree. CSSPrimitiveValue::computeLength*()
|
| - // multiplies each resolved length with the zoom multiplier - so for SVG we need to disable that.
|
| - // Though all CSS values that can be applied to outermost <svg> elements (width/height/border/padding...)
|
| - // need to respect the scaling. RenderBox (the parent class of RenderSVGRoot) grabs values like
|
| - // width/height/border/padding/... from the RenderStyle -> for SVG these values would never scale,
|
| - // if we'd pass a 1.0 zoom factor everyhwere. So we only pass a zoom factor of 1.0 for specific
|
| - // properties that are NOT allowed to scale within a zoomed SVG document (letter/word-spacing/font-size).
|
| - bool useSVGZoomRules() const { return element() && element()->isSVGElement(); }
|
| -
|
| private:
|
| ElementResolveContext m_elementContext;
|
| Document& m_document;
|
|
|