text-combine text retains compressed font after adding characters to it
https://bugs.webkit.org/show_bug.cgi?id=56448 Reviewed by Simon Fraser. Source/WebCore: Test: fast/dynamic/text-combine.html * css/CSSStyleSelector.cpp: (WebCore::CSSStyleSelector::applyProperty): Allow styles with text-combine to be shared, since only the clones on the RenderCombineText will be mutated. * rendering/RenderCombineText.cpp: (WebCore::RenderCombineText::styleDidChange): Clone the style, to avoid mutating the parent’s style. (WebCore::RenderCombineText::combineText): Start off with the original font; restore it if the text cannot be combined. * rendering/RenderCombineText.h: (WebCore::RenderCombineText::originalFont): Added. Returns the parent’s font. LayoutTests: * fast/dynamic/text-combine.html: Added. * platform/mac/fast/dynamic/text-combine-expected.checksum: Added. * platform/mac/fast/dynamic/text-combine-expected.png: Added. * platform/mac/fast/dynamic/text-combine-expected.txt: Added. git-svn-id: svn://svn.chromium.org/blink/trunk@81251 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Showing
Please register or sign in to comment