Merge 129144 - Prevent reading stale data from InlineTextBoxes
Reviewed by Eric Seidel.
Text from dirty InlineTextBoxes should never be read or used. This change enforces this
design goal by forcefully zero-ing out the start and length of InlineTextBoxes when
they're being marked dirty. It also adds asserts to accessors for those members.
This change involves making markDirty virtual. Running the line-layout performance test
as well as profiling resizing the html5 spec showed negligable impact with this change.
No new tests as this doesn't change any proper behavior.
(WebCore::InlineBox::markDirty): Making virtual to allow InlineTextBox to overload and
zero out its start and length.
(WebCore::InlineTextBox::markDirty): Zeroing out start and length when we mark the box dirty.
(WebCore::InlineTextBox::start): Adding an assert when we hit this case.