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

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

Issue 2164493002: Renamed Node::attach to Node::attachLayoutTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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, 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 LayoutObject* SVGImageElement::createLayoutObject(const ComputedStyle&) 155 LayoutObject* SVGImageElement::createLayoutObject(const ComputedStyle&)
156 { 156 {
157 return new LayoutSVGImage(this); 157 return new LayoutSVGImage(this);
158 } 158 }
159 159
160 bool SVGImageElement::haveLoadedRequiredResources() 160 bool SVGImageElement::haveLoadedRequiredResources()
161 { 161 {
162 return !m_needsLoaderURIUpdate && !imageLoader().hasPendingActivity(); 162 return !m_needsLoaderURIUpdate && !imageLoader().hasPendingActivity();
163 } 163 }
164 164
165 void SVGImageElement::attach(const AttachContext& context) 165 void SVGImageElement::attachLayoutTree(const AttachContext& context)
166 { 166 {
167 SVGGraphicsElement::attach(context); 167 SVGGraphicsElement::attachLayoutTree(context);
168 168
169 if (LayoutSVGImage* imageObj = toLayoutSVGImage(layoutObject())) { 169 if (LayoutSVGImage* imageObj = toLayoutSVGImage(layoutObject())) {
170 if (imageObj->imageResource()->hasImage()) 170 if (imageObj->imageResource()->hasImage())
171 return; 171 return;
172 172
173 imageObj->imageResource()->setImageResource(imageLoader().image()); 173 imageObj->imageResource()->setImageResource(imageLoader().image());
174 } 174 }
175 } 175 }
176 176
177 Node::InsertionNotificationRequest SVGImageElement::insertedInto(ContainerNode* rootParent) 177 Node::InsertionNotificationRequest SVGImageElement::insertedInto(ContainerNode* rootParent)
(...skipping 22 matching lines...) Expand all
200 return AtomicString(hrefString()); 200 return AtomicString(hrefString());
201 } 201 }
202 202
203 void SVGImageElement::didMoveToNewDocument(Document& oldDocument) 203 void SVGImageElement::didMoveToNewDocument(Document& oldDocument)
204 { 204 {
205 imageLoader().elementDidMoveToNewDocument(); 205 imageLoader().elementDidMoveToNewDocument();
206 SVGGraphicsElement::didMoveToNewDocument(oldDocument); 206 SVGGraphicsElement::didMoveToNewDocument(oldDocument);
207 } 207 }
208 208
209 } // namespace blink 209 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698