Changeset 20297 in webkit


Ignore:
Timestamp:
Mar 18, 2007 4:40:26 PM (17 years ago)
Author:
bdash
Message:

2007-03-18 Mitz Pettel <mitz@webkit.org>

Reviewed by Tim Hatcher.

Test: fast/innerHTML/additional-inline-style.html

  • editing/markup.cpp: (WebCore::startMarkup): Changed to add inline style based on CSS rules only in AnnotateForInterchange mode.

2007-03-18 Mitz Pettel <mitz@webkit.org>

Reviewed by Tim Hatcher.

  • editing/pasteboard/paste-table-002-expected.txt:
  • fast/innerHTML/additional-inline-style-expected.txt: Added.
  • fast/innerHTML/additional-inline-style.html: Added.
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r20296 r20297  
     12007-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
    1122007-03-18  Dan Waylonis  <waylonis@mac.com>
    213
  • trunk/LayoutTests/editing/pasteboard/paste-table-002-expected.txt

    r20191 r20297  
    1717foo     bar
    1818ghijk
    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>
    2020
  • trunk/WebCore/ChangeLog

    r20296 r20297  
     12007-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
    1142007-03-18  Dan Waylonis  <waylonis@mac.com>
    215
  • trunk/WebCore/editing/markup.cpp

    r20215 r20297  
    191191            markup += el->nodeNamePreservingCase().deprecatedString();
    192192            String additionalStyle;
    193             if (el->isHTMLElement()) {
     193            if (annotate && el->isHTMLElement()) {
    194194                RefPtr<CSSMutableStyleDeclaration> style = styleFromMatchedRulesForElement(const_cast<Element*>(el));
    195195                if (style->length() > 0)
     
    202202                Attribute *attr = attrs->attributeItem(i);
    203203                String value = attr->value();
    204                 if (attr->name() == styleAttr && additionalStyle.length() > 0) {
     204                if (annotate && attr->name() == styleAttr && additionalStyle.length()) {
    205205                    value += "; " + additionalStyle;
    206206                    additionalStyle = "";
     
    214214            }
    215215           
    216             if (additionalStyle.length() > 0)
     216            if (annotate && additionalStyle.length())
    217217                // FIXME: Handle case where additionalStyle has illegal characters in it, like "
    218218                markup += " " +  styleAttr.localName().deprecatedString() + "=\"" + additionalStyle.deprecatedString() + "\"";
Note: See TracChangeset for help on using the changeset viewer.