Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(182)

Side by Side Diff: Source/core/rendering/svg/RenderSVGRoot.cpp

Issue 423093002: Oilpan: Prepare to move RenderObject and RenderObjectChildList to Oilpan heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: add more trace Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
59 void RenderSVGRoot::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, d ouble& intrinsicRatio) const 65 void RenderSVGRoot::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, d ouble& intrinsicRatio) const
60 { 66 {
61 // Spec: http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing 67 // Spec: http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing
62 // SVG needs to specify how to calculate some intrinsic sizing properties to enable inclusion within other languages. 68 // SVG needs to specify how to calculate some intrinsic sizing properties to enable inclusion within other languages.
63 // The intrinsic width and height of the viewport of SVG content must be det ermined from the ‘width’ and ‘height’ attributes. 69 // The intrinsic width and height of the viewport of SVG content must be det ermined from the ‘width’ and ‘height’ attributes.
64 SVGSVGElement* svg = toSVGSVGElement(node()); 70 SVGSVGElement* svg = toSVGSVGElement(node());
65 ASSERT(svg); 71 ASSERT(svg);
66 72
67 // The intrinsic aspect ratio of the viewport of SVG content is necessary fo r example, when including SVG from an ‘object’ 73 // The intrinsic aspect ratio of the viewport of SVG content is necessary fo r example, when including SVG from an ‘object’
68 // element in HTML styled with CSS. It is possible (indeed, common) for an S VG graphic to have an intrinsic aspect ratio but 74 // 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
451 updateHitTestResult(result, pointInBorderBox); 457 updateHitTestResult(result, pointInBorderBox);
452 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect)) 458 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect))
453 return true; 459 return true;
454 } 460 }
455 } 461 }
456 462
457 return false; 463 return false;
458 } 464 }
459 465
460 } 466 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698