DescriptionReattach whitespace siblings only when needed
When an element's renderer is being reattached, previously we reattach
whitespace siblings, causing full paint invalidation of the parent.
If the whitespace sibling needed renderer and still needs renderer,
don't reattach.
- Renamed Node::reattachWhitespaceSiblings() to
Node::reattachWhitespaceSlibingsIfNeeded();
- In the function, test if rendererIsNeeded changed before reattaching;
- Modified Text::textRendererIsNeeded() so that it can return correct
value when the Text has already renderer.
BUG=428997
TEST=fast/repaint/absolute-display-block-to-none.html
TEST=fast/forms/select-listbox-focus-displaynone.html (Existing test
covering the change in Text.cpp).
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185421
Patch Set 1 #
Total comments: 5
Patch Set 2 : Text::reattachIfNeeded() #
Total comments: 4
Patch Set 3 : #
Total comments: 1
Patch Set 4 : Rebased #Patch Set 5 : Rebase #
Messages
Total messages: 29 (11 generated)
|