Skip to content
  • benjamin@webkit.org's avatar
    Do not use static string in DiagnosticLoggingKeys · de100579
    benjamin@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=115093
    
    Patch by Benjamin Poulain <bpoulain@apple.com> on 2013-04-24
    Reviewed by Andreas Kling.
    
    The code is not hot enough to justify keeping the memory around.
    This removes 3kb from the binary on x86_64.
    
    * page/DiagnosticLoggingKeys.cpp:
    (WebCore::DiagnosticLoggingKeys::mediaLoadedKey):
    (WebCore::DiagnosticLoggingKeys::mediaLoadingFailedKey):
    (WebCore::DiagnosticLoggingKeys::pluginLoadedKey):
    (WebCore::DiagnosticLoggingKeys::pluginLoadingFailedKey):
    (WebCore::DiagnosticLoggingKeys::pageContainsPluginKey):
    (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey):
    (WebCore::DiagnosticLoggingKeys::pageContainsMediaEngineKey):
    (WebCore::DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey):
    (WebCore::DiagnosticLoggingKeys::passKey):
    (WebCore::DiagnosticLoggingKeys::failKey):
    (WebCore::DiagnosticLoggingKeys::noopKey):
    * page/DiagnosticLoggingKeys.h:
    (DiagnosticLoggingKeys):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@149057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    de100579