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

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

Issue 24430002: Rename attach and detach to createRenderTree/destroyRenderTree (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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, 2008, 2009 Rob Buis <buis@kde.org> 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Rob Buis <buis@kde.org>
4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.org> 4 * Copyright (C) 2006 Alexander Kellett <lypanov@kde.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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 RenderObject* SVGImageElement::createRenderer(RenderStyle*) 196 RenderObject* SVGImageElement::createRenderer(RenderStyle*)
197 { 197 {
198 return new RenderSVGImage(this); 198 return new RenderSVGImage(this);
199 } 199 }
200 200
201 bool SVGImageElement::haveLoadedRequiredResources() 201 bool SVGImageElement::haveLoadedRequiredResources()
202 { 202 {
203 return !externalResourcesRequiredBaseValue() || !m_imageLoader.hasPendingAct ivity(); 203 return !externalResourcesRequiredBaseValue() || !m_imageLoader.hasPendingAct ivity();
204 } 204 }
205 205
206 void SVGImageElement::attach(const AttachContext& context) 206 void SVGImageElement::createRenderTree(const AttachContext& context)
207 { 207 {
208 SVGGraphicsElement::attach(context); 208 SVGGraphicsElement::createRenderTree(context);
209 209
210 if (RenderSVGImage* imageObj = toRenderSVGImage(renderer())) { 210 if (RenderSVGImage* imageObj = toRenderSVGImage(renderer())) {
211 if (imageObj->imageResource()->hasImage()) 211 if (imageObj->imageResource()->hasImage())
212 return; 212 return;
213 213
214 imageObj->imageResource()->setImageResource(m_imageLoader.image()); 214 imageObj->imageResource()->setImageResource(m_imageLoader.image());
215 } 215 }
216 } 216 }
217 217
218 Node::InsertionNotificationRequest SVGImageElement::insertedInto(ContainerNode* rootParent) 218 Node::InsertionNotificationRequest SVGImageElement::insertedInto(ContainerNode* rootParent)
(...skipping 19 matching lines...) Expand all
238 addSubresourceURL(urls, document().completeURL(hrefCurrentValue())); 238 addSubresourceURL(urls, document().completeURL(hrefCurrentValue()));
239 } 239 }
240 240
241 void SVGImageElement::didMoveToNewDocument(Document* oldDocument) 241 void SVGImageElement::didMoveToNewDocument(Document* oldDocument)
242 { 242 {
243 m_imageLoader.elementDidMoveToNewDocument(); 243 m_imageLoader.elementDidMoveToNewDocument();
244 SVGGraphicsElement::didMoveToNewDocument(oldDocument); 244 SVGGraphicsElement::didMoveToNewDocument(oldDocument);
245 } 245 }
246 246
247 } 247 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698