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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/InsertionPoint.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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 bool IsShadowInsertionPoint() const; 52 bool IsShadowInsertionPoint() const;
53 bool IsContentInsertionPoint() const; 53 bool IsContentInsertionPoint() const;
54 54
55 StaticNodeList* getDistributedNodes(); 55 StaticNodeList* getDistributedNodes();
56 56
57 virtual bool CanAffectSelector() const { return false; } 57 virtual bool CanAffectSelector() const { return false; }
58 58
59 void AttachLayoutTree(const AttachContext& = AttachContext()) override; 59 void AttachLayoutTree(const AttachContext& = AttachContext()) override;
60 void DetachLayoutTree(const AttachContext& = AttachContext()) override; 60 void DetachLayoutTree(const AttachContext& = AttachContext()) override;
61 void RebuildDistributedChildrenLayoutTrees();
61 62
62 size_t DistributedNodesSize() const { return distributed_nodes_.size(); } 63 size_t DistributedNodesSize() const { return distributed_nodes_.size(); }
63 Node* DistributedNodeAt(size_t index) const { 64 Node* DistributedNodeAt(size_t index) const {
64 return distributed_nodes_.at(index); 65 return distributed_nodes_.at(index);
65 } 66 }
66 Node* FirstDistributedNode() const { 67 Node* FirstDistributedNode() const {
67 return distributed_nodes_.IsEmpty() ? 0 : distributed_nodes_.First(); 68 return distributed_nodes_.IsEmpty() ? 0 : distributed_nodes_.First();
68 } 69 }
69 Node* LastDistributedNode() const { 70 Node* LastDistributedNode() const {
70 return distributed_nodes_.IsEmpty() ? 0 : distributed_nodes_.Last(); 71 return distributed_nodes_.IsEmpty() ? 0 : distributed_nodes_.Last();
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 123
123 const InsertionPoint* ResolveReprojection(const Node*); 124 const InsertionPoint* ResolveReprojection(const Node*);
124 125
125 void CollectDestinationInsertionPoints( 126 void CollectDestinationInsertionPoints(
126 const Node&, 127 const Node&,
127 HeapVector<Member<InsertionPoint>, 8>& results); 128 HeapVector<Member<InsertionPoint>, 8>& results);
128 129
129 } // namespace blink 130 } // namespace blink
130 131
131 #endif // InsertionPoint_h 132 #endif // InsertionPoint_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698