Chromium Code Reviews
DescriptionMake Text::updateLayoutTextObject() to update first-letter pseudo element related layout tree correctly
This patch makes |Text::updateTextLayoutObject()| to reattach layout object for
|Text| node when it is part of first-letter when contents of |Text| node is
changed.
Before this patch, we change |LayoutTextFragment| directly and leaves original
first letter part event if |Text| node no more to serve first-letter part, e.g.
change to "a" (first-letter part), to " " (a space isn't first-letter part).
This patch covers more cases than crrev.com/380116, which covers text change
to make no first-letter pseudo element.
BUG=619379
TEST=webkit_unit_tests --gtest_filter=TextTest.SetDataToChangeFirstLetterTextNode
Committed: https://crrev.com/1823f9957dd146fd14cec6ec8c549364fbc4fbfd
Cr-Commit-Position: refs/heads/master@{#402775}
Patch Set 1 : 2016-06-29T15:54:22 #
Total comments: 2
Patch Set 2 : 2016-06-29T17:39:07 #
Messages
Total messages: 12 (5 generated)
|
||||||||||||||||||||||||||||