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

Side by Side Diff: Source/core/svg/SVGSVGElement.cpp

Issue 1025883002: Oilpan: revert SVG GC mixin constructor workaround. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/svg/SVGPatternElement.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('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, 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 #include "platform/FloatConversion.h" 54 #include "platform/FloatConversion.h"
55 #include "platform/LengthFunctions.h" 55 #include "platform/LengthFunctions.h"
56 #include "platform/geometry/FloatRect.h" 56 #include "platform/geometry/FloatRect.h"
57 #include "platform/transforms/AffineTransform.h" 57 #include "platform/transforms/AffineTransform.h"
58 #include "wtf/StdLibExtras.h" 58 #include "wtf/StdLibExtras.h"
59 59
60 namespace blink { 60 namespace blink {
61 61
62 inline SVGSVGElement::SVGSVGElement(Document& doc) 62 inline SVGSVGElement::SVGSVGElement(Document& doc)
63 : SVGGraphicsElement(SVGNames::svgTag, doc) 63 : SVGGraphicsElement(SVGNames::svgTag, doc)
64 , SVGFitToViewBox(this)
64 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG LengthMode::Width), AllowNegativeLengths)) 65 , m_x(SVGAnimatedLength::create(this, SVGNames::xAttr, SVGLength::create(SVG LengthMode::Width), AllowNegativeLengths))
65 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG LengthMode::Height), AllowNegativeLengths)) 66 , m_y(SVGAnimatedLength::create(this, SVGNames::yAttr, SVGLength::create(SVG LengthMode::Height), AllowNegativeLengths))
66 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(SVGLengthMode::Width), ForbidNegativeLengths)) 67 , m_width(SVGAnimatedLength::create(this, SVGNames::widthAttr, SVGLength::cr eate(SVGLengthMode::Width), ForbidNegativeLengths))
67 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(SVGLengthMode::Height), ForbidNegativeLengths)) 68 , m_height(SVGAnimatedLength::create(this, SVGNames::heightAttr, SVGLength:: create(SVGLengthMode::Height), ForbidNegativeLengths))
68 , m_useCurrentView(false) 69 , m_useCurrentView(false)
69 , m_timeContainer(SMILTimeContainer::create(*this)) 70 , m_timeContainer(SMILTimeContainer::create(*this))
70 , m_translation(SVGPoint::create()) 71 , m_translation(SVGPoint::create())
71 { 72 {
72 SVGFitToViewBox::initialize(this);
73
74 m_width->setDefaultValueAsString("100%"); 73 m_width->setDefaultValueAsString("100%");
75 m_height->setDefaultValueAsString("100%"); 74 m_height->setDefaultValueAsString("100%");
76 75
77 addToPropertyMap(m_x); 76 addToPropertyMap(m_x);
78 addToPropertyMap(m_y); 77 addToPropertyMap(m_y);
79 addToPropertyMap(m_width); 78 addToPropertyMap(m_width);
80 addToPropertyMap(m_height); 79 addToPropertyMap(m_height);
81 80
82 UseCounter::count(doc, UseCounter::SVGSVGElement); 81 UseCounter::count(doc, UseCounter::SVGSVGElement);
83 } 82 }
(...skipping 699 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 visitor->trace(m_width); 782 visitor->trace(m_width);
784 visitor->trace(m_height); 783 visitor->trace(m_height);
785 visitor->trace(m_translation); 784 visitor->trace(m_translation);
786 visitor->trace(m_timeContainer); 785 visitor->trace(m_timeContainer);
787 visitor->trace(m_viewSpec); 786 visitor->trace(m_viewSpec);
788 SVGGraphicsElement::trace(visitor); 787 SVGGraphicsElement::trace(visitor);
789 SVGFitToViewBox::trace(visitor); 788 SVGFitToViewBox::trace(visitor);
790 } 789 }
791 790
792 } // namespace blink 791 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGPatternElement.cpp ('k') | Source/core/svg/SVGScriptElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698