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

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

Issue 2390773004: reflow comments in core/svg/ (Closed)
Patch Set: comments (heh!) Created 4 years, 2 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
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
3 * <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org> 4 * Copyright (C) 2004, 2005, 2006, 2007 Rob Buis <buis@kde.org>
4 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 5 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
5 * 6 *
6 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
9 * 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.
10 * 11 *
11 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 SVGLength::create(SVGLengthMode::Width))), 57 SVGLength::create(SVGLengthMode::Width))),
57 m_markerHeight( 58 m_markerHeight(
58 SVGAnimatedLength::create(this, 59 SVGAnimatedLength::create(this,
59 SVGNames::markerHeightAttr, 60 SVGNames::markerHeightAttr,
60 SVGLength::create(SVGLengthMode::Height))), 61 SVGLength::create(SVGLengthMode::Height))),
61 m_orientAngle(SVGAnimatedAngle::create(this)), 62 m_orientAngle(SVGAnimatedAngle::create(this)),
62 m_markerUnits(SVGAnimatedEnumeration<SVGMarkerUnitsType>::create( 63 m_markerUnits(SVGAnimatedEnumeration<SVGMarkerUnitsType>::create(
63 this, 64 this,
64 SVGNames::markerUnitsAttr, 65 SVGNames::markerUnitsAttr,
65 SVGMarkerUnitsStrokeWidth)) { 66 SVGMarkerUnitsStrokeWidth)) {
66 // Spec: If the markerWidth/markerHeight attribute is not specified, the effec t is as if a value of "3" were specified. 67 // Spec: If the markerWidth/markerHeight attribute is not specified, the
68 // effect is as if a value of "3" were specified.
67 m_markerWidth->setDefaultValueAsString("3"); 69 m_markerWidth->setDefaultValueAsString("3");
68 m_markerHeight->setDefaultValueAsString("3"); 70 m_markerHeight->setDefaultValueAsString("3");
69 71
70 addToPropertyMap(m_refX); 72 addToPropertyMap(m_refX);
71 addToPropertyMap(m_refY); 73 addToPropertyMap(m_refY);
72 addToPropertyMap(m_markerWidth); 74 addToPropertyMap(m_markerWidth);
73 addToPropertyMap(m_markerHeight); 75 addToPropertyMap(m_markerHeight);
74 addToPropertyMap(m_orientAngle); 76 addToPropertyMap(m_orientAngle);
75 addToPropertyMap(m_markerUnits); 77 addToPropertyMap(m_markerUnits);
76 } 78 }
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 148 }
147 149
148 bool SVGMarkerElement::selfHasRelativeLengths() const { 150 bool SVGMarkerElement::selfHasRelativeLengths() const {
149 return m_refX->currentValue()->isRelative() || 151 return m_refX->currentValue()->isRelative() ||
150 m_refY->currentValue()->isRelative() || 152 m_refY->currentValue()->isRelative() ||
151 m_markerWidth->currentValue()->isRelative() || 153 m_markerWidth->currentValue()->isRelative() ||
152 m_markerHeight->currentValue()->isRelative(); 154 m_markerHeight->currentValue()->isRelative();
153 } 155 }
154 156
155 } // namespace blink 157 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGMarkerElement.h ('k') | third_party/WebKit/Source/core/svg/SVGMaskElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698