DescriptionDon't leave stale pointers into m_grid
Sometimes grid children are wrapped into an anonymous blocks to become grid
items. Those anonymous blocks could be eventually removed by
RenderBlock::removeLeftoverAnonymousBlock() (called for example when adding
a new child to the grid). That method does not notify the hierarchy about
the removal since those anonymous blocks are not part of the
DOM. This means that further accesses to the m_grid contents will trigger
invalid accesses to the already deleted RenderObjects (the anonymous blocks).
To fix it we invalidate the contents of m_grid by setting the dirty flag in
the grid.
Based on the previous work in r161127 by <jchaffraix@chromium.org>
BUG=313293
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175912
Patch Set 1 #
Total comments: 2
Patch Set 2 : Patch for landing #
Messages
Total messages: 11 (0 generated)
|