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

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

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 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/SVGFELightElement.h ('k') | Source/core/svg/SVGFEMergeElement.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, 2007 Nikolas Zimmermann <zimmermann@kde.org> 2 * Copyright (C) 2004, 2005, 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) 2005 Oliver Hunt <oliver@nerget.com> 4 * Copyright (C) 2005 Oliver Hunt <oliver@nerget.com>
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 REGISTER_LOCAL_ANIMATED_PROPERTY(x) 50 REGISTER_LOCAL_ANIMATED_PROPERTY(x)
51 REGISTER_LOCAL_ANIMATED_PROPERTY(y) 51 REGISTER_LOCAL_ANIMATED_PROPERTY(y)
52 REGISTER_LOCAL_ANIMATED_PROPERTY(z) 52 REGISTER_LOCAL_ANIMATED_PROPERTY(z)
53 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtX) 53 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtX)
54 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtY) 54 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtY)
55 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtZ) 55 REGISTER_LOCAL_ANIMATED_PROPERTY(pointsAtZ)
56 REGISTER_LOCAL_ANIMATED_PROPERTY(specularExponent) 56 REGISTER_LOCAL_ANIMATED_PROPERTY(specularExponent)
57 REGISTER_LOCAL_ANIMATED_PROPERTY(limitingConeAngle) 57 REGISTER_LOCAL_ANIMATED_PROPERTY(limitingConeAngle)
58 END_REGISTER_ANIMATED_PROPERTIES 58 END_REGISTER_ANIMATED_PROPERTIES
59 59
60 SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document* doc ument) 60 SVGFELightElement::SVGFELightElement(const QualifiedName& tagName, Document& doc ument)
61 : SVGElement(tagName, document) 61 : SVGElement(tagName, document)
62 , m_specularExponent(1) 62 , m_specularExponent(1)
63 { 63 {
64 registerAnimatedPropertiesForSVGFELightElement(); 64 registerAnimatedPropertiesForSVGFELightElement();
65 } 65 }
66 66
67 SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement* svgElem ent) 67 SVGFELightElement* SVGFELightElement::findLightElement(const SVGElement* svgElem ent)
68 { 68 {
69 for (Node* node = svgElement->firstChild(); node; node = node->nextSibling() ) { 69 for (Node* node = svgElement->firstChild(); node; node = node->nextSibling() ) {
70 if (node->hasTagName(SVGNames::feDistantLightTag) 70 if (node->hasTagName(SVGNames::feDistantLightTag)
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 if (!changedByParser) { 208 if (!changedByParser) {
209 if (ContainerNode* parent = parentNode()) { 209 if (ContainerNode* parent = parentNode()) {
210 RenderObject* renderer = parent->renderer(); 210 RenderObject* renderer = parent->renderer();
211 if (renderer && renderer->isSVGResourceFilterPrimitive()) 211 if (renderer && renderer->isSVGResourceFilterPrimitive())
212 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re nderer); 212 RenderSVGResource::markForLayoutAndParentResourceInvalidation(re nderer);
213 } 213 }
214 } 214 }
215 } 215 }
216 216
217 } 217 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFELightElement.h ('k') | Source/core/svg/SVGFEMergeElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698