Skip to content
  • commit-queue@webkit.org's avatar
    contenteditable justify commands applied to next paragraph as well · dcfed98f
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=90611
    
    Patch by Santosh Mahto <santosh.ma@samsung.com> on 2013-10-01
    Reviewed by Ryosuke Niwa.
    
    Source/WebCore:
    
    When the selection extends from first paragraph to start of next
    paragraph then Justify command is applied to both the paragraph,
    Instead it should be applied only to first paragraph.
    
    Co-author: Sudarshan C P <sudarshan.cp@samsung.com>
    
    Test: editing/execCommand/contenteditable-justify-next-paragraph.html
    
    * editing/ApplyStyleCommand.cpp:
    (WebCore::ApplyStyleCommand::applyBlockStyle):
    Adjusted visibleEnd to previous position.
    
    LayoutTests:
    
    Added a test for selecting one paragraph and the beginning of another
    paragraph to ensure that only the first fully-selected paragraph should
    be justified when justifying the selection.
    
    * editing/execCommand/align-in-span-expected.txt: Updated.
    * editing/execCommand/contenteditable-justify-next-paragraph-expected.txt: Added.
    * editing/execCommand/contenteditable-justify-next-paragraph.html: Added.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@156764 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    dcfed98f