Skip to content
  • andersca@apple.com's avatar
    Stop using DEFINE_STATIC_LOCAL with RefPtr · f1154b09
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=119769
    
    Reviewed by Andreas Kling.
    
    No need to waste heap memory allocating RefPtr, just store the raw pointers directly.
    
    * dom/ContextFeatures.cpp:
    (WebCore::ContextFeatures::defaultSwitch):
    * dom/DocumentMarker.cpp:
    (WebCore::DocumentMarkerTextMatch::instanceFor):
    * editing/EditingStyle.cpp:
    (WebCore::StyleChange::extractTextStyles):
    * html/FTPDirectoryDocument.cpp:
    (WebCore::FTPDirectoryDocumentParser::loadDocumentTemplate):
    * html/HTMLPlugInImageElement.cpp:
    (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot):
    * html/track/TextTrack.cpp:
    (WebCore::TextTrack::captionMenuOffItem):
    (WebCore::TextTrack::captionMenuAutomaticItem):
    * loader/icon/IconDatabase.cpp:
    (WebCore::loadDefaultIconRecord):
    * platform/graphics/Image.cpp:
    (WebCore::Image::nullImage):
    * platform/graphics/PlatformTextTrack.h:
    (WebCore::PlatformTextTrack::captionMenuOffItem):
    (WebCore::PlatformTextTrack::captionMenuAutomaticItem):
    * rendering/style/RenderStyle.cpp:
    (WebCore::RenderStyle::initialShapeInside):
    * testing/MockCDM.cpp:
    (WebCore::initDataPrefix):
    (WebCore::keyPrefix):
    (WebCore::keyRequest):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154023 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f1154b09