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

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

Issue 235113002: Oilpan: Remove guardRef and guardDeref from TreeScope. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Address comments. Created 6 years, 8 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) 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 171
172 if (hasActiveAnimations()) 172 if (hasActiveAnimations())
173 activeAnimations()->dispose(); 173 activeAnimations()->dispose();
174 174
175 if (isCustomElement()) 175 if (isCustomElement())
176 CustomElement::wasDestroyed(this); 176 CustomElement::wasDestroyed(this);
177 177
178 if (hasSyntheticAttrChildNodes()) 178 if (hasSyntheticAttrChildNodes())
179 detachAllAttrNodesFromElement(); 179 detachAllAttrNodesFromElement();
180 180
181 #if !ENABLE(OILPAN)
181 if (hasPendingResources()) { 182 if (hasPendingResources()) {
182 document().accessSVGExtensions().removeElementFromPendingResources(this) ; 183 document().accessSVGExtensions().removeElementFromPendingResources(this) ;
haraken 2014/04/25 05:21:42 Add a comment: // With Oilpan, either removedFrom
Mads Ager (chromium) 2014/04/25 10:58:25 Done.
183 ASSERT(!hasPendingResources()); 184 ASSERT(!hasPendingResources());
184 } 185 }
186 #endif
185 } 187 }
186 188
187 inline ElementRareData* Element::elementRareData() const 189 inline ElementRareData* Element::elementRareData() const
188 { 190 {
189 ASSERT(hasRareData()); 191 ASSERT(hasRareData());
190 return static_cast<ElementRareData*>(rareData()); 192 return static_cast<ElementRareData*>(rareData());
191 } 193 }
192 194
193 inline ElementRareData& Element::ensureElementRareData() 195 inline ElementRareData& Element::ensureElementRareData()
194 { 196 {
(...skipping 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 || isHTMLObjectElement(*this) 3257 || isHTMLObjectElement(*this)
3256 || isHTMLAppletElement(*this) 3258 || isHTMLAppletElement(*this)
3257 || isHTMLCanvasElement(*this)) 3259 || isHTMLCanvasElement(*this))
3258 return false; 3260 return false;
3259 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3261 if (FullscreenElementStack::isActiveFullScreenElement(this))
3260 return false; 3262 return false;
3261 return true; 3263 return true;
3262 } 3264 }
3263 3265
3264 } // namespace WebCore 3266 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698