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

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

Issue 2436793002: Simplify SVGAnimated* initialization (Closed)
Patch Set: 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 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 2006, 2007 Nikolas Zimmermann <zimmermann@kde.org>
3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006 Rob Buis <buis@kde.org>
4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 4 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 SVGNames::yAttr, 42 SVGNames::yAttr,
43 SVGLength::create(SVGLengthMode::Height))), 43 SVGLength::create(SVGLengthMode::Height))),
44 m_width( 44 m_width(
45 SVGAnimatedLength::create(this, 45 SVGAnimatedLength::create(this,
46 SVGNames::widthAttr, 46 SVGNames::widthAttr,
47 SVGLength::create(SVGLengthMode::Width))), 47 SVGLength::create(SVGLengthMode::Width))),
48 m_height( 48 m_height(
49 SVGAnimatedLength::create(this, 49 SVGAnimatedLength::create(this,
50 SVGNames::heightAttr, 50 SVGNames::heightAttr,
51 SVGLength::create(SVGLengthMode::Height))), 51 SVGLength::create(SVGLengthMode::Height))),
52 m_result(SVGAnimatedString::create(this, 52 m_result(SVGAnimatedString::create(this, SVGNames::resultAttr)) {
53 SVGNames::resultAttr,
54 SVGString::create())) {
55 // Spec: If the x/y attribute is not specified, the effect is as if a value of 53 // Spec: If the x/y attribute is not specified, the effect is as if a value of
56 // "0%" were specified. 54 // "0%" were specified.
57 m_x->setDefaultValueAsString("0%"); 55 m_x->setDefaultValueAsString("0%");
58 m_y->setDefaultValueAsString("0%"); 56 m_y->setDefaultValueAsString("0%");
59 57
60 // Spec: If the width/height attribute is not specified, the effect is as if a 58 // Spec: If the width/height attribute is not specified, the effect is as if a
61 // value of "100%" were specified. 59 // value of "100%" were specified.
62 m_width->setDefaultValueAsString("100%"); 60 m_width->setDefaultValueAsString("100%");
63 m_height->setDefaultValueAsString("100%"); 61 m_height->setDefaultValueAsString("100%");
64 62
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 197
200 LayoutObject* layoutObject = parent->layoutObject(); 198 LayoutObject* layoutObject = parent->layoutObject();
201 if (!layoutObject || !layoutObject->isSVGResourceFilterPrimitive()) 199 if (!layoutObject || !layoutObject->isSVGResourceFilterPrimitive())
202 return; 200 return;
203 201
204 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation( 202 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(
205 layoutObject, false); 203 layoutObject, false);
206 } 204 }
207 205
208 } // namespace blink 206 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/svg/SVGFETileElement.cpp ('k') | third_party/WebKit/Source/core/svg/SVGFitToViewBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698