Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: third_party/WebKit/Source/core/dom/ContainerNode.h

Issue 2836753002: Rebuild layout tree in flat tree order. (Closed)
Patch Set: Rebased Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 kFinishedParsingChildren, 251 kFinishedParsingChildren,
252 kSiblingElementInserted, 252 kSiblingElementInserted,
253 kSiblingElementRemoved 253 kSiblingElementRemoved
254 }; 254 };
255 void CheckForSiblingStyleChanges(SiblingCheckType, 255 void CheckForSiblingStyleChanges(SiblingCheckType,
256 Element* changed_element, 256 Element* changed_element,
257 Node* node_before_change, 257 Node* node_before_change,
258 Node* node_after_change); 258 Node* node_after_change);
259 void RecalcDescendantStyles(StyleRecalcChange); 259 void RecalcDescendantStyles(StyleRecalcChange);
260 void RebuildChildrenLayoutTrees(Text*& next_text_sibling); 260 void RebuildChildrenLayoutTrees(Text*& next_text_sibling);
261 void RebuildLayoutTreeForChild(Node* child, Text*& next_text_sibling);
261 262
262 bool ChildrenSupportStyleSharing() const { return !HasRestyleFlags(); } 263 bool ChildrenSupportStyleSharing() const { return !HasRestyleFlags(); }
263 264
264 // --------------------------------------------------------------------------- -- 265 // --------------------------------------------------------------------------- --
265 // Notification of document structure changes (see core/dom/Node.h for more 266 // Notification of document structure changes (see core/dom/Node.h for more
266 // notification methods) 267 // notification methods)
267 268
268 enum ChildrenChangeType { 269 enum ChildrenChangeType {
269 kElementInserted, 270 kElementInserted,
270 kNonElementInserted, 271 kNonElementInserted,
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 491
491 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) { 492 inline void GetChildNodes(ContainerNode& node, NodeVector& nodes) {
492 DCHECK(!nodes.size()); 493 DCHECK(!nodes.size());
493 for (Node* child = node.firstChild(); child; child = child->nextSibling()) 494 for (Node* child = node.firstChild(); child; child = child->nextSibling())
494 nodes.push_back(child); 495 nodes.push_back(child);
495 } 496 }
496 497
497 } // namespace blink 498 } // namespace blink
498 499
499 #endif // ContainerNode_h 500 #endif // ContainerNode_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/ContainerNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698