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

Side by Side Diff: third_party/WebKit/Source/core/svg/SVGLinearGradientElement.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 26 matching lines...) Expand all
37 m_y1(SVGAnimatedLength::create(this, 37 m_y1(SVGAnimatedLength::create(this,
38 SVGNames::y1Attr, 38 SVGNames::y1Attr,
39 SVGLength::create(SVGLengthMode::Height))), 39 SVGLength::create(SVGLengthMode::Height))),
40 m_x2(SVGAnimatedLength::create(this, 40 m_x2(SVGAnimatedLength::create(this,
41 SVGNames::x2Attr, 41 SVGNames::x2Attr,
42 SVGLength::create(SVGLengthMode::Width))), 42 SVGLength::create(SVGLengthMode::Width))),
43 m_y2( 43 m_y2(
44 SVGAnimatedLength::create(this, 44 SVGAnimatedLength::create(this,
45 SVGNames::y2Attr, 45 SVGNames::y2Attr,
46 SVGLength::create(SVGLengthMode::Height))) { 46 SVGLength::create(SVGLengthMode::Height))) {
47 // Spec: If the x1|y1|y2 attribute is not specified, the effect is as if a val ue of "0%" were specified. 47 // Spec: If the x1|y1|y2 attribute is not specified, the effect is as if a
48 // value of "0%" were specified.
48 m_x1->setDefaultValueAsString("0%"); 49 m_x1->setDefaultValueAsString("0%");
49 m_y1->setDefaultValueAsString("0%"); 50 m_y1->setDefaultValueAsString("0%");
50 m_y2->setDefaultValueAsString("0%"); 51 m_y2->setDefaultValueAsString("0%");
51 52
52 // Spec: If the x2 attribute is not specified, the effect is as if a value of "100%" were specified. 53 // Spec: If the x2 attribute is not specified, the effect is as if a value of
54 // "100%" were specified.
53 m_x2->setDefaultValueAsString("100%"); 55 m_x2->setDefaultValueAsString("100%");
54 56
55 addToPropertyMap(m_x1); 57 addToPropertyMap(m_x1);
56 addToPropertyMap(m_y1); 58 addToPropertyMap(m_y1);
57 addToPropertyMap(m_x2); 59 addToPropertyMap(m_x2);
58 addToPropertyMap(m_y2); 60 addToPropertyMap(m_y2);
59 } 61 }
60 62
61 DEFINE_TRACE(SVGLinearGradientElement) { 63 DEFINE_TRACE(SVGLinearGradientElement) {
62 visitor->trace(m_x1); 64 visitor->trace(m_x1);
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 } 173 }
172 174
173 bool SVGLinearGradientElement::selfHasRelativeLengths() const { 175 bool SVGLinearGradientElement::selfHasRelativeLengths() const {
174 return m_x1->currentValue()->isRelative() || 176 return m_x1->currentValue()->isRelative() ||
175 m_y1->currentValue()->isRelative() || 177 m_y1->currentValue()->isRelative() ||
176 m_x2->currentValue()->isRelative() || 178 m_x2->currentValue()->isRelative() ||
177 m_y2->currentValue()->isRelative(); 179 m_y2->currentValue()->isRelative();
178 } 180 }
179 181
180 } // namespace blink 182 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGLengthTearOff.cpp ('k') | third_party/WebKit/Source/core/svg/SVGMPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698