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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGRadialGradientElement.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, 2008 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 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) 2008 Eric Seidel <eric@webkit.org> 4 * Copyright (C) 2008 Eric Seidel <eric@webkit.org>
5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2008 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. 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 30 matching lines...) Expand all
41 SVGLength::create(SVGLengthMode::Other))), 41 SVGLength::create(SVGLengthMode::Other))),
42 m_fx(SVGAnimatedLength::create(this, 42 m_fx(SVGAnimatedLength::create(this,
43 SVGNames::fxAttr, 43 SVGNames::fxAttr,
44 SVGLength::create(SVGLengthMode::Width))), 44 SVGLength::create(SVGLengthMode::Width))),
45 m_fy(SVGAnimatedLength::create(this, 45 m_fy(SVGAnimatedLength::create(this,
46 SVGNames::fyAttr, 46 SVGNames::fyAttr,
47 SVGLength::create(SVGLengthMode::Height))), 47 SVGLength::create(SVGLengthMode::Height))),
48 m_fr(SVGAnimatedLength::create(this, 48 m_fr(SVGAnimatedLength::create(this,
49 SVGNames::frAttr, 49 SVGNames::frAttr,
50 SVGLength::create(SVGLengthMode::Other))) { 50 SVGLength::create(SVGLengthMode::Other))) {
51 // Spec: If the cx/cy/r attribute is not specified, the effect is as if a valu e of "50%" were specified. 51 // Spec: If the cx/cy/r attribute is not specified, the effect is as if a
52 // value of "50%" were specified.
52 m_cx->setDefaultValueAsString("50%"); 53 m_cx->setDefaultValueAsString("50%");
53 m_cy->setDefaultValueAsString("50%"); 54 m_cy->setDefaultValueAsString("50%");
54 m_r->setDefaultValueAsString("50%"); 55 m_r->setDefaultValueAsString("50%");
55 56
56 // SVG2-Draft Spec: If the fr attributed is not specified, the effect is as if a value of "0%" were specified. 57 // SVG2-Draft Spec: If the fr attributed is not specified, the effect is as if
58 // a value of "0%" were specified.
57 m_fr->setDefaultValueAsString("0%"); 59 m_fr->setDefaultValueAsString("0%");
58 60
59 addToPropertyMap(m_cx); 61 addToPropertyMap(m_cx);
60 addToPropertyMap(m_cy); 62 addToPropertyMap(m_cy);
61 addToPropertyMap(m_r); 63 addToPropertyMap(m_r);
62 addToPropertyMap(m_fx); 64 addToPropertyMap(m_fx);
63 addToPropertyMap(m_fy); 65 addToPropertyMap(m_fy);
64 addToPropertyMap(m_fr); 66 addToPropertyMap(m_fr);
65 } 67 }
66 68
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 bool SVGRadialGradientElement::selfHasRelativeLengths() const { 196 bool SVGRadialGradientElement::selfHasRelativeLengths() const {
195 return m_cx->currentValue()->isRelative() || 197 return m_cx->currentValue()->isRelative() ||
196 m_cy->currentValue()->isRelative() || 198 m_cy->currentValue()->isRelative() ||
197 m_r->currentValue()->isRelative() || 199 m_r->currentValue()->isRelative() ||
198 m_fx->currentValue()->isRelative() || 200 m_fx->currentValue()->isRelative() ||
199 m_fy->currentValue()->isRelative() || 201 m_fy->currentValue()->isRelative() ||
200 m_fr->currentValue()->isRelative(); 202 m_fr->currentValue()->isRelative();
201 } 203 }
202 204
203 } // namespace blink 205 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGPreserveAspectRatio.cpp ('k') | third_party/WebKit/Source/core/svg/SVGRect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698