Changeset 256420 in webkit
- Timestamp:
- Feb 11, 2020 5:59:28 PM (4 years ago)
- Location:
- trunk/Source
- Files:
-
- 21 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r256353 r256420 1 2020-02-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Fix declarations marked by wrong export macros (WEBCORE_EXPORT and WTF_EXPORT) 4 https://bugs.webkit.org/show_bug.cgi?id=207453 5 6 Reviewed by Ross Kirsling. 7 8 Export macros are prone to be misused because thier definitions 9 are identical for POSIX ports. They can be used interchangeably on 10 such ports. 11 12 WTF should use WTF_EXPORT_PRIVATE instead of WTF_EXPORT. 13 14 * wtf/HexNumber.h: 15 * wtf/Language.h: 16 * wtf/Logger.h: 17 * wtf/ProcessPrivilege.h: 18 * wtf/cocoa/CrashReporter.h: 19 * wtf/cocoa/Entitlements.h: 20 * wtf/text/LineEnding.h: 21 * wtf/text/TextBreakIterator.h: 22 * wtf/text/icu/UTextProviderLatin1.h: 23 Replaced WTF_EXPORT with WTF_EXPORT_PRIVATE. 24 1 25 2020-02-11 Eric Carlson <eric.carlson@apple.com> 2 26 -
trunk/Source/WTF/wtf/HexNumber.h
r254046 r256420 38 38 } 39 39 40 WTF_EXPORT std::pair<LChar*, unsigned> appendHex(LChar* buffer, unsigned bufferSize, std::uintmax_t number, unsigned minimumDigits, HexConversionMode);40 WTF_EXPORT_PRIVATE std::pair<LChar*, unsigned> appendHex(LChar* buffer, unsigned bufferSize, std::uintmax_t number, unsigned minimumDigits, HexConversionMode); 41 41 42 42 template<size_t arraySize, typename NumberType> -
trunk/Source/WTF/wtf/Language.h
r254389 r256420 36 36 namespace WTF { 37 37 38 WTF_EXPORT String defaultLanguage(); // Thread-safe.39 WTF_EXPORT Vector<String> userPreferredLanguages(); // Thread-safe, returns BCP 47 language tags.40 WTF_EXPORT Vector<String> userPreferredLanguagesOverride();41 WTF_EXPORT void overrideUserPreferredLanguages(const Vector<String>&);42 WTF_EXPORT size_t indexOfBestMatchingLanguageInList(const String& language, const Vector<String>& languageList, bool& exactMatch);43 WTF_EXPORT Vector<String> platformUserPreferredLanguages();38 WTF_EXPORT_PRIVATE String defaultLanguage(); // Thread-safe. 39 WTF_EXPORT_PRIVATE Vector<String> userPreferredLanguages(); // Thread-safe, returns BCP 47 language tags. 40 WTF_EXPORT_PRIVATE Vector<String> userPreferredLanguagesOverride(); 41 WTF_EXPORT_PRIVATE void overrideUserPreferredLanguages(const Vector<String>&); 42 WTF_EXPORT_PRIVATE size_t indexOfBestMatchingLanguageInList(const String& language, const Vector<String>& languageList, bool& exactMatch); 43 WTF_EXPORT_PRIVATE Vector<String> platformUserPreferredLanguages(); 44 44 // Called from platform specific code when the user's preferred language(s) change. 45 45 void languageDidChange(); … … 47 47 // The observer function will be called when system language changes. 48 48 typedef void (*LanguageChangeObserverFunction)(void* context); 49 WTF_EXPORT void addLanguageChangeObserver(void* context, LanguageChangeObserverFunction);50 WTF_EXPORT void removeLanguageChangeObserver(void* context);51 WTF_EXPORT String displayNameForLanguageLocale(const String&);49 WTF_EXPORT_PRIVATE void addLanguageChangeObserver(void* context, LanguageChangeObserverFunction); 50 WTF_EXPORT_PRIVATE void removeLanguageChangeObserver(void* context); 51 WTF_EXPORT_PRIVATE String displayNameForLanguageLocale(const String&); 52 52 53 53 #if PLATFORM(COCOA) -
trunk/Source/WTF/wtf/Logger.h
r254514 r256420 211 211 } 212 212 213 WTF_EXPORT String toString() const;213 WTF_EXPORT_PRIVATE String toString() const; 214 214 215 215 const char* className { nullptr }; … … 282 282 }; 283 283 template<> struct LogArgument<const void*> { 284 WTF_EXPORT static String toString(const void*);284 WTF_EXPORT_PRIVATE static String toString(const void*); 285 285 }; 286 286 -
trunk/Source/WTF/wtf/ProcessPrivilege.h
r229978 r256420 36 36 }; 37 37 38 WTF_EXPORT void setProcessPrivileges(OptionSet<ProcessPrivilege>);39 WTF_EXPORT void addProcessPrivilege(ProcessPrivilege);40 WTF_EXPORT void removeProcessPrivilege(ProcessPrivilege);41 WTF_EXPORT bool hasProcessPrivilege(ProcessPrivilege);42 WTF_EXPORT OptionSet<ProcessPrivilege> allPrivileges();38 WTF_EXPORT_PRIVATE void setProcessPrivileges(OptionSet<ProcessPrivilege>); 39 WTF_EXPORT_PRIVATE void addProcessPrivilege(ProcessPrivilege); 40 WTF_EXPORT_PRIVATE void removeProcessPrivilege(ProcessPrivilege); 41 WTF_EXPORT_PRIVATE bool hasProcessPrivilege(ProcessPrivilege); 42 WTF_EXPORT_PRIVATE OptionSet<ProcessPrivilege> allPrivileges(); 43 43 44 44 } // namespace WTF -
trunk/Source/WTF/wtf/cocoa/CrashReporter.h
r252065 r256420 28 28 namespace WTF { 29 29 30 WTF_EXPORT void setCrashLogMessage(const char*);30 WTF_EXPORT_PRIVATE void setCrashLogMessage(const char*); 31 31 32 32 } // namespace WTF -
trunk/Source/WTF/wtf/cocoa/Entitlements.h
r254832 r256420 32 32 namespace WTF { 33 33 34 WTF_EXPORT bool hasEntitlement(audit_token_t, const char* entitlement);35 WTF_EXPORT bool hasEntitlement(xpc_connection_t, const char* entitlement);36 WTF_EXPORT bool processHasEntitlement(const char* entitlement);34 WTF_EXPORT_PRIVATE bool hasEntitlement(audit_token_t, const char* entitlement); 35 WTF_EXPORT_PRIVATE bool hasEntitlement(xpc_connection_t, const char* entitlement); 36 WTF_EXPORT_PRIVATE bool processHasEntitlement(const char* entitlement); 37 37 38 38 } // namespace WTF -
trunk/Source/WTF/wtf/text/LineEnding.h
r225618 r256420 37 37 38 38 // Normalize all line-endings in the given string. 39 WTF_EXPORT Vector<uint8_t> normalizeLineEndingsToLF(Vector<uint8_t>&&);40 WTF_EXPORT Vector<uint8_t> normalizeLineEndingsToCRLF(Vector<uint8_t>&&);39 WTF_EXPORT_PRIVATE Vector<uint8_t> normalizeLineEndingsToLF(Vector<uint8_t>&&); 40 WTF_EXPORT_PRIVATE Vector<uint8_t> normalizeLineEndingsToCRLF(Vector<uint8_t>&&); 41 41 42 42 // Normalize all line-endings to CRLF on Windows, to LF on all other platforms. 43 WTF_EXPORT Vector<uint8_t> normalizeLineEndingsToNative(Vector<uint8_t>&&);43 WTF_EXPORT_PRIVATE Vector<uint8_t> normalizeLineEndingsToNative(Vector<uint8_t>&&); 44 44 45 45 } // namespace WTF -
trunk/Source/WTF/wtf/text/TextBreakIterator.h
r250309 r256420 83 83 84 84 // Use CachedTextBreakIterator instead of constructing one of these directly. 85 WTF_EXPORT TextBreakIterator(StringView, Mode, const AtomString& locale);85 WTF_EXPORT_PRIVATE TextBreakIterator(StringView, Mode, const AtomString& locale); 86 86 87 87 void setText(StringView string) -
trunk/Source/WTF/wtf/text/icu/UTextProviderLatin1.h
r248546 r256420 39 39 }; 40 40 41 WTF_EXPORT UText* openLatin1UTextProvider(UTextWithBuffer* utWithBuffer, const LChar* string, unsigned length, UErrorCode* status);41 WTF_EXPORT_PRIVATE UText* openLatin1UTextProvider(UTextWithBuffer* utWithBuffer, const LChar* string, unsigned length, UErrorCode* status); 42 42 UText* openLatin1ContextAwareUTextProvider(UTextWithBuffer* utWithBuffer, const LChar* string, unsigned length, const UChar* priorContext, int priorContextLength, UErrorCode* status); 43 43 -
trunk/Source/WebCore/ChangeLog
r256418 r256420 1 2020-02-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Fix declarations marked by wrong export macros (WEBCORE_EXPORT and WTF_EXPORT) 4 https://bugs.webkit.org/show_bug.cgi?id=207453 5 6 Reviewed by Ross Kirsling. 7 8 No new tests because there is no behavior change. 9 10 * rendering/RenderTheme.h: 11 * testing/MockContentFilterSettings.h: 12 * testing/MockGamepadProvider.h: 13 1 14 2020-02-11 Brent Fulgham <bfulgham@apple.com> 2 15 -
trunk/Source/WebCore/rendering/RenderTheme.h
r255457 r256420 161 161 virtual Color disabledTextColor(const Color& textColor, const Color& backgroundColor) const; 162 162 163 W TF_EXPORT Color focusRingColor(OptionSet<StyleColor::Options>) const;163 WEBCORE_EXPORT Color focusRingColor(OptionSet<StyleColor::Options>) const; 164 164 virtual Color platformFocusRingColor(OptionSet<StyleColor::Options>) const { return Color(0, 0, 0); } 165 165 static void setCustomFocusRingColor(const Color&); -
trunk/Source/WebCore/testing/MockContentFilterSettings.h
r219623 r256420 47 47 }; 48 48 49 W TF_EXPORT_PRIVATEstatic MockContentFilterSettings& singleton();49 WEBCORE_TESTSUPPORT_EXPORT static MockContentFilterSettings& singleton(); 50 50 static void reset(); 51 51 static const char* unblockURLHost() { return "mock-unblock"; } … … 56 56 57 57 bool enabled() const { return m_enabled; } 58 W TF_EXPORT_PRIVATEvoid setEnabled(bool);58 WEBCORE_TESTSUPPORT_EXPORT void setEnabled(bool); 59 59 60 60 const String& blockedString() const { return m_blockedString; } -
trunk/Source/WebCore/testing/MockGamepadProvider.h
r256215 r256420 38 38 friend class NeverDestroyed<MockGamepadProvider>; 39 39 public: 40 WEBCORE_ EXPORT static MockGamepadProvider& singleton();40 WEBCORE_TESTSUPPORT_EXPORT static MockGamepadProvider& singleton(); 41 41 42 WEBCORE_ EXPORT void startMonitoringGamepads(GamepadProviderClient&) final;43 WEBCORE_ EXPORT void stopMonitoringGamepads(GamepadProviderClient&) final;42 WEBCORE_TESTSUPPORT_EXPORT void startMonitoringGamepads(GamepadProviderClient&) final; 43 WEBCORE_TESTSUPPORT_EXPORT void stopMonitoringGamepads(GamepadProviderClient&) final; 44 44 const Vector<PlatformGamepad*>& platformGamepads() final { return m_connectedGamepadVector; } 45 45 bool isMockGamepadProvider() const final { return true; } -
trunk/Source/WebKit/ChangeLog
r256401 r256420 1 2020-02-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Fix declarations marked by wrong export macros (WEBCORE_EXPORT and WTF_EXPORT) 4 https://bugs.webkit.org/show_bug.cgi?id=207453 5 6 Reviewed by Ross Kirsling. 7 8 * UIProcess/RemoteLayerTree/mac/ScrollingTreeFrameScrollingNodeRemoteMac.h: 9 * UIProcess/RemoteLayerTree/mac/ScrollingTreeOverflowScrollingNodeRemoteMac.h: 10 1 11 2020-02-11 Wenson Hsieh <wenson_hsieh@apple.com> 2 12 -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/mac/ScrollingTreeFrameScrollingNodeRemoteMac.h
r242132 r256420 36 36 class ScrollingTreeFrameScrollingNodeRemoteMac : public WebCore::ScrollingTreeFrameScrollingNodeMac { 37 37 public: 38 WEBCORE_EXPORTstatic Ref<ScrollingTreeFrameScrollingNodeRemoteMac> create(WebCore::ScrollingTree&, WebCore::ScrollingNodeType, WebCore::ScrollingNodeID);38 static Ref<ScrollingTreeFrameScrollingNodeRemoteMac> create(WebCore::ScrollingTree&, WebCore::ScrollingNodeType, WebCore::ScrollingNodeID); 39 39 virtual ~ScrollingTreeFrameScrollingNodeRemoteMac(); 40 40 -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/mac/ScrollingTreeOverflowScrollingNodeRemoteMac.h
r242359 r256420 36 36 class ScrollingTreeOverflowScrollingNodeRemoteMac : public WebCore::ScrollingTreeOverflowScrollingNodeMac { 37 37 public: 38 WEBCORE_EXPORTstatic Ref<ScrollingTreeOverflowScrollingNodeRemoteMac> create(WebCore::ScrollingTree&, WebCore::ScrollingNodeID);38 static Ref<ScrollingTreeOverflowScrollingNodeRemoteMac> create(WebCore::ScrollingTree&, WebCore::ScrollingNodeID); 39 39 virtual ~ScrollingTreeOverflowScrollingNodeRemoteMac(); 40 40 -
trunk/Source/WebKitLegacy/ChangeLog
r256419 r256420 1 2020-02-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Fix declarations marked by wrong export macros (WEBCORE_EXPORT and WTF_EXPORT) 4 https://bugs.webkit.org/show_bug.cgi?id=207453 5 6 Reviewed by Ross Kirsling. 7 8 * Storage/InProcessIDBServer.h: 9 1 10 2020-02-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 11 -
trunk/Source/WebKitLegacy/Storage/InProcessIDBServer.h
r253740 r256420 56 56 public: 57 57 58 WEBCORE_EXPORTstatic Ref<InProcessIDBServer> create(PAL::SessionID);59 WEBCORE_EXPORTstatic Ref<InProcessIDBServer> create(PAL::SessionID, const String& databaseDirectoryPath);58 static Ref<InProcessIDBServer> create(PAL::SessionID); 59 static Ref<InProcessIDBServer> create(PAL::SessionID, const String& databaseDirectoryPath); 60 60 61 WEBCORE_EXPORTvirtual ~InProcessIDBServer();61 virtual ~InProcessIDBServer(); 62 62 63 63 WebCore::IDBClient::IDBConnectionToServer& connectionToServer() const; -
trunk/Source/WebKitLegacy/win/ChangeLog
r256075 r256420 1 2020-02-11 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Fix declarations marked by wrong export macros (WEBCORE_EXPORT and WTF_EXPORT) 4 https://bugs.webkit.org/show_bug.cgi?id=207453 5 6 Reviewed by Ross Kirsling. 7 8 * Plugins/PluginMainThreadScheduler.h: 9 1 10 2020-02-07 Chris Dumez <cdumez@apple.com> 2 11 -
trunk/Source/WebKitLegacy/win/Plugins/PluginMainThreadScheduler.h
r219858 r256420 42 42 typedef void MainThreadFunction(void*); 43 43 44 WEBCORE_EXPORTstatic PluginMainThreadScheduler& scheduler();44 static PluginMainThreadScheduler& scheduler(); 45 45 46 WEBCORE_EXPORTvoid scheduleCall(NPP, MainThreadFunction*, void* userData);46 void scheduleCall(NPP, MainThreadFunction*, void* userData); 47 47 48 WEBCORE_EXPORTvoid registerPlugin(NPP);49 WEBCORE_EXPORTvoid unregisterPlugin(NPP);48 void registerPlugin(NPP); 49 void unregisterPlugin(NPP); 50 50 51 51 private:
Note: See TracChangeset
for help on using the changeset viewer.