| 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 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All r
ights reserved. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 bool affectedByFirstChildRules() const { return hasRestyleFlag(AffectedByFir
stChildRules); } | 153 bool affectedByFirstChildRules() const { return hasRestyleFlag(AffectedByFir
stChildRules); } |
| 154 void setAffectedByFirstChildRules() { setRestyleFlag(AffectedByFirstChildRul
es); } | 154 void setAffectedByFirstChildRules() { setRestyleFlag(AffectedByFirstChildRul
es); } |
| 155 | 155 |
| 156 bool affectedByLastChildRules() const { return hasRestyleFlag(AffectedByLast
ChildRules); } | 156 bool affectedByLastChildRules() const { return hasRestyleFlag(AffectedByLast
ChildRules); } |
| 157 void setAffectedByLastChildRules() { setRestyleFlag(AffectedByLastChildRules
); } | 157 void setAffectedByLastChildRules() { setRestyleFlag(AffectedByLastChildRules
); } |
| 158 | 158 |
| 159 bool needsAdjacentStyleRecalc() const; | 159 bool needsAdjacentStyleRecalc() const; |
| 160 | 160 |
| 161 // FIXME: These methods should all be renamed to something better than "chec
k", | 161 // FIXME: These methods should all be renamed to something better than "chec
k", |
| 162 // since it's not clear that they alter the style bits of siblings and child
ren. | 162 // since it's not clear that they alter the style bits of siblings and child
ren. |
| 163 void checkForChildrenAdjacentRuleChanges(); | |
| 164 enum SiblingCheckType { FinishedParsingChildren, SiblingElementInserted, Sib
lingElementRemoved }; | 163 enum SiblingCheckType { FinishedParsingChildren, SiblingElementInserted, Sib
lingElementRemoved }; |
| 165 void checkForSiblingStyleChanges(SiblingCheckType, Node* nodeBeforeChange, N
ode* nodeAfterChange); | 164 void checkForSiblingStyleChanges(SiblingCheckType, Node* nodeBeforeChange, N
ode* nodeAfterChange); |
| 166 void recalcChildStyle(StyleRecalcChange); | 165 void recalcChildStyle(StyleRecalcChange); |
| 167 | 166 |
| 168 bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); } | 167 bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); } |
| 169 | 168 |
| 170 // -------------------------------------------------------------------------
---- | 169 // -------------------------------------------------------------------------
---- |
| 171 // Notification of document structure changes (see core/dom/Node.h for more
notification methods) | 170 // Notification of document structure changes (see core/dom/Node.h for more
notification methods) |
| 172 | 171 |
| 173 enum ChildrenChangeType { ElementInserted, NonElementInserted, ElementRemove
d, NonElementRemoved, AllChildrenRemoved, TextChanged }; | 172 enum ChildrenChangeType { ElementInserted, NonElementInserted, ElementRemove
d, NonElementRemoved, AllChildrenRemoved, TextChanged }; |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) | 343 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) |
| 345 { | 344 { |
| 346 ASSERT(!nodes.size()); | 345 ASSERT(!nodes.size()); |
| 347 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 346 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
| 348 nodes.append(child); | 347 nodes.append(child); |
| 349 } | 348 } |
| 350 | 349 |
| 351 } // namespace blink | 350 } // namespace blink |
| 352 | 351 |
| 353 #endif // ContainerNode_h | 352 #endif // ContainerNode_h |
| OLD | NEW |