Changeset 117361 in webkit
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r117359 r117361 1 2012-05-16 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r92823): WebKit strips font-weight: normal from b element when copying 4 https://bugs.webkit.org/show_bug.cgi?id=86663 5 6 Reviewed by Tony Chang. 7 8 The bug was caused by removeStyleFromRulesAndContext incorrectly stripping font-weight property 9 even when the context had no font-weight property because of a property name mismatch in getPropertiesNotIn. 10 11 Fixed the mismatch. 12 13 Test: editing/pasteboard/paste-text-with-style-5.html 14 15 * editing/EditingStyle.cpp: 16 (WebCore::getPropertiesNotIn): 17 1 18 2012-05-16 Ryosuke Niwa <rniwa@webkit.org> 2 19 -
trunk/Source/WebCore/editing/EditingStyle.cpp
r115215 r117361 1494 1494 diffTextDecorations(result.get(), CSSPropertyWebkitTextDecorationsInEffect, baseTextDecorationsInEffect.get()); 1495 1495 1496 if (baseStyle->getPropertyCSSValueInternal(CSSPropertyFont Size) && fontWeightIsBold(result.get()) == fontWeightIsBold(baseStyle))1496 if (baseStyle->getPropertyCSSValueInternal(CSSPropertyFontWeight) && fontWeightIsBold(result.get()) == fontWeightIsBold(baseStyle)) 1497 1497 result->removeProperty(CSSPropertyFontWeight); 1498 1498
Note: See TracChangeset
for help on using the changeset viewer.