OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2006 Nikolas Zimmermann <zimmermann@kde.org> |
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2010 Rob Buis <buis@kde.org> |
4 * Copyright (C) 2007 Apple Inc. All rights reserved. | 4 * Copyright (C) 2007 Apple Inc. All rights reserved. |
5 * Copyright (C) 2014 Google, Inc. | 5 * Copyright (C) 2014 Google, Inc. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 view->preserveAspectRatio()->baseValue()->setAlign(preserveAspectRatio()
->currentValue()->align()); | 763 view->preserveAspectRatio()->baseValue()->setAlign(preserveAspectRatio()
->currentValue()->align()); |
764 view->preserveAspectRatio()->baseValue()->setMeetOrSlice(preserveAspectR
atio()->currentValue()->meetOrSlice()); | 764 view->preserveAspectRatio()->baseValue()->setMeetOrSlice(preserveAspectR
atio()->currentValue()->meetOrSlice()); |
765 } | 765 } |
766 | 766 |
767 if (viewElement->hasAttribute(SVGNames::zoomAndPanAttr)) | 767 if (viewElement->hasAttribute(SVGNames::zoomAndPanAttr)) |
768 view->setZoomAndPan(viewElement->zoomAndPan()); | 768 view->setZoomAndPan(viewElement->zoomAndPan()); |
769 else | 769 else |
770 view->setZoomAndPan(zoomAndPan()); | 770 view->setZoomAndPan(zoomAndPan()); |
771 } | 771 } |
772 | 772 |
| 773 void SVGSVGElement::finishParsingChildren() |
| 774 { |
| 775 SVGGraphicsElement::finishParsingChildren(); |
| 776 |
| 777 // The outermost SVGSVGElement SVGLoad event is fired through Document::disp
atchWindowLoadEvent. |
| 778 if (isOutermostSVGSVGElement()) |
| 779 return; |
| 780 |
| 781 // finishParsingChildren() is called when the close tag is reached for an el
ement (e.g. </svg>) |
| 782 // we send SVGLoad events here if we can, otherwise they'll be sent when any
required loads finish |
| 783 sendSVGLoadEventIfPossible(); |
773 } | 784 } |
| 785 |
| 786 } |
OLD | NEW |