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

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

Issue 2727233005: Remove calls to styleForLayoutObject() in LayoutTreeBuilder::style() (Closed)
Patch Set: 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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 // and children. 232 // and children.
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 recalcDescendantStylesForReattach();
242 void recalcDescendantStyles(StyleRecalcChange); 243 void recalcDescendantStyles(StyleRecalcChange);
243 void rebuildChildrenLayoutTrees(); 244 void rebuildChildrenLayoutTrees();
244 245
245 bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); } 246 bool childrenSupportStyleSharing() const { return !hasRestyleFlags(); }
246 247
247 // --------------------------------------------------------------------------- -- 248 // --------------------------------------------------------------------------- --
248 // Notification of document structure changes (see core/dom/Node.h for more 249 // Notification of document structure changes (see core/dom/Node.h for more
249 // notification methods) 250 // notification methods)
250 251
251 enum ChildrenChangeType { 252 enum ChildrenChangeType {
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 461
461 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) { 462 inline void getChildNodes(ContainerNode& node, NodeVector& nodes) {
462 DCHECK(!nodes.size()); 463 DCHECK(!nodes.size());
463 for (Node* child = node.firstChild(); child; child = child->nextSibling()) 464 for (Node* child = node.firstChild(); child; child = child->nextSibling())
464 nodes.push_back(child); 465 nodes.push_back(child);
465 } 466 }
466 467
467 } // namespace blink 468 } // namespace blink
468 469
469 #endif // ContainerNode_h 470 #endif // ContainerNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698