 Chromium Code Reviews
 Chromium Code Reviews Issue 
            2630293003:
    Do not allocate SlotAssignment unless a shadowroot has a slot  (Closed)
    
  
    Issue 
            2630293003:
    Do not allocate SlotAssignment unless a shadowroot has a slot  (Closed) 
  | DescriptionDo not allocate SlotAssignment unless a ShadowRoot has a slot
Make ShadowRoot::ensureSlotAssignment() private so that it can not be used from 
outside. Now only ShadowRoot has a responsibility in allocating SlotAssignment.
Instead of ShadowRoot::ensureSlotAssignment(), ShadowRoot now provides
public ShadowRoot::slotAssignment(), but it uses DCHECK(m_slotAssignment) so that
it can be used only where we can assume that SlotAssignment is already allocated.
BUG=681134
Review-Url: https://codereview.chromium.org/2630293003
Cr-Commit-Position: refs/heads/master@{#444647}
Committed: https://chromium.googlesource.com/chromium/src/+/db77e9ace4f1948a8d1c87c2bd2de1380526bb5b
   Patch Set 1 #
      Total comments: 4
      
     Patch Set 2 : renamed #
 Messages
    Total messages: 23 (13 generated)
     | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||