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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLSlotElement.h

Issue 2842263004: Fix assignedNodes({flatten:true}) to return fallback content in document tree (Closed)
Patch Set: Fix for comments. 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) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 101
102 DECLARE_VIRTUAL_TRACE(); 102 DECLARE_VIRTUAL_TRACE();
103 103
104 private: 104 private:
105 HTMLSlotElement(Document&); 105 HTMLSlotElement(Document&);
106 106
107 InsertionNotificationRequest InsertedInto(ContainerNode*) final; 107 InsertionNotificationRequest InsertedInto(ContainerNode*) final;
108 void RemovedFrom(ContainerNode*) final; 108 void RemovedFrom(ContainerNode*) final;
109 void WillRecalcStyle(StyleRecalcChange) final; 109 void WillRecalcStyle(StyleRecalcChange) final;
110 110
111 const HeapVector<Member<Node>> GetDistributedNodesWithFallback() const;
112
111 void EnqueueSlotChangeEvent(); 113 void EnqueueSlotChangeEvent();
112 114
113 HeapVector<Member<Node>> assigned_nodes_; 115 HeapVector<Member<Node>> assigned_nodes_;
114 HeapVector<Member<Node>> distributed_nodes_; 116 HeapVector<Member<Node>> distributed_nodes_;
115 HeapVector<Member<Node>> old_distributed_nodes_; 117 HeapVector<Member<Node>> old_distributed_nodes_;
116 HeapHashMap<Member<const Node>, size_t> distributed_indices_; 118 HeapHashMap<Member<const Node>, size_t> distributed_indices_;
117 bool slotchange_event_enqueued_ = false; 119 bool slotchange_event_enqueued_ = false;
118 }; 120 };
119 121
120 } // namespace blink 122 } // namespace blink
121 123
122 #endif // HTMLSlotElement_h 124 #endif // HTMLSlotElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698