WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
164479
Fix various --minimal build issue
https://bugs.webkit.org/show_bug.cgi?id=164479
Summary
Fix various --minimal build issue
Csaba Osztrogonác
Reported
2016-11-07 06:12:44 PST
1.) Source/WebCore/dom/Node.cpp should include ExceptionCode.h HIERARCHY_REQUEST_ERR, NOT_FOUND_ERR, NOT_SUPPORTED_ERR, ... are defined in ExceptionCode.h In normal WebKit build ExceptionCode.h is included indirectly, but --minimal build fails. 2.) Source/WebCore/page/Page.cpp shouldn't call the undefined PlatformMediaSessionManager::updateNowPlayingInfoIfNecessary() It is defined on Mac always and on !Mac inside ENABLE(VIDEO) || ENABLE(WEB_AUDIO) guards. 3.) emptyString() can't be converted to ExceptionOr<String> in Source/WebCore/testing/Internals.cpp ../../Source/WebCore/testing/Internals.cpp: In member function 'WebCore::ExceptionOr<WTF::String> WebCore::Internals::captionsStyleSheetOverride()': ../../Source/WebCore/testing/Internals.cpp:2511:23: error: could not convert 'WTF::emptyString()' from 'const WTF::String' to 'WebCore::ExceptionOr<WTF::String>'
Attachments
Patch
(2.80 KB, patch)
2016-11-07 06:13 PST
,
Csaba Osztrogonác
darin
: review+
Details
Formatted Diff
Diff
patch for landing
(3.44 KB, patch)
2016-11-14 06:21 PST
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
patch for landing
(3.23 KB, patch)
2016-11-14 06:30 PST
,
Csaba Osztrogonác
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Csaba Osztrogonác
Comment 1
2016-11-07 06:13:45 PST
Created
attachment 294058
[details]
Patch
Darin Adler
Comment 2
2016-11-07 23:12:39 PST
Comment on
attachment 294058
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=294058&action=review
I am OK with these build fixes, but the ones in Page.cpp could be done a little better.
> Source/WebCore/page/Page.cpp:1450 > +#if PLATFORM(MAC) || ENABLE(VIDEO) || ENABLE(WEB_AUDIO)
If we keep this conditional, there is no reason for it to mention #if PLATFORM(MAC). Just ENABLE(VIDEO) || ENABLE(WEB_AUDIO) should do.
> Source/WebCore/page/Page.cpp:1473 > +#if PLATFORM(MAC) || ENABLE(VIDEO) || ENABLE(WEB_AUDIO) > if (wasVisibleAndActive != isVisibleAndActive()) > PlatformMediaSessionManager::updateNowPlayingInfoIfNecessary(); > +#endif
Ditto. But maybe this conditional is not needed. Instead, perhaps PlatformMediaSessionManager::updateNowPlayingInfoIfNecessary should be defined even when ENABLE(VIDEO) || ENABLE(WEB_AUDIO) is false, in PlatformMediaSessionManager.cpp. Since the header is not conditional, it seems to me that the function body shouldn’t be either. It‘s not like we need to optimize this case to avoid the function call.
> Source/WebCore/testing/Internals.cpp:2511 > - return emptyString(); > + return String();
If we want to return an empty string and not null, then it would be better to return: return String { emptyString() }; But I guess it’s OK your way.
Csaba Osztrogonác
Comment 3
2016-11-14 06:21:09 PST
Created
attachment 294699
[details]
patch for landing
Csaba Osztrogonác
Comment 4
2016-11-14 06:30:23 PST
Created
attachment 294701
[details]
patch for landing
WebKit Commit Bot
Comment 5
2016-11-14 07:42:52 PST
Comment on
attachment 294701
[details]
patch for landing Clearing flags on attachment: 294701 Committed
r208682
: <
http://trac.webkit.org/changeset/208682
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug