| OLD | NEW |
| 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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 353 { | 353 { |
| 354 if (hasRareData()) | 354 if (hasRareData()) |
| 355 return elementRareData()->elementAnimations(); | 355 return elementRareData()->elementAnimations(); |
| 356 return nullptr; | 356 return nullptr; |
| 357 } | 357 } |
| 358 | 358 |
| 359 ElementAnimations& Element::ensureElementAnimations() | 359 ElementAnimations& Element::ensureElementAnimations() |
| 360 { | 360 { |
| 361 ElementRareData& rareData = ensureElementRareData(); | 361 ElementRareData& rareData = ensureElementRareData(); |
| 362 if (!rareData.elementAnimations()) | 362 if (!rareData.elementAnimations()) |
| 363 rareData.setElementAnimations(adoptPtrWillBeNoop(new ElementAnimations()
)); | 363 rareData.setElementAnimations(new ElementAnimations); |
| 364 return *rareData.elementAnimations(); | 364 return *rareData.elementAnimations(); |
| 365 } | 365 } |
| 366 | 366 |
| 367 bool Element::hasAnimations() const | 367 bool Element::hasAnimations() const |
| 368 { | 368 { |
| 369 if (!hasRareData()) | 369 if (!hasRareData()) |
| 370 return false; | 370 return false; |
| 371 | 371 |
| 372 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); | 372 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); |
| 373 return elementAnimations && !elementAnimations->isEmpty(); | 373 return elementAnimations && !elementAnimations->isEmpty(); |
| (...skipping 3138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3512 { | 3512 { |
| 3513 #if ENABLE(OILPAN) | 3513 #if ENABLE(OILPAN) |
| 3514 if (hasRareData()) | 3514 if (hasRareData()) |
| 3515 visitor->trace(elementRareData()); | 3515 visitor->trace(elementRareData()); |
| 3516 visitor->trace(m_elementData); | 3516 visitor->trace(m_elementData); |
| 3517 #endif | 3517 #endif |
| 3518 ContainerNode::trace(visitor); | 3518 ContainerNode::trace(visitor); |
| 3519 } | 3519 } |
| 3520 | 3520 |
| 3521 } // namespace blink | 3521 } // namespace blink |
| OLD | NEW |