RESOLVED FIXED 177766
[Settings] Convert more settings to be generated
https://bugs.webkit.org/show_bug.cgi?id=177766
Summary [Settings] Convert more settings to be generated
Sam Weinig
Reported 2017-10-02 12:55:31 PDT
[Settings] Convert more settings to be generated
Attachments
Patch (195.52 KB, patch)
2017-10-02 13:10 PDT, Sam Weinig
no flags
Patch (195.45 KB, patch)
2017-10-02 20:44 PDT, Sam Weinig
no flags
Patch (29.96 KB, patch)
2017-10-18 14:16 PDT, Sam Weinig
no flags
Patch (29.98 KB, patch)
2017-10-18 14:43 PDT, Sam Weinig
no flags
Patch (29.95 KB, patch)
2017-10-18 18:11 PDT, Sam Weinig
no flags
Patch (29.97 KB, patch)
2017-10-18 18:18 PDT, Sam Weinig
no flags
Sam Weinig
Comment 1 2017-10-02 13:10:34 PDT
Sam Weinig
Comment 2 2017-10-02 20:44:47 PDT
Fujii Hironori
Comment 3 2017-10-03 01:32:42 PDT
GTK port EWS also failed even though it is green. I tested with GTK port and reproduced the same error. By removing the following outdated file, it succeeds to build: WebKitBuild/Release/DerivedSources/ForwardingHeaders/WebCore/Settings.h
Sam Weinig
Comment 4 2017-10-03 07:00:34 PDT
(In reply to Fujii Hironori from comment #3) > GTK port EWS also failed even though it is green. > I tested with GTK port and reproduced the same error. > > By removing the following outdated file, it succeeds to build: > > WebKitBuild/Release/DerivedSources/ForwardingHeaders/WebCore/Settings.h Any idea how to fix this? I'm not sure how to make the new generated Settings.h available as a forwarding header.
Fujii Hironori
Comment 5 2017-10-03 19:45:50 PDT
Generally speaking, it's impossible to remove old generating files. For example, Foo.idl generated Foo.cpp, and Bar.cpp generated Bar.o. Then, the source files Foo.idl and Bar.cpp are removed. The old generated files Foo.cpp and Bar.o exist in the build directory. It's impossible to remove these generated files because the new build script has no information about the files. Old generated file is WebKitBuild/Release/DerivedSources/ForwardingHeaders/WebCore/Settings.h. New generated file is WebKitBuild/Release/DerivedSources/WebCore/Settings.h -IDerivedSources/ForwardingHeaders is given before -IDerivedSources. Then, #include <WebCore/Settings.h> refers old one. One solution is reordering the include directories. But, I don't think this is a good idea. Becuase opposite problems can happen, and this is only for the incremental build failure. Another solution is using a different name, for example SettingsGenerated.h. And, Preserve Source/WebCore/page/Settings.h with just two following lines: > #pragma once > #include "SettingsGenerated.h"
Sam Weinig
Comment 6 2017-10-18 14:16:06 PDT Comment hidden (obsolete)
Sam Weinig
Comment 7 2017-10-18 14:43:41 PDT Comment hidden (obsolete)
Sam Weinig
Comment 8 2017-10-18 18:11:06 PDT Comment hidden (obsolete)
Sam Weinig
Comment 9 2017-10-18 18:18:03 PDT
Dean Jackson
Comment 10 2017-10-18 20:41:25 PDT
Comment on attachment 324191 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=324191&action=review > Source/WebCore/page/Settings.in:328 > +loadsImagesAutomatically initial=false, onChange=imagesEnabledChanged > +imagesEnabled initial=true, getter=areImagesEnabled, onChange=imagesEnabledChanged Should these have the same onChange? Answer: yes, even though it looks like a typo. > Source/WebCore/page/SettingsBase.cpp:478 > > + > + Lots of spaces
WebKit Commit Bot
Comment 11 2017-10-18 21:08:42 PDT
Comment on attachment 324191 [details] Patch Clearing flags on attachment: 324191 Committed r223653: <https://trac.webkit.org/changeset/223653>
WebKit Commit Bot
Comment 12 2017-10-18 21:08:44 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 13 2017-10-18 21:09:26 PDT
Ryan Haddad
Comment 14 2017-10-18 21:36:55 PDT
This change broke the Windows build: C:\cygwin\home\buildbot\WebKit\Source\WebCore\page\SettingsBase.cpp(562): error C2039: 'setResourceUsageOverlayVisible': is not a member of 'WebCore::Page' [C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\Source\WebCore\WebCore.vcxproj]
Sam Weinig
Comment 15 2017-10-18 21:40:20 PDT
(In reply to Ryan Haddad from comment #14) > This change broke the Windows build: > C:\cygwin\home\buildbot\WebKit\Source\WebCore\page\SettingsBase.cpp(562): > error C2039: 'setResourceUsageOverlayVisible': is not a member of > 'WebCore::Page' > [C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\Source\WebCore\WebCore. > vcxproj] Working on a fix.
Sam Weinig
Comment 16 2017-10-18 21:42:39 PDT
Build fix in r223665.
Note You need to log in before you can comment on or make changes to this bug.