| 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 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 | 343 |
| 344 bool Element::hasAnimations() const | 344 bool Element::hasAnimations() const |
| 345 { | 345 { |
| 346 if (!hasRareData()) | 346 if (!hasRareData()) |
| 347 return false; | 347 return false; |
| 348 | 348 |
| 349 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); | 349 ElementAnimations* elementAnimations = elementRareData()->elementAnimations(
); |
| 350 return elementAnimations && !elementAnimations->isEmpty(); | 350 return elementAnimations && !elementAnimations->isEmpty(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 CompositorElementId Element::compositorElementId() const |
| 354 { |
| 355 ElementAnimations* animations = elementAnimations(); |
| 356 return animations ? animations->compositorElementId() : CompositorElementId(
); |
| 357 } |
| 358 |
| 359 CompositorElementId Element::assignCompositorElementId() |
| 360 { |
| 361 CompositorElementId elementId = ensureElementAnimations().compositorElementI
d(); |
| 362 DCHECK(elementId); |
| 363 return elementId; |
| 364 } |
| 365 |
| 353 Node::NodeType Element::getNodeType() const | 366 Node::NodeType Element::getNodeType() const |
| 354 { | 367 { |
| 355 return ELEMENT_NODE; | 368 return ELEMENT_NODE; |
| 356 } | 369 } |
| 357 | 370 |
| 358 bool Element::hasAttribute(const QualifiedName& name) const | 371 bool Element::hasAttribute(const QualifiedName& name) const |
| 359 { | 372 { |
| 360 return hasAttributeNS(name.namespaceURI(), name.localName()); | 373 return hasAttributeNS(name.namespaceURI(), name.localName()); |
| 361 } | 374 } |
| 362 | 375 |
| (...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3699 | 3712 |
| 3700 DEFINE_TRACE(Element) | 3713 DEFINE_TRACE(Element) |
| 3701 { | 3714 { |
| 3702 if (hasRareData()) | 3715 if (hasRareData()) |
| 3703 visitor->trace(elementRareData()); | 3716 visitor->trace(elementRareData()); |
| 3704 visitor->trace(m_elementData); | 3717 visitor->trace(m_elementData); |
| 3705 ContainerNode::trace(visitor); | 3718 ContainerNode::trace(visitor); |
| 3706 } | 3719 } |
| 3707 | 3720 |
| 3708 } // namespace blink | 3721 } // namespace blink |
| OLD | NEW |