| 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 2129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2140 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre
n()))) | 2140 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre
n()))) |
| 2141 pseudoStateChanged(CSSSelector::PseudoEmpty); | 2141 pseudoStateChanged(CSSSelector::PseudoEmpty); |
| 2142 } | 2142 } |
| 2143 | 2143 |
| 2144 void Element::childrenChanged(const ChildrenChange& change) | 2144 void Element::childrenChanged(const ChildrenChange& change) |
| 2145 { | 2145 { |
| 2146 ContainerNode::childrenChanged(change); | 2146 ContainerNode::childrenChanged(change); |
| 2147 | 2147 |
| 2148 checkForEmptyStyleChange(); | 2148 checkForEmptyStyleChange(); |
| 2149 if (!change.byParser && change.isChildElementChange()) | 2149 if (!change.byParser && change.isChildElementChange()) |
| 2150 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, toElement(change.siblingChanged), change.sib
lingBeforeChange, change.siblingAfterChange); | 2150 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, change.siblingChanged, change.siblingBeforeC
hange, change.siblingAfterChange); |
| 2151 | 2151 |
| 2152 // TODO(hayato): Confirm that we can skip this if a shadow tree is v1. | 2152 // TODO(hayato): Confirm that we can skip this if a shadow tree is v1. |
| 2153 if (ElementShadow* shadow = this->shadow()) | 2153 if (ElementShadow* shadow = this->shadow()) |
| 2154 shadow->setNeedsDistributionRecalc(); | 2154 shadow->setNeedsDistributionRecalc(); |
| 2155 } | 2155 } |
| 2156 | 2156 |
| 2157 void Element::finishParsingChildren() | 2157 void Element::finishParsingChildren() |
| 2158 { | 2158 { |
| 2159 setIsFinishedParsingChildren(true); | 2159 setIsFinishedParsingChildren(true); |
| 2160 checkForEmptyStyleChange(); | 2160 checkForEmptyStyleChange(); |
| (...skipping 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3815 | 3815 |
| 3816 DEFINE_TRACE_WRAPPERS(Element) | 3816 DEFINE_TRACE_WRAPPERS(Element) |
| 3817 { | 3817 { |
| 3818 if (hasRareData()) { | 3818 if (hasRareData()) { |
| 3819 visitor->traceWrappers(elementRareData()); | 3819 visitor->traceWrappers(elementRareData()); |
| 3820 } | 3820 } |
| 3821 ContainerNode::traceWrappers(visitor); | 3821 ContainerNode::traceWrappers(visitor); |
| 3822 } | 3822 } |
| 3823 | 3823 |
| 3824 } // namespace blink | 3824 } // namespace blink |
| OLD | NEW |