RESOLVED FIXED Bug 27007
Build fixes when ICONDATABASE is disabled
https://bugs.webkit.org/show_bug.cgi?id=27007
Summary Build fixes when ICONDATABASE is disabled
David Kilzer (:ddkilzer)
Reported 2009-07-06 14:23:52 PDT
Created attachment 32324 [details] Patch v1 Build fixes when ICONDATABASE is disabled Reviewed by NOBODY (OOPS!). WebCore: * Configurations/WebCore.xcconfig: Exclude IconDatabase.cpp from being compiled when ICONDATABASE is disabled, and exclude IconDatabaseNone.cpp when ICONDATABASE is enabled. Reworked definition of EXCLUDED_SOURCE_FILE_NAMES. * WebCore.xcodeproj/project.pbxproj: Added IconDatabaseNone.cpp to the project. * loader/icon/IconDatabase.h: Removed three public methods from #if ENABLE(ICONDATABASE)/#endif macro so that they may be stubbed out in IconDatabaseNone.cpp. * loader/icon/IconDatabaseNone.cpp: (WebCore::IconDatabase::importIconURLForPageURL): Added. (WebCore::IconDatabase::importIconDataForIconURL): Added. (WebCore::IconDatabase::shouldStopThreadActivity): Added. WebKit/mac: * Misc/WebIconDatabase.mm: (defaultClient): Return 0 if ICONDATABASE is disabled. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveIcon): Commented out the body of the method if ICONDATABASE is disabled. (WebFrameLoaderClient::registerForIconNotification): Ditto. * WebCoreSupport/WebIconDatabaseClient.mm: Added #if ENABLE(ICONDATABASE)/#endif guard to source. * WebView/WebView.mm: (-[WebView setFrameLoadDelegate:]): Wrapped code that starts the icon database machinery in #if ENABLE(ICONDATABASE)/#endif. (-[WebView _registerForIconNotification:]): Wrapped method in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Ditto. * WebView/WebViewInternal.h: Wrapped methods in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _registerForIconNotification:]): (-[WebView _dispatchDidReceiveIconFromWebFrame:]):
Attachments
Patch v1 (15.73 KB, patch)
2009-07-06 14:23 PDT, David Kilzer (:ddkilzer)
no flags
Patch v2 (2.91 KB, patch)
2009-07-07 15:21 PDT, David Kilzer (:ddkilzer)
eric: review-
Patch v3 (4 bytes, patch)
2009-07-07 17:17 PDT, David Kilzer (:ddkilzer)
no flags
Patch v4 (12.30 KB, patch)
2009-07-07 17:24 PDT, David Kilzer (:ddkilzer)
sam: review+
David Kilzer (:ddkilzer)
Comment 1 2009-07-06 18:07:45 PDT
Comment on attachment 32324 [details] Patch v1 Mark Rowe prefers #if macros around the IconDatabase.cpp and IconDatabaseNone.cpp source rather than futzing with the EXCLUDED_SOURCE_FILE_NAMES Xcode setting, so I will update the patch to do that.
David Kilzer (:ddkilzer)
Comment 2 2009-07-07 15:21:31 PDT
Created attachment 32396 [details] Patch v2 <https://bugs.webkit.org/show_bug.cgi?id=27007> Reviewed by NOBODY (OOPS!). WebCore: * WebCore.xcodeproj/project.pbxproj: Added IconDatabaseNone.cpp to the project. * loader/icon/IconDatabase.cpp: Added #if ENABLE(ICONDATABASE)/#endif macro guard. * loader/icon/IconDatabase.h: Removed three public methods from #if ENABLE(ICONDATABASE)/#endif macro so that they may be stubbed out in IconDatabaseNone.cpp. * loader/icon/IconDatabaseNone.cpp: Added #if !ENABLE(ICONDATABASE)/#endif macro guard. (WebCore::IconDatabase::importIconURLForPageURL): Added. (WebCore::IconDatabase::importIconDataForIconURL): Added. (WebCore::IconDatabase::shouldStopThreadActivity): Added. WebKit/mac: * Misc/WebIconDatabase.mm: (defaultClient): Return 0 if ICONDATABASE is disabled. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveIcon): Commented out the body of the method if ICONDATABASE is disabled. (WebFrameLoaderClient::registerForIconNotification): Ditto. * WebCoreSupport/WebIconDatabaseClient.mm: Added #if ENABLE(ICONDATABASE)/#endif guard to source. * WebView/WebView.mm: (-[WebView setFrameLoadDelegate:]): Wrapped code that starts the icon database machinery in #if ENABLE(ICONDATABASE)/#endif. (-[WebView _registerForIconNotification:]): Wrapped method in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Ditto. * WebView/WebViewInternal.h: Wrapped methods in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _registerForIconNotification:]): (-[WebView _dispatchDidReceiveIconFromWebFrame:]):--- 11 files changed, 97 insertions(+), 2 deletions(-)
Eric Seidel (no email)
Comment 3 2009-07-07 15:57:49 PDT
Comment on attachment 32396 [details] Patch v2 This seems like the wrong patch. re: this patch. I like the ability to detect bug URLs in ChangeLogs, but I don't think we should remove the ability to specify a bug? Maybe we should... I guess that forces folks to add the bug url to the ChangeLog? Also the changelog greping code shoudl be in its own function.
David Kilzer (:ddkilzer)
Comment 4 2009-07-07 16:03:06 PDT
Comment on attachment 32396 [details] Patch v2 (In reply to comment #3) > (From update of attachment 32396 [details]) > This seems like the wrong patch. bugzilla-tool FAIL. Why did "post-commit" post a local diff? *sigh* > re: this patch. I like the ability to detect bug URLs in ChangeLogs, but I > don't think we should remove the ability to specify a bug? Maybe we should... > I guess that forces folks to add the bug url to the ChangeLog? Exactly. > Also the changelog greping code shoudl be in its own function. Okay. Will do that before posting the bugzilla-tool patch.
David Kilzer (:ddkilzer)
Comment 5 2009-07-07 17:17:02 PDT
Created attachment 32404 [details] Patch v3 <https://bugs.webkit.org/show_bug.cgi?id=27007> Reviewed by NOBODY (OOPS!). WebCore: * WebCore.xcodeproj/project.pbxproj: Added IconDatabaseNone.cpp to the project. * loader/icon/IconDatabase.cpp: Added #if ENABLE(ICONDATABASE)/#endif macro guard. * loader/icon/IconDatabase.h: Removed three public methods from #if ENABLE(ICONDATABASE)/#endif macro so that they may be stubbed out in IconDatabaseNone.cpp. * loader/icon/IconDatabaseNone.cpp: Added #if !ENABLE(ICONDATABASE)/#endif macro guard. (WebCore::IconDatabase::importIconURLForPageURL): Added. (WebCore::IconDatabase::importIconDataForIconURL): Added. (WebCore::IconDatabase::shouldStopThreadActivity): Added. WebKit/mac: * Misc/WebIconDatabase.mm: (defaultClient): Return 0 if ICONDATABASE is disabled. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveIcon): Commented out the body of the method if ICONDATABASE is disabled. (WebFrameLoaderClient::registerForIconNotification): Ditto. * WebCoreSupport/WebIconDatabaseClient.mm: Added #if ENABLE(ICONDATABASE)/#endif guard to source. * WebView/WebView.mm: (-[WebView setFrameLoadDelegate:]): Wrapped code that starts the icon database machinery in #if ENABLE(ICONDATABASE)/#endif. (-[WebView _registerForIconNotification:]): Wrapped method in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Ditto. * WebView/WebViewInternal.h: Wrapped methods in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _registerForIconNotification:]): (-[WebView _dispatchDidReceiveIconFromWebFrame:]): --- 11 files changed, 97 insertions(+), 2 deletions(-)
David Kilzer (:ddkilzer)
Comment 6 2009-07-07 17:17:59 PDT
Comment on attachment 32404 [details] Patch v3 bugzilla-tool FAIL again, probably one of my local modifications.
David Kilzer (:ddkilzer)
Comment 7 2009-07-07 17:24:19 PDT
Created attachment 32405 [details] Patch v4 <https://bugs.webkit.org/show_bug.cgi?id=27007> Reviewed by NOBODY (OOPS!). WebCore: * WebCore.xcodeproj/project.pbxproj: Added IconDatabaseNone.cpp to the project. * loader/icon/IconDatabase.cpp: Added #if ENABLE(ICONDATABASE)/#endif macro guard. * loader/icon/IconDatabase.h: Removed three public methods from #if ENABLE(ICONDATABASE)/#endif macro so that they may be stubbed out in IconDatabaseNone.cpp. * loader/icon/IconDatabaseNone.cpp: Added #if !ENABLE(ICONDATABASE)/#endif macro guard. (WebCore::IconDatabase::importIconURLForPageURL): Added. (WebCore::IconDatabase::importIconDataForIconURL): Added. (WebCore::IconDatabase::shouldStopThreadActivity): Added. WebKit/mac: * Misc/WebIconDatabase.mm: (defaultClient): Return 0 if ICONDATABASE is disabled. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::dispatchDidReceiveIcon): Commented out the body of the method if ICONDATABASE is disabled. (WebFrameLoaderClient::registerForIconNotification): Ditto. * WebCoreSupport/WebIconDatabaseClient.mm: Added #if ENABLE(ICONDATABASE)/#endif guard to source. * WebView/WebView.mm: (-[WebView setFrameLoadDelegate:]): Wrapped code that starts the icon database machinery in #if ENABLE(ICONDATABASE)/#endif. (-[WebView _registerForIconNotification:]): Wrapped method in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _dispatchDidReceiveIconFromWebFrame:]): Ditto. * WebView/WebViewInternal.h: Wrapped methods in #if ENABLE(ICONDATABASE)/#endif guard. (-[WebView _registerForIconNotification:]): (-[WebView _dispatchDidReceiveIconFromWebFrame:]): --- 11 files changed, 97 insertions(+), 2 deletions(-)
Mark Rowe (bdash)
Comment 8 2009-07-07 17:42:59 PDT
What's with posting the changelogs in the comment of the bug? Is that intentional?
David Kilzer (:ddkilzer)
Comment 9 2009-07-07 18:44:15 PDT
(In reply to comment #8) > What's with posting the changelogs in the comment of the bug? Is that > intentional? That's the current behavior of "bugzilla-tool post-commits". It is kind of annoying for large ChangeLogs, though.
David Kilzer (:ddkilzer)
Comment 10 2009-07-10 23:16:59 PDT
$ git svn dcommit Committing to http://svn.webkit.org/repository/webkit/trunk ... M WebCore/ChangeLog M WebCore/WebCore.xcodeproj/project.pbxproj M WebCore/loader/icon/IconDatabase.cpp M WebCore/loader/icon/IconDatabase.h M WebCore/loader/icon/IconDatabaseNone.cpp M WebKit/mac/ChangeLog M WebKit/mac/Misc/WebIconDatabase.mm M WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm M WebKit/mac/WebCoreSupport/WebIconDatabaseClient.mm M WebKit/mac/WebView/WebView.mm M WebKit/mac/WebView/WebViewInternal.h Committed r45750 http://trac.webkit.org/changeset/45750
Note You need to log in before you can comment on or make changes to this bug.