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

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

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix a crashers (everything is building!) 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org> 2 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Nikolas Zimmermann <zimmermann@kde .org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle) 143 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle)
144 { 144 {
145 ASSERT(angle); 145 ASSERT(angle);
146 RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); 146 RefPtrWillBeRawPtr<SVGAngle> target = angle->target();
147 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe t->valueInSpecifiedUnits()); 147 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe t->valueInSpecifiedUnits());
148 invalidateSVGAttributes(); 148 invalidateSVGAttributes();
149 svgAttributeChanged(SVGNames::orientAttr); 149 svgAttributeChanged(SVGNames::orientAttr);
150 } 150 }
151 151
152 RenderObject* SVGMarkerElement::createRenderer(RenderStyle*) 152 RenderObject* SVGMarkerElement::createRenderer(const RenderStyle*)
153 { 153 {
154 return new RenderSVGResourceMarker(this); 154 return new RenderSVGResourceMarker(this);
155 } 155 }
156 156
157 bool SVGMarkerElement::selfHasRelativeLengths() const 157 bool SVGMarkerElement::selfHasRelativeLengths() const
158 { 158 {
159 return m_refX->currentValue()->isRelative() 159 return m_refX->currentValue()->isRelative()
160 || m_refY->currentValue()->isRelative() 160 || m_refY->currentValue()->isRelative()
161 || m_markerWidth->currentValue()->isRelative() 161 || m_markerWidth->currentValue()->isRelative()
162 || m_markerHeight->currentValue()->isRelative(); 162 || m_markerHeight->currentValue()->isRelative();
163 } 163 }
164 164
165 } // namespace blink 165 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698