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

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

Issue 977113003: Rename renderer() to layoutObject(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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/SVGFilterElement.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('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, 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 bool SVGFilterPrimitiveStandardAttributes::layoutObjectIsNeeded(const LayoutStyl e& style) 131 bool SVGFilterPrimitiveStandardAttributes::layoutObjectIsNeeded(const LayoutStyl e& style)
132 { 132 {
133 if (isSVGFilterElement(parentNode())) 133 if (isSVGFilterElement(parentNode()))
134 return SVGElement::layoutObjectIsNeeded(style); 134 return SVGElement::layoutObjectIsNeeded(style);
135 135
136 return false; 136 return false;
137 } 137 }
138 138
139 void SVGFilterPrimitiveStandardAttributes::invalidate() 139 void SVGFilterPrimitiveStandardAttributes::invalidate()
140 { 140 {
141 if (LayoutObject* primitiveRenderer = renderer()) 141 if (LayoutObject* primitiveRenderer = layoutObject())
142 markForLayoutAndParentResourceInvalidation(primitiveRenderer); 142 markForLayoutAndParentResourceInvalidation(primitiveRenderer);
143 } 143 }
144 144
145 void SVGFilterPrimitiveStandardAttributes::primitiveAttributeChanged(const Quali fiedName& attribute) 145 void SVGFilterPrimitiveStandardAttributes::primitiveAttributeChanged(const Quali fiedName& attribute)
146 { 146 {
147 if (LayoutObject* primitiveRenderer = renderer()) 147 if (LayoutObject* primitiveRenderer = layoutObject())
148 static_cast<LayoutSVGResourceFilterPrimitive*>(primitiveRenderer)->primi tiveAttributeChanged(attribute); 148 static_cast<LayoutSVGResourceFilterPrimitive*>(primitiveRenderer)->primi tiveAttributeChanged(attribute);
149 } 149 }
150 150
151 void invalidateFilterPrimitiveParent(SVGElement* element) 151 void invalidateFilterPrimitiveParent(SVGElement* element)
152 { 152 {
153 if (!element) 153 if (!element)
154 return; 154 return;
155 155
156 ContainerNode* parent = element->parentNode(); 156 ContainerNode* parent = element->parentNode();
157 157
158 if (!parent) 158 if (!parent)
159 return; 159 return;
160 160
161 LayoutObject* renderer = parent->renderer(); 161 LayoutObject* renderer = parent->layoutObject();
162 if (!renderer || !renderer->isSVGResourceFilterPrimitive()) 162 if (!renderer || !renderer->isSVGResourceFilterPrimitive())
163 return; 163 return;
164 164
165 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende rer, false); 165 LayoutSVGResourceContainer::markForLayoutAndParentResourceInvalidation(rende rer, false);
166 } 166 }
167 167
168 } 168 }
OLDNEW
« no previous file with comments | « Source/core/svg/SVGFilterElement.cpp ('k') | Source/core/svg/SVGForeignObjectElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698