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

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

Issue 869323003: Oilpan: move RenderObjects off heap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review-induced improvements Created 5 years, 10 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
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | Source/core/svg/LinearGradientAttributes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 , m_hasBoxDecorationBackground(false) 48 , m_hasBoxDecorationBackground(false)
49 , m_hasNonIsolatedBlendingDescendants(false) 49 , m_hasNonIsolatedBlendingDescendants(false)
50 , m_hasNonIsolatedBlendingDescendantsDirty(false) 50 , m_hasNonIsolatedBlendingDescendantsDirty(false)
51 { 51 {
52 } 52 }
53 53
54 RenderSVGRoot::~RenderSVGRoot() 54 RenderSVGRoot::~RenderSVGRoot()
55 { 55 {
56 } 56 }
57 57
58 void RenderSVGRoot::trace(Visitor* visitor)
59 {
60 visitor->trace(m_children);
61 RenderReplaced::trace(visitor);
62 }
63
64 void RenderSVGRoot::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, d ouble& intrinsicRatio) const 58 void RenderSVGRoot::computeIntrinsicRatioInformation(FloatSize& intrinsicSize, d ouble& intrinsicRatio) const
65 { 59 {
66 // Spec: http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing 60 // Spec: http://www.w3.org/TR/SVG/coords.html#IntrinsicSizing
67 // SVG needs to specify how to calculate some intrinsic sizing properties to enable inclusion within other languages. 61 // SVG needs to specify how to calculate some intrinsic sizing properties to enable inclusion within other languages.
68 // The intrinsic width and height of the viewport of SVG content must be det ermined from the ‘width’ and ‘height’ attributes. 62 // The intrinsic width and height of the viewport of SVG content must be det ermined from the ‘width’ and ‘height’ attributes.
69 SVGSVGElement* svg = toSVGSVGElement(node()); 63 SVGSVGElement* svg = toSVGSVGElement(node());
70 ASSERT(svg); 64 ASSERT(svg);
71 65
72 // The intrinsic aspect ratio of the viewport of SVG content is necessary fo r example, when including SVG from an ‘object’ 66 // The intrinsic aspect ratio of the viewport of SVG content is necessary fo r example, when including SVG from an ‘object’
73 // element in HTML styled with CSS. It is possible (indeed, common) for an S VG graphic to have an intrinsic aspect ratio but 67 // element in HTML styled with CSS. It is possible (indeed, common) for an S VG graphic to have an intrinsic aspect ratio but
(...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 updateHitTestResult(result, pointInBorderBox); 425 updateHitTestResult(result, pointInBorderBox);
432 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect)) 426 if (!result.addNodeToRectBasedTestResult(node(), request, locationIn Container, boundsRect))
433 return true; 427 return true;
434 } 428 }
435 } 429 }
436 430
437 return false; 431 return false;
438 } 432 }
439 433
440 } 434 }
OLDNEW
« no previous file with comments | « Source/core/rendering/svg/RenderSVGRoot.h ('k') | Source/core/svg/LinearGradientAttributes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698