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

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

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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/SVGMarkerElement.h ('k') | Source/core/svg/SVGMaskElement.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, 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 136
137 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle) 137 void SVGMarkerElement::setOrientToAngle(PassRefPtrWillBeRawPtr<SVGAngleTearOff> angle)
138 { 138 {
139 ASSERT(angle); 139 ASSERT(angle);
140 RefPtrWillBeRawPtr<SVGAngle> target = angle->target(); 140 RefPtrWillBeRawPtr<SVGAngle> target = angle->target();
141 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe t->valueInSpecifiedUnits()); 141 m_orientAngle->baseValue()->newValueSpecifiedUnits(target->unitType(), targe t->valueInSpecifiedUnits());
142 invalidateSVGAttributes(); 142 invalidateSVGAttributes();
143 svgAttributeChanged(SVGNames::orientAttr); 143 svgAttributeChanged(SVGNames::orientAttr);
144 } 144 }
145 145
146 LayoutObject* SVGMarkerElement::createLayoutObject(const LayoutStyle&) 146 LayoutObject* SVGMarkerElement::createLayoutObject(const ComputedStyle&)
147 { 147 {
148 return new LayoutSVGResourceMarker(this); 148 return new LayoutSVGResourceMarker(this);
149 } 149 }
150 150
151 bool SVGMarkerElement::selfHasRelativeLengths() const 151 bool SVGMarkerElement::selfHasRelativeLengths() const
152 { 152 {
153 return m_refX->currentValue()->isRelative() 153 return m_refX->currentValue()->isRelative()
154 || m_refY->currentValue()->isRelative() 154 || m_refY->currentValue()->isRelative()
155 || m_markerWidth->currentValue()->isRelative() 155 || m_markerWidth->currentValue()->isRelative()
156 || m_markerHeight->currentValue()->isRelative(); 156 || m_markerHeight->currentValue()->isRelative();
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.h ('k') | Source/core/svg/SVGMaskElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698