| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2004, 2005, 2007 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> | 3 * Copyright (C) 2004, 2005, 2007, 2008, 2009 Rob Buis <buis@kde.org> |
| 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> | 4 * Copyright (C) 2007 Eric Seidel <eric@webkit.org> |
| 5 * Copyright (C) 2009 Google, Inc. | 5 * Copyright (C) 2009 Google, Inc. |
| 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 6 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 , m_isLayoutSizeChanged(false) | 49 , m_isLayoutSizeChanged(false) |
| 50 , m_needsBoundariesOrTransformUpdate(true) | 50 , m_needsBoundariesOrTransformUpdate(true) |
| 51 , m_hasBoxDecorationBackground(false) | 51 , m_hasBoxDecorationBackground(false) |
| 52 { | 52 { |
| 53 } | 53 } |
| 54 | 54 |
| 55 RenderSVGRoot::~RenderSVGRoot() | 55 RenderSVGRoot::~RenderSVGRoot() |
| 56 { | 56 { |
| 57 } | 57 } |
| 58 | 58 |
| 59 void RenderSVGRoot::trace(Visitor* visitor) | |
| 60 { | |
| 61 visitor->trace(m_children); | |
| 62 RenderReplaced::trace(visitor); | |
| 63 } | |
| 64 | |
| 65 void RenderSVGRoot::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, d
ouble& intrinsicRatio) const | 59 void RenderSVGRoot::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, d
ouble& intrinsicRatio) const |
| 66 { | 60 { |
| 67 // Spec: http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing | 61 // Spec: http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing |
| 68 // SVG needs to specify how to calculate some intrinsic sizing properties to
enable inclusion within other languages. | 62 // SVG needs to specify how to calculate some intrinsic sizing properties to
enable inclusion within other languages. |
| 69 // The intrinsic width and height of the viewport of SVG content must be det
ermined from the ‘width’ and ‘height’ attributes. | 63 // The intrinsic width and height of the viewport of SVG content must be det
ermined from the ‘width’ and ‘height’ attributes. |
| 70 SVGSVGElement* svg = toSVGSVGElement(node()); | 64 SVGSVGElement* svg = toSVGSVGElement(node()); |
| 71 ASSERT(svg); | 65 ASSERT(svg); |
| 72 | 66 |
| 73 // The intrinsic aspect ratio of the viewport of SVG content is necessary fo
r example, when including SVG from an ‘object’ | 67 // The intrinsic aspect ratio of the viewport of SVG content is necessary fo
r example, when including SVG from an ‘object’ |
| 74 // element in HTML styled with CSS. It is possible (indeed, common) for an S
VG graphic to have an intrinsic aspect ratio but | 68 // element in HTML styled with CSS. It is possible (indeed, common) for an S
VG graphic to have an intrinsic aspect ratio but |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 updateHitTestResult(result, pointInBorderBox); | 451 updateHitTestResult(result, pointInBorderBox); |
| 458 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn
Container, boundsRect)) | 452 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn
Container, boundsRect)) |
| 459 return true; | 453 return true; |
| 460 } | 454 } |
| 461 } | 455 } |
| 462 | 456 |
| 463 return false; | 457 return false; |
| 464 } | 458 } |
| 465 | 459 |
| 466 } | 460 } |
| OLD | NEW |