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

Side by Side Diff: third_party/WebKit/Source/core/dom/shadow/ShadowRoot.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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const; 112 HTMLShadowElement* shadowInsertionPointOfYoungerShadowRoot() const;
113 void setShadowInsertionPointOfYoungerShadowRoot(HTMLShadowElement*); 113 void setShadowInsertionPointOfYoungerShadowRoot(HTMLShadowElement*);
114 void didAddInsertionPoint(InsertionPoint*); 114 void didAddInsertionPoint(InsertionPoint*);
115 void didRemoveInsertionPoint(InsertionPoint*); 115 void didRemoveInsertionPoint(InsertionPoint*);
116 const HeapVector<Member<InsertionPoint>>& descendantInsertionPoints(); 116 const HeapVector<Member<InsertionPoint>>& descendantInsertionPoints();
117 117
118 // For Internals, don't use this. 118 // For Internals, don't use this.
119 unsigned childShadowRootCount() const { return m_childShadowRootCount; } 119 unsigned childShadowRootCount() const { return m_childShadowRootCount; }
120 120
121 void recalcStyle(StyleRecalcChange); 121 void recalcStyle(StyleRecalcChange);
122 void rebuildLayoutTree();
122 123
123 void registerScopedHTMLStyleChild(); 124 void registerScopedHTMLStyleChild();
124 void unregisterScopedHTMLStyleChild(); 125 void unregisterScopedHTMLStyleChild();
125 126
126 SlotAssignment& slotAssignment() { 127 SlotAssignment& slotAssignment() {
127 DCHECK(m_slotAssignment); 128 DCHECK(m_slotAssignment);
128 return *m_slotAssignment; 129 return *m_slotAssignment;
129 } 130 }
130 131
131 HTMLSlotElement* assignedSlotFor(const Node&); 132 HTMLSlotElement* assignedSlotFor(const Node&);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 treeScope, 200 treeScope,
200 treeScope->rootNode().isShadowRoot(), 201 treeScope->rootNode().isShadowRoot(),
201 treeScope.rootNode().isShadowRoot()); 202 treeScope.rootNode().isShadowRoot());
202 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true); 203 DEFINE_TYPE_CASTS(TreeScope, ShadowRoot, shadowRoot, true, true);
203 204
204 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&); 205 CORE_EXPORT std::ostream& operator<<(std::ostream&, const ShadowRootType&);
205 206
206 } // namespace blink 207 } // namespace blink
207 208
208 #endif // ShadowRoot_h 209 #endif // ShadowRoot_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/shadow/ElementShadow.cpp ('k') | third_party/WebKit/Source/core/dom/shadow/ShadowRoot.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698