| 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 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1790 { | 1790 { |
| 1791 return ensureElementRareData().ensureShadow(); | 1791 return ensureElementRareData().ensureShadow(); |
| 1792 } | 1792 } |
| 1793 | 1793 |
| 1794 void Element::pseudoStateChanged(CSSSelector::PseudoType pseudo) | 1794 void Element::pseudoStateChanged(CSSSelector::PseudoType pseudo) |
| 1795 { | 1795 { |
| 1796 StyleResolver* styleResolver = document().styleResolver(); | 1796 StyleResolver* styleResolver = document().styleResolver(); |
| 1797 | 1797 |
| 1798 if (inActiveDocument() && styleResolver && styleChangeType() < SubtreeStyleC
hange) | 1798 if (inActiveDocument() && styleResolver && styleChangeType() < SubtreeStyleC
hange) |
| 1799 document().styleEngine().pseudoStateChangedForElement(pseudo, *this); | 1799 document().styleEngine().pseudoStateChangedForElement(pseudo, *this); |
| 1800 | |
| 1801 if (ElementShadow* elementShadow = shadowWhereNodeCanBeDistributed(*this)) | |
| 1802 elementShadow->distributedNodePseudoStateChanged(pseudo); | |
| 1803 } | 1800 } |
| 1804 | 1801 |
| 1805 void Element::setAnimationStyleChange(bool animationStyleChange) | 1802 void Element::setAnimationStyleChange(bool animationStyleChange) |
| 1806 { | 1803 { |
| 1807 if (animationStyleChange && document().inStyleRecalc()) | 1804 if (animationStyleChange && document().inStyleRecalc()) |
| 1808 return; | 1805 return; |
| 1809 if (!hasRareData()) | 1806 if (!hasRareData()) |
| 1810 return; | 1807 return; |
| 1811 if (ElementAnimations* elementAnimations = elementRareData()->elementAnimati
ons()) | 1808 if (ElementAnimations* elementAnimations = elementRareData()->elementAnimati
ons()) |
| 1812 elementAnimations->setAnimationStyleChange(animationStyleChange); | 1809 elementAnimations->setAnimationStyleChange(animationStyleChange); |
| (...skipping 1699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3512 { | 3509 { |
| 3513 #if ENABLE(OILPAN) | 3510 #if ENABLE(OILPAN) |
| 3514 if (hasRareData()) | 3511 if (hasRareData()) |
| 3515 visitor->trace(elementRareData()); | 3512 visitor->trace(elementRareData()); |
| 3516 visitor->trace(m_elementData); | 3513 visitor->trace(m_elementData); |
| 3517 #endif | 3514 #endif |
| 3518 ContainerNode::trace(visitor); | 3515 ContainerNode::trace(visitor); |
| 3519 } | 3516 } |
| 3520 | 3517 |
| 3521 } // namespace blink | 3518 } // namespace blink |
| OLD | NEW |