Changeset 20297 in webkit
- Timestamp:
- Mar 18, 2007 4:40:26 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r20296 r20297 1 2007-03-18 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Tim Hatcher. 4 5 - test and updated result for http://bugs.webkit.org/show_bug.cgi?id=13091 6 REGRESSION (r20075): Wrong text style and pixel break in Apple Store Locator HUD 7 8 * editing/pasteboard/paste-table-002-expected.txt: 9 * fast/innerHTML/additional-inline-style-expected.txt: Added. 10 * fast/innerHTML/additional-inline-style.html: Added. 11 1 12 2007-03-18 Dan Waylonis <waylonis@mac.com> 2 13 -
trunk/LayoutTests/editing/pasteboard/paste-table-002-expected.txt
r20191 r20297 17 17 foo bar 18 18 ghijk 19 <div id="test" class="editing" style="border-top-width: 2px; border-right-width: 2px; border-bottom-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: red; border-right-color: red; border-bottom-color: red; border-left-color: red; font-size: 24px; "> <div>abcdef<div style="text-align: center"><table><tbody><tr><td>foo</td><td>bar</td></tr></tbody></table>ghijk</div> </div> </div>19 <div id="test" class="editing"> <div>abcdef<div style="text-align: center"><table><tbody><tr><td>foo</td><td>bar</td></tr></tbody></table>ghijk</div> </div> </div> 20 20 -
trunk/WebCore/ChangeLog
r20296 r20297 1 2007-03-18 Mitz Pettel <mitz@webkit.org> 2 3 Reviewed by Tim Hatcher. 4 5 - fix http://bugs.webkit.org/show_bug.cgi?id=13091 6 REGRESSION (r20075): Wrong text style and pixel break in Apple Store Locator HUD 7 8 Test: fast/innerHTML/additional-inline-style.html 9 10 * editing/markup.cpp: 11 (WebCore::startMarkup): Changed to add inline style based on CSS rules only 12 in AnnotateForInterchange mode. 13 1 14 2007-03-18 Dan Waylonis <waylonis@mac.com> 2 15 -
trunk/WebCore/editing/markup.cpp
r20215 r20297 191 191 markup += el->nodeNamePreservingCase().deprecatedString(); 192 192 String additionalStyle; 193 if ( el->isHTMLElement()) {193 if (annotate && el->isHTMLElement()) { 194 194 RefPtr<CSSMutableStyleDeclaration> style = styleFromMatchedRulesForElement(const_cast<Element*>(el)); 195 195 if (style->length() > 0) … … 202 202 Attribute *attr = attrs->attributeItem(i); 203 203 String value = attr->value(); 204 if (a ttr->name() == styleAttr && additionalStyle.length() > 0) {204 if (annotate && attr->name() == styleAttr && additionalStyle.length()) { 205 205 value += "; " + additionalStyle; 206 206 additionalStyle = ""; … … 214 214 } 215 215 216 if (a dditionalStyle.length() > 0)216 if (annotate && additionalStyle.length()) 217 217 // FIXME: Handle case where additionalStyle has illegal characters in it, like " 218 218 markup += " " + styleAttr.localName().deprecatedString() + "=\"" + additionalStyle.deprecatedString() + "\"";
Note: See TracChangeset
for help on using the changeset viewer.