Chromium Code Reviews| 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 | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2013 Apple Inc. All |
| 6 * rights reserved. | 6 * rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 233 enum SiblingCheckType { | 233 enum SiblingCheckType { |
| 234 FinishedParsingChildren, | 234 FinishedParsingChildren, |
| 235 SiblingElementInserted, | 235 SiblingElementInserted, |
| 236 SiblingElementRemoved | 236 SiblingElementRemoved |
| 237 }; | 237 }; |
| 238 void checkForSiblingStyleChanges(SiblingCheckType, | 238 void checkForSiblingStyleChanges(SiblingCheckType, |
| 239 Element* changedElement, | 239 Element* changedElement, |
| 240 Node* nodeBeforeChange, | 240 Node* nodeBeforeChange, |
| 241 Node* nodeAfterChange); | 241 Node* nodeAfterChange); |
| 242 void recalcDescendantStyles(StyleRecalcChange); | 242 void recalcDescendantStyles(StyleRecalcChange); |
| 243 void rebuildDescendantLayoutTrees(); | |
|
Bugs Nash
2016/12/07 23:21:44
This name is strange (as I commented in the design
nainar
2016/12/07 23:49:09
I'm good with renaming it to rebuildChildrenLayout
| |
| 243 | 244 |
| 244 bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); } | 245 bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); } |
| 245 | 246 |
| 246 // --------------------------------------------------------------------------- -- | 247 // --------------------------------------------------------------------------- -- |
| 247 // Notification of document structure changes (see core/dom/Node.h for more | 248 // Notification of document structure changes (see core/dom/Node.h for more |
| 248 // notification methods) | 249 // notification methods) |
| 249 | 250 |
| 250 enum ChildrenChangeType { | 251 enum ChildrenChangeType { |
| 251 ElementInserted, | 252 ElementInserted, |
| 252 NonElementInserted, | 253 NonElementInserted, |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 459 | 460 |
| 460 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) { | 461 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) { |
| 461 DCHECK(!nodes.size()); | 462 DCHECK(!nodes.size()); |
| 462 for (Node* child = node.firstChild(); child; child = child->nextSibling()) | 463 for (Node* child = node.firstChild(); child; child = child->nextSibling()) |
| 463 nodes.append(child); | 464 nodes.append(child); |
| 464 } | 465 } |
| 465 | 466 |
| 466 } // namespace blink | 467 } // namespace blink |
| 467 | 468 |
| 468 #endif // ContainerNode_h | 469 #endif // ContainerNode_h |
| OLD | NEW |