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

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

Issue 1120003002: [Oilpan] Migrate most classes under core/animations to Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Resize expect size of Persistent Created 5 years, 7 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) 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 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 { 342 {
343 if (hasRareData()) 343 if (hasRareData())
344 return elementRareData()->elementAnimations(); 344 return elementRareData()->elementAnimations();
345 return nullptr; 345 return nullptr;
346 } 346 }
347 347
348 ElementAnimations& Element::ensureElementAnimations() 348 ElementAnimations& Element::ensureElementAnimations()
349 { 349 {
350 ElementRareData& rareData = ensureElementRareData(); 350 ElementRareData& rareData = ensureElementRareData();
351 if (!rareData.elementAnimations()) 351 if (!rareData.elementAnimations())
352 rareData.setElementAnimations(adoptPtrWillBeNoop(new ElementAnimations() )); 352 rareData.setElementAnimations(new ElementAnimations);
353 return *rareData.elementAnimations(); 353 return *rareData.elementAnimations();
354 } 354 }
355 355
356 bool Element::hasAnimations() const 356 bool Element::hasAnimations() const
357 { 357 {
358 if (!hasRareData()) 358 if (!hasRareData())
359 return false; 359 return false;
360 360
361 ElementAnimations* elementAnimations = elementRareData()->elementAnimations( ); 361 ElementAnimations* elementAnimations = elementRareData()->elementAnimations( );
362 return elementAnimations && !elementAnimations->isEmpty(); 362 return elementAnimations && !elementAnimations->isEmpty();
(...skipping 3107 matching lines...) Expand 10 before | Expand all | Expand 10 after
3470 { 3470 {
3471 #if ENABLE(OILPAN) 3471 #if ENABLE(OILPAN)
3472 if (hasRareData()) 3472 if (hasRareData())
3473 visitor->trace(elementRareData()); 3473 visitor->trace(elementRareData());
3474 visitor->trace(m_elementData); 3474 visitor->trace(m_elementData);
3475 #endif 3475 #endif
3476 ContainerNode::trace(visitor); 3476 ContainerNode::trace(visitor);
3477 } 3477 }
3478 3478
3479 } // namespace blink 3479 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698