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 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 if (!style && !styleAffectedByEmpty()) | 2059 if (!style && !styleAffectedByEmpty()) |
2060 return; | 2060 return; |
2061 if (styleChangeType() >= SubtreeStyleChange) | 2061 if (styleChangeType() >= SubtreeStyleChange) |
2062 return; | 2062 return; |
2063 if (!inActiveDocument()) | 2063 if (!inActiveDocument()) |
2064 return; | 2064 return; |
2065 if (!document().styleResolver()) | 2065 if (!document().styleResolver()) |
2066 return; | 2066 return; |
2067 | 2067 |
2068 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre
n()))) | 2068 if (!style || (styleAffectedByEmpty() && (!style->emptyState() || hasChildre
n()))) |
2069 document().styleEngine().pseudoStateChangedForElement(CSSSelector::Pseud
oEmpty, *this); | 2069 pseudoStateChanged(CSSSelector::PseudoEmpty); |
2070 } | 2070 } |
2071 | 2071 |
2072 void Element::childrenChanged(const ChildrenChange& change) | 2072 void Element::childrenChanged(const ChildrenChange& change) |
2073 { | 2073 { |
2074 ContainerNode::childrenChanged(change); | 2074 ContainerNode::childrenChanged(change); |
2075 | 2075 |
2076 checkForEmptyStyleChange(); | 2076 checkForEmptyStyleChange(); |
2077 if (!change.byParser && change.isChildElementChange()) | 2077 if (!change.byParser && change.isChildElementChange()) |
2078 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAf
terChange); | 2078 checkForSiblingStyleChanges(change.type == ElementRemoved ? SiblingEleme
ntRemoved : SiblingElementInserted, change.siblingBeforeChange, change.siblingAf
terChange); |
2079 | 2079 |
(...skipping 1485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3565 { | 3565 { |
3566 #if ENABLE(OILPAN) | 3566 #if ENABLE(OILPAN) |
3567 if (hasRareData()) | 3567 if (hasRareData()) |
3568 visitor->trace(elementRareData()); | 3568 visitor->trace(elementRareData()); |
3569 visitor->trace(m_elementData); | 3569 visitor->trace(m_elementData); |
3570 #endif | 3570 #endif |
3571 ContainerNode::trace(visitor); | 3571 ContainerNode::trace(visitor); |
3572 } | 3572 } |
3573 | 3573 |
3574 } // namespace blink | 3574 } // namespace blink |
OLD | NEW |