[Webkit-unassigned] [Bug 112329] REGRESSION: WebKit doesn't preserve style when copying text from another element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Apr 2 01:15:59 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=112329





--- Comment #5 from Ryosuke Niwa <rniwa at webkit.org>  2013-04-02 01:14:10 PST ---
Created an attachment (id=196093)
 --> (https://bugs.webkit.org/attachment.cgi?id=196093&action=review)
Reduction

The problem is in ReplaceSelectionCommand::removeRedundantStylesAndKeepStyleSpanInline. We’re removing font-size & color
via removeStyleFromRulesAndContext since they’re duplicated in the style rules.

Since the inline style is now empty, we end up erronrously removing span and those rules stops applying to the text.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list