| 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 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1730 SelectorFilterParentScope filterScope(*this); | 1730 SelectorFilterParentScope filterScope(*this); |
| 1731 StyleSharingDepthScope sharingScope(*this); | 1731 StyleSharingDepthScope sharingScope(*this); |
| 1732 | 1732 |
| 1733 updatePseudoElement(PseudoIdBefore, change); | 1733 updatePseudoElement(PseudoIdBefore, change); |
| 1734 | 1734 |
| 1735 if (change > UpdatePseudoElements || childNeedsStyleRecalc()) { | 1735 if (change > UpdatePseudoElements || childNeedsStyleRecalc()) { |
| 1736 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->old
erShadowRoot()) { | 1736 for (ShadowRoot* root = youngestShadowRoot(); root; root = root->old
erShadowRoot()) { |
| 1737 if (root->shouldCallRecalcStyle(change)) | 1737 if (root->shouldCallRecalcStyle(change)) |
| 1738 root->recalcStyle(change); | 1738 root->recalcStyle(change); |
| 1739 } | 1739 } |
| 1740 recalcChildStyle(change); | 1740 recalcDescendantStyles(change); |
| 1741 } | 1741 } |
| 1742 | 1742 |
| 1743 updatePseudoElement(PseudoIdAfter, change); | 1743 updatePseudoElement(PseudoIdAfter, change); |
| 1744 updatePseudoElement(PseudoIdBackdrop, change); | 1744 updatePseudoElement(PseudoIdBackdrop, change); |
| 1745 | 1745 |
| 1746 // If our children have changed then we need to force the first-letter | 1746 // If our children have changed then we need to force the first-letter |
| 1747 // checks as we don't know if they effected the first letter or not. | 1747 // checks as we don't know if they effected the first letter or not. |
| 1748 // This can be seen when a child transitions from floating to | 1748 // This can be seen when a child transitions from floating to |
| 1749 // non-floating we have to take it into account for the first letter. | 1749 // non-floating we have to take it into account for the first letter. |
| 1750 updatePseudoElement(PseudoIdFirstLetter, childNeedsStyleRecalc() ? Force
: change); | 1750 updatePseudoElement(PseudoIdFirstLetter, childNeedsStyleRecalc() ? Force
: change); |
| (...skipping 1994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3745 | 3745 |
| 3746 DEFINE_TRACE_WRAPPERS(Element) | 3746 DEFINE_TRACE_WRAPPERS(Element) |
| 3747 { | 3747 { |
| 3748 if (hasRareData()) { | 3748 if (hasRareData()) { |
| 3749 visitor->traceWrappers(elementRareData()); | 3749 visitor->traceWrappers(elementRareData()); |
| 3750 } | 3750 } |
| 3751 ContainerNode::traceWrappers(visitor); | 3751 ContainerNode::traceWrappers(visitor); |
| 3752 } | 3752 } |
| 3753 | 3753 |
| 3754 } // namespace blink | 3754 } // namespace blink |
| OLD | NEW |