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

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

Issue 1514233003: Make assignedSlot return null for a slot in a closed shadow tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@v1-slots
Patch Set: rebased Created 5 years 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * * Neither the name of Google Inc. nor the names of its 10 * * Neither the name of Google Inc. nor the names of its
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 void distributeIfNeeded(); 78 void distributeIfNeeded();
79 void setNeedsDistributionRecalc(); 79 void setNeedsDistributionRecalc();
80 80
81 const InsertionPoint* finalDestinationInsertionPointFor(const Node*) const; 81 const InsertionPoint* finalDestinationInsertionPointFor(const Node*) const;
82 const DestinationInsertionPoints* destinationInsertionPointsFor(const Node*) const; 82 const DestinationInsertionPoints* destinationInsertionPointsFor(const Node*) const;
83 83
84 void didDistributeNode(const Node*, InsertionPoint*); 84 void didDistributeNode(const Node*, InsertionPoint*);
85 85
86 bool isV1() const { return youngestShadowRoot().isV1(); }; 86 bool isV1() const { return youngestShadowRoot().isV1(); };
87 bool isOpen() const { return youngestShadowRoot().isOpen(); };
87 88
88 DECLARE_TRACE(); 89 DECLARE_TRACE();
89 90
90 private: 91 private:
91 ElementShadow(); 92 ElementShadow();
92 93
93 #if !ENABLE(OILPAN) 94 #if !ENABLE(OILPAN)
94 void removeDetachedShadowRoots(); 95 void removeDetachedShadowRoots();
95 #endif 96 #endif
96 97
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 inline void ElementShadow::distributeIfNeeded() 163 inline void ElementShadow::distributeIfNeeded()
163 { 164 {
164 if (m_needsDistributionRecalc) 165 if (m_needsDistributionRecalc)
165 distribute(); 166 distribute();
166 m_needsDistributionRecalc = false; 167 m_needsDistributionRecalc = false;
167 } 168 }
168 169
169 } // namespace 170 } // namespace
170 171
171 #endif 172 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698