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

Side by Side Diff: Source/core/dom/Element.cpp

Issue 181713003: Have Document::accessSVGExtensions() return a reference (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/dom/Document.cpp ('k') | Source/core/rendering/RenderView.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * (C) 2007 David Smith (catfish.man@gmail.com) 6 * (C) 2007 David Smith (catfish.man@gmail.com)
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved. 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. All rights reserved.
8 * (C) 2007 Eric Seidel (eric@webkit.org) 8 * (C) 2007 Eric Seidel (eric@webkit.org)
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 if (hasRareData()) 203 if (hasRareData())
204 elementRareData()->clearShadow(); 204 elementRareData()->clearShadow();
205 205
206 if (isCustomElement()) 206 if (isCustomElement())
207 CustomElement::wasDestroyed(this); 207 CustomElement::wasDestroyed(this);
208 208
209 if (hasSyntheticAttrChildNodes()) 209 if (hasSyntheticAttrChildNodes())
210 detachAllAttrNodesFromElement(); 210 detachAllAttrNodesFromElement();
211 211
212 if (hasPendingResources()) { 212 if (hasPendingResources()) {
213 document().accessSVGExtensions()->removeElementFromPendingResources(this ); 213 document().accessSVGExtensions().removeElementFromPendingResources(this) ;
214 ASSERT(!hasPendingResources()); 214 ASSERT(!hasPendingResources());
215 } 215 }
216 } 216 }
217 217
218 inline ElementRareData* Element::elementRareData() const 218 inline ElementRareData* Element::elementRareData() const
219 { 219 {
220 ASSERT(hasRareData()); 220 ASSERT(hasRareData());
221 return static_cast<ElementRareData*>(rareData()); 221 return static_cast<ElementRareData*>(rareData());
222 } 222 }
223 223
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after
1366 if (hasTagName(labelTag)) { 1366 if (hasTagName(labelTag)) {
1367 TreeScope& treeScope = insertionPoint->treeScope(); 1367 TreeScope& treeScope = insertionPoint->treeScope();
1368 if (treeScope.shouldCacheLabelsByForAttribute()) 1368 if (treeScope.shouldCacheLabelsByForAttribute())
1369 updateLabel(treeScope, fastGetAttribute(forAttr), nullAtom); 1369 updateLabel(treeScope, fastGetAttribute(forAttr), nullAtom);
1370 } 1370 }
1371 } 1371 }
1372 1372
1373 ContainerNode::removedFrom(insertionPoint); 1373 ContainerNode::removedFrom(insertionPoint);
1374 if (wasInDocument) { 1374 if (wasInDocument) {
1375 if (hasPendingResources()) 1375 if (hasPendingResources())
1376 document().accessSVGExtensions()->removeElementFromPendingResources( this); 1376 document().accessSVGExtensions().removeElementFromPendingResources(t his);
1377 1377
1378 if (isUpgradedCustomElement()) 1378 if (isUpgradedCustomElement())
1379 CustomElement::didLeaveDocument(this, insertionPoint->document()); 1379 CustomElement::didLeaveDocument(this, insertionPoint->document());
1380 } 1380 }
1381 1381
1382 document().removeFromTopLayer(this); 1382 document().removeFromTopLayer(this);
1383 1383
1384 if (hasRareData()) 1384 if (hasRareData())
1385 elementRareData()->setIsInCanvasSubtree(false); 1385 elementRareData()->setIsInCanvasSubtree(false);
1386 } 1386 }
(...skipping 2123 matching lines...) Expand 10 before | Expand all | Expand 10 after
3510 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems 3510 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems
3511 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405 3511 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405
3512 if (hasTagName(optionTag) || hasTagName(optgroupTag)) 3512 if (hasTagName(optionTag) || hasTagName(optgroupTag))
3513 return false; 3513 return false;
3514 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3514 if (FullscreenElementStack::isActiveFullScreenElement(this))
3515 return false; 3515 return false;
3516 return true; 3516 return true;
3517 } 3517 }
3518 3518
3519 } // namespace WebCore 3519 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/rendering/RenderView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698