| 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. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc. |
| 8 * All rights reserved. | 8 * All rights reserved. |
| 9 * (C) 2007 Eric Seidel (eric@webkit.org) | 9 * (C) 2007 Eric Seidel (eric@webkit.org) |
| 10 * | 10 * |
| (...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1658 void Element::attachLayoutTree(const AttachContext& context) { | 1658 void Element::attachLayoutTree(const AttachContext& context) { |
| 1659 DCHECK(document().inStyleRecalc()); | 1659 DCHECK(document().inStyleRecalc()); |
| 1660 | 1660 |
| 1661 // We've already been through detach when doing an attach, but we might | 1661 // We've already been through detach when doing an attach, but we might |
| 1662 // need to clear any state that's been added since then. | 1662 // need to clear any state that's been added since then. |
| 1663 if (hasRareData() && getStyleChangeType() == NeedsReattachStyleChange) { | 1663 if (hasRareData() && getStyleChangeType() == NeedsReattachStyleChange) { |
| 1664 ElementRareData* data = elementRareData(); | 1664 ElementRareData* data = elementRareData(); |
| 1665 data->clearComputedStyle(); | 1665 data->clearComputedStyle(); |
| 1666 } | 1666 } |
| 1667 | 1667 |
| 1668 if (!isSlotOrActiveInsertionPoint()) | 1668 if (!isActiveSlotOrActiveInsertionPoint()) |
| 1669 LayoutTreeBuilderForElement(*this, context.resolvedStyle) | 1669 LayoutTreeBuilderForElement(*this, context.resolvedStyle) |
| 1670 .createLayoutObjectIfNeeded(); | 1670 .createLayoutObjectIfNeeded(); |
| 1671 | 1671 |
| 1672 addCallbackSelectors(); | 1672 addCallbackSelectors(); |
| 1673 | 1673 |
| 1674 if (hasRareData() && !layoutObject()) { | 1674 if (hasRareData() && !layoutObject()) { |
| 1675 if (ElementAnimations* elementAnimations = | 1675 if (ElementAnimations* elementAnimations = |
| 1676 elementRareData()->elementAnimations()) { | 1676 elementRareData()->elementAnimations()) { |
| 1677 elementAnimations->cssAnimations().cancel(); | 1677 elementAnimations->cssAnimations().cancel(); |
| 1678 elementAnimations->setAnimationStyleChange(false); | 1678 elementAnimations->setAnimationStyleChange(false); |
| (...skipping 2410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4089 } | 4089 } |
| 4090 | 4090 |
| 4091 DEFINE_TRACE_WRAPPERS(Element) { | 4091 DEFINE_TRACE_WRAPPERS(Element) { |
| 4092 if (hasRareData()) { | 4092 if (hasRareData()) { |
| 4093 visitor->traceWrappers(elementRareData()); | 4093 visitor->traceWrappers(elementRareData()); |
| 4094 } | 4094 } |
| 4095 ContainerNode::traceWrappers(visitor); | 4095 ContainerNode::traceWrappers(visitor); |
| 4096 } | 4096 } |
| 4097 | 4097 |
| 4098 } // namespace blink | 4098 } // namespace blink |
| OLD | NEW |