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

Side by Side Diff: Source/core/svg/SVGMaskElement.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/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGPathElement.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, 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) 2005 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2005 Alexander Kellett <lypanov@kde.org>
5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 5 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
6 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2009-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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 setNeedsStyleRecalc(LocalStyleChange, 130 setNeedsStyleRecalc(LocalStyleChange,
131 StyleChangeReasonForTracing::fromAttribute(attrName)); 131 StyleChangeReasonForTracing::fromAttribute(attrName));
132 } 132 }
133 133
134 if (attrName == SVGNames::xAttr 134 if (attrName == SVGNames::xAttr
135 || attrName == SVGNames::yAttr 135 || attrName == SVGNames::yAttr
136 || attrName == SVGNames::widthAttr 136 || attrName == SVGNames::widthAttr
137 || attrName == SVGNames::heightAttr) 137 || attrName == SVGNames::heightAttr)
138 updateRelativeLengthsInformation(); 138 updateRelativeLengthsInformation();
139 139
140 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->re nderer()); 140 LayoutSVGResourceContainer* renderer = toLayoutSVGResourceContainer(this->la youtObject());
141 if (renderer) 141 if (renderer)
142 renderer->invalidateCacheAndMarkForLayout(); 142 renderer->invalidateCacheAndMarkForLayout();
143 } 143 }
144 144
145 void SVGMaskElement::childrenChanged(const ChildrenChange& change) 145 void SVGMaskElement::childrenChanged(const ChildrenChange& change)
146 { 146 {
147 SVGElement::childrenChanged(change); 147 SVGElement::childrenChanged(change);
148 148
149 if (change.byParser) 149 if (change.byParser)
150 return; 150 return;
151 151
152 if (LayoutObject* object = renderer()) 152 if (LayoutObject* object = layoutObject())
153 object->setNeedsLayoutAndFullPaintInvalidation(); 153 object->setNeedsLayoutAndFullPaintInvalidation();
154 } 154 }
155 155
156 LayoutObject* SVGMaskElement::createLayoutObject(const LayoutStyle&) 156 LayoutObject* SVGMaskElement::createLayoutObject(const LayoutStyle&)
157 { 157 {
158 return new LayoutSVGResourceMasker(this); 158 return new LayoutSVGResourceMasker(this);
159 } 159 }
160 160
161 bool SVGMaskElement::selfHasRelativeLengths() const 161 bool SVGMaskElement::selfHasRelativeLengths() const
162 { 162 {
163 return m_x->currentValue()->isRelative() 163 return m_x->currentValue()->isRelative()
164 || m_y->currentValue()->isRelative() 164 || m_y->currentValue()->isRelative()
165 || m_width->currentValue()->isRelative() 165 || m_width->currentValue()->isRelative()
166 || m_height->currentValue()->isRelative(); 166 || m_height->currentValue()->isRelative();
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/svg/SVGMarkerElement.cpp ('k') | Source/core/svg/SVGPathElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698