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

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

Issue 212143002: Oilpan: Move CSSAnimations, CSSAnimationUpdate and ActiveAnimations to oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 { 378 {
379 if (hasRareData()) 379 if (hasRareData())
380 return elementRareData()->activeAnimations(); 380 return elementRareData()->activeAnimations();
381 return 0; 381 return 0;
382 } 382 }
383 383
384 ActiveAnimations& Element::ensureActiveAnimations() 384 ActiveAnimations& Element::ensureActiveAnimations()
385 { 385 {
386 ElementRareData& rareData = ensureElementRareData(); 386 ElementRareData& rareData = ensureElementRareData();
387 if (!rareData.activeAnimations()) 387 if (!rareData.activeAnimations())
388 rareData.setActiveAnimations(adoptPtr(new ActiveAnimations())); 388 rareData.setActiveAnimations(adoptPtrWillBeNoop(new ActiveAnimations())) ;
389 return *rareData.activeAnimations(); 389 return *rareData.activeAnimations();
390 } 390 }
391 391
392 bool Element::hasActiveAnimations() const 392 bool Element::hasActiveAnimations() const
393 { 393 {
394 if (!hasRareData()) 394 if (!hasRareData())
395 return false; 395 return false;
396 396
397 ActiveAnimations* activeAnimations = elementRareData()->activeAnimations(); 397 ActiveAnimations* activeAnimations = elementRareData()->activeAnimations();
398 return activeAnimations && !activeAnimations->isEmpty(); 398 return activeAnimations && !activeAnimations->isEmpty();
(...skipping 3006 matching lines...) Expand 10 before | Expand all | Expand 10 after
3405 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems 3405 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi stItems
3406 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405 3406 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg i?id=88405
3407 if (isHTMLOptionElement(*this) || isHTMLOptGroupElement(*this)) 3407 if (isHTMLOptionElement(*this) || isHTMLOptGroupElement(*this))
3408 return false; 3408 return false;
3409 if (FullscreenElementStack::isActiveFullScreenElement(this)) 3409 if (FullscreenElementStack::isActiveFullScreenElement(this))
3410 return false; 3410 return false;
3411 return true; 3411 return true;
3412 } 3412 }
3413 3413
3414 } // namespace WebCore 3414 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698