Index: Source/core/svg/SVGViewSpec.h |
diff --git a/Source/core/svg/SVGViewSpec.h b/Source/core/svg/SVGViewSpec.h |
index c4a393eab97c355924da48e86a69952ce9fd0283..1e6a464a2b6b357f342298e7a6a9aac022bceb0a 100644 |
--- a/Source/core/svg/SVGViewSpec.h |
+++ b/Source/core/svg/SVGViewSpec.h |
@@ -80,7 +80,7 @@ void SVGViewSpec::inheritViewAttributesFromElement(T* inheritFromElement) |
if (inheritFromElement->hasAttribute(SVGNames::viewBoxAttr)) |
viewBox()->baseValue()->setValue(inheritFromElement->viewBox()->currentValue()->value()); |
- if (inheritFromElement->hasAttribute(SVGNames::preserveAspectRatioAttr)) { |
+ if (inheritFromElement->preserveAspectRatio()->currentValue()->align() != SVGPreserveAspectRatio::SVG_PRESERVEASPECTRATIO_UNKNOWN && inheritFromElement->preserveAspectRatio()->currentValue()->meetOrSlice() != SVGPreserveAspectRatio::SVG_MEETORSLICE_UNKNOWN) { |
fs
2015/04/23 08:30:32
I believe what you want here is inheritFromElement
|
preserveAspectRatio()->baseValue()->setAlign(inheritFromElement->preserveAspectRatio()->currentValue()->align()); |
preserveAspectRatio()->baseValue()->setMeetOrSlice(inheritFromElement->preserveAspectRatio()->currentValue()->meetOrSlice()); |
} |