Skip to content
  • darin@apple.com's avatar
    Source/WebCore: No need for documentTypeString function in Frame · 70055d62
    darin@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=120262
    
    Reviewed by Andreas Kling.
    
    * WebCore.exp.in: Removed export of Frame::documentTypeString.
    
    * editing/markup.cpp:
    (WebCore::documentTypeString): Added. Replaces the old Frame member function.
    Makes more sense to have this here since it is both called by and calls code
    in this file; somehow this function was left behind.
    (WebCore::createFullMarkup): Changed to call the new function.
    * editing/markup.h: Added documentTypeString function. Has to be exported
    because LegacyWebArchive uses it; might be worth fixing that later.
    * loader/archive/cf/LegacyWebArchive.cpp:
    (WebCore::LegacyWebArchive::create): Changed to call the new function.
    (WebCore::LegacyWebArchive::createFromSelection): Ditto.
    
    * page/Frame.cpp: Removed Frame::documentTypeString.
    * page/Frame.h: Ditto.
    
    Source/WebKit/mac: Frame should not have a documentTypeString member function
    https://bugs.webkit.org/show_bug.cgi?id=120262
    
    Reviewed by Andreas Kling.
    
    * WebView/WebFrame.mm: Removed _stringWithDocumentTypeStringAndMarkupString:
    internal method, which was not used anywhere in WebKit. Internal methods are
    only for use within WebKit, as opposed to public and private methods that can
    be used outside.
    * WebView/WebFrameInternal.h: Ditto.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    70055d62