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 1750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1761 | 1761 |
1762 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre
n()))) | 1762 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre
n()))) |
1763 setNeedsStyleRecalc(SubtreeStyleChange); | 1763 setNeedsStyleRecalc(SubtreeStyleChange); |
1764 } | 1764 } |
1765 | 1765 |
1766 void Element::childrenChanged(const ChildrenChange& change) | 1766 void Element::childrenChanged(const ChildrenChange& change) |
1767 { | 1767 { |
1768 ContainerNode::childrenChanged(change); | 1768 ContainerNode::childrenChanged(change); |
1769 | 1769 |
1770 checkForEmptyStyleChange(); | 1770 checkForEmptyStyleChange(); |
1771 if (!change.byParser) | 1771 if (!change.byParser && change.isChildElementChange()) |
1772 checkForSiblingStyleChanges(change.type == ChildRemoved ? SiblingRemoved
: Other, change.siblingBeforeChange, change.siblingAfterChange); | 1772 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAf
terChange); |
1773 | 1773 |
1774 if (ElementShadow* shadow = this->shadow()) | 1774 if (ElementShadow* shadow = this->shadow()) |
1775 shadow->setNeedsDistributionRecalc(); | 1775 shadow->setNeedsDistributionRecalc(); |
1776 } | 1776 } |
1777 | 1777 |
1778 void Element::finishParsingChildren() | 1778 void Element::finishParsingChildren() |
1779 { | 1779 { |
1780 setIsFinishedParsingChildren(true); | 1780 setIsFinishedParsingChildren(true); |
1781 checkForEmptyStyleChange(); | 1781 checkForEmptyStyleChange(); |
1782 checkForSiblingStyleChanges(FinishedParsingChildren, lastChild(), nullptr); | 1782 checkForSiblingStyleChanges(FinishedParsingChildren, lastChild(), nullptr); |
(...skipping 1500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3283 { | 3283 { |
3284 #if ENABLE(OILPAN) | 3284 #if ENABLE(OILPAN) |
3285 if (hasRareData()) | 3285 if (hasRareData()) |
3286 visitor->trace(elementRareData()); | 3286 visitor->trace(elementRareData()); |
3287 visitor->trace(m_elementData); | 3287 visitor->trace(m_elementData); |
3288 #endif | 3288 #endif |
3289 ContainerNode::trace(visitor); | 3289 ContainerNode::trace(visitor); |
3290 } | 3290 } |
3291 | 3291 |
3292 } // namespace blink | 3292 } // namespace blink |
OLD | NEW |