• inferno@chromium.org's avatar
    2011-03-30 Abhishek Arya <inferno@chromium.org> · 2da9b7ad
    inferno@chromium.org authored
            Reviewed by Simon Fraser.
    
            Tests that we do not crash when removing inline style
            from a node that is not a html element.
            https://bugs.webkit.org/show_bug.cgi?id=57348
    
            * editing/execCommand/remove-format-non-html-element-crash-expected.txt: Added.
            * editing/execCommand/remove-format-non-html-element-crash.html: Added.
    2011-03-30  Abhishek Arya  <inferno@chromium.org>
    
            Reviewed by Simon Fraser.
    
            Fix wrong type assumptions in editing code. Move code
            from ASSERTs to hard checks.
            https://bugs.webkit.org/show_bug.cgi?id=57348
    
            Test: editing/execCommand/remove-format-non-html-element-crash.html
    
            * css/CSSStyleSelector.cpp:
            (WebCore::CSSStyleSelector::applyProperty):
            * editing/ApplyStyleCommand.cpp:
            (WebCore::getRGBAFontColor):
            (WebCore::ApplyStyleCommand::pushDownInlineStyleAroundNode):
            * editing/DeleteButtonController.cpp:
            (WebCore::enclosingDeletableElement):
            * editing/EditingStyle.cpp:
            (WebCore::EditingStyle::textDirection):
            (WebCore::EditingStyle::prepareToApplyAt):
            * editing/Editor.cpp:
            (WebCore::Editor::textDirectionForSelection):
            * editing/FormatBlockCommand.cpp:
            (WebCore::FormatBlockCommand::elementForFormatBlockCommand):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@82503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    2da9b7ad
EditingStyle.cpp 30.2 KB