Changeset 53680 in webkit
- Timestamp:
- Jan 21, 2010 10:53:14 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r53676 r53680 1 2010-01-21 Tony Chang <tony@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=25501 6 Remove empty font tags when applying a style to a content editable 7 region. 8 9 * editing/execCommand/change-font.html: Added. 10 * editing/execCommand/change-font-expected.txt: Added. 11 1 12 2010-01-21 Fumitoshi Ukai <ukai@chromium.org> 2 13 -
trunk/WebCore/ChangeLog
r53674 r53680 1 2010-01-21 Tony Chang <tony@chromium.org> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=25501 6 Remove empty font tags when applying a style to a content editable 7 region. 8 9 Test: editing/execCommand/change-font.html 10 11 * editing/ApplyStyleCommand.cpp: 12 (WebCore::isEmptyFontTag): 13 1 14 2010-01-21 Joe Mason <jmason@rim.com> 2 15 -
trunk/WebCore/editing/ApplyStyleCommand.cpp
r50177 r53680 303 303 const Element *elem = static_cast<const Element *>(node); 304 304 NamedNodeMap *map = elem->attributes(true); // true for read-only 305 return (!map || map->length() == 1) && elem->getAttribute(classAttr) == styleSpanClassString(); 305 if (!map) 306 return true; 307 return map->isEmpty() || (map->length() == 1 && elem->getAttribute(classAttr) == styleSpanClassString()); 306 308 } 307 309
Note: See TracChangeset
for help on using the changeset viewer.