| 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 { | 336 { |
| 337 if (hasRareData()) | 337 if (hasRareData()) |
| 338 return elementRareData()->elementAnimations(); | 338 return elementRareData()->elementAnimations(); |
| 339 return nullptr; | 339 return nullptr; |
| 340 } | 340 } |
| 341 | 341 |
| 342 ElementAnimations& Element::ensureElementAnimations() | 342 ElementAnimations& Element::ensureElementAnimations() |
| 343 { | 343 { |
| 344 ElementRareData& rareData = ensureElementRareData(); | 344 ElementRareData& rareData = ensureElementRareData(); |
| 345 if (!rareData.elementAnimations()) | 345 if (!rareData.elementAnimations()) |
| 346 rareData.setElementAnimations(adoptPtrWillBeNoop(new ElementAnimations()
)); | 346 rareData.setElementAnimations(new ElementAnimations); |
| 347 return *rareData.elementAnimations(); | 347 return *rareData.elementAnimations(); |
| 348 } | 348 } |
| 349 | 349 |
| 350 bool Element::hasAnimations() const | 350 bool Element::hasAnimations() const |
| 351 { | 351 { |
| 352 if (!hasRareData()) | 352 if (!hasRareData()) |
| 353 return false; | 353 return false; |
| 354 | 354 |
| 355 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); | 355 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); |
| 356 return elementAnimations && !elementAnimations->isEmpty(); | 356 return elementAnimations && !elementAnimations->isEmpty(); |
| (...skipping 3144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3501 { | 3501 { |
| 3502 #if ENABLE(OILPAN) | 3502 #if ENABLE(OILPAN) |
| 3503 if (hasRareData()) | 3503 if (hasRareData()) |
| 3504 visitor->trace(elementRareData()); | 3504 visitor->trace(elementRareData()); |
| 3505 visitor->trace(m_elementData); | 3505 visitor->trace(m_elementData); |
| 3506 #endif | 3506 #endif |
| 3507 ContainerNode::trace(visitor); | 3507 ContainerNode::trace(visitor); |
| 3508 } | 3508 } |
| 3509 | 3509 |
| 3510 } // namespace blink | 3510 } // namespace blink |
| OLD | NEW |