Skip to content
  • aliceli1's avatar
    Reviewed by Adam. · 7f9f8407
    aliceli1 authored
            Fixed <rdar://problem/5225119> support smart pasting on Windows
    
            * WebCore.vcproj/WebCore.vcproj:
            * WebCore.xcodeproj/project.pbxproj:
                Added new files
            * editing/SmartReplace.cpp: Added.
            (WebCore::isCharacterSmartReplaceExempt):
                Added non-CF implementation placeholder
            * editing/SmartReplace.h: Added.
            * editing/SmartReplaceCF.cpp: Added.
            (WebCore::getSmartSet):
            (WebCore::isCharacterSmartReplaceExempt):
                Added new implementation
    
            * bridge/win/FrameWin.cpp:
            * page/Frame.h:
            * page/mac/FrameMac.mm:
                Removed old declaration and implementation
    
            * editing/ReplaceSelectionCommand.cpp:
            (WebCore::ReplaceSelectionCommand::doApply):
                Changed to call the new function instead of old
    
            * page/mac/WebCoreFrameBridge.h:
            * page/mac/WebCoreFrameBridge.mm:
                Removed old declaration and implementation
            (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
                Changed to call the new function instead of old
    
            * platform/win/PasteboardWin.cpp:
            (WebCore::Pasteboard::Pasteboard):
                Register new clipboard format
            (WebCore::Pasteboard::writeSelection):
                Set data for smartpaste format on clipboard
            (WebCore::Pasteboard::canSmartReplace):
                Added non-stub implementation
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23986 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    7f9f8407