REGRESSION(r92823): WebKit strips font-weight: normal from b element when copying
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2012 23:30:16 +0000 (23:30 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 May 2012 23:30:16 +0000 (23:30 +0000)
commit7933b20e3b4cf85cba3b092c5effe184f784be72
treef354d8b6a8eef1ad02dd610d2df321bb8d8006ef
parent4aa7c3edcfe0941f2b682f3be497640ade28870f
REGRESSION(r92823): WebKit strips font-weight: normal from b element when copying
https://bugs.webkit.org/show_bug.cgi?id=86663

Reviewed by Tony Chang.

The bug was caused by removeStyleFromRulesAndContext incorrectly stripping font-weight property
even when the context had no font-weight property because of a property name mismatch in getPropertiesNotIn.

Fixed the mismatch.

Test: editing/pasteboard/paste-text-with-style-5.html

* editing/EditingStyle.cpp:
(WebCore::getPropertiesNotIn):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@117361 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/pasteboard/paste-text-with-style-5-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-text-with-style-5.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/editing/EditingStyle.cpp