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

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

Issue 2473743003: Call Element::rebuildLayoutTree from Document::updateStyle directly (Closed)
Patch Set: Make needsAttach() only check if getStyleChangeType flag is NeedsReattachStyleChange and add a Layo… Created 3 years, 9 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
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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 rebuildChildrenLayoutTrees();
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
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.push_back(child); 464 nodes.push_back(child);
464 } 465 }
465 466
466 } // namespace blink 467 } // namespace blink
467 468
468 #endif // ContainerNode_h 469 #endif // ContainerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698