WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
76444
CSS Shaders: Add a Settings flag to enable/disable CSS Shaders at runtime
https://bugs.webkit.org/show_bug.cgi?id=76444
Summary
CSS Shaders: Add a Settings flag to enable/disable CSS Shaders at runtime
Alexandru Chiculita
Reported
2012-01-17 05:10:04 PST
See the summary. We need a new setting to disable the feature at runtime in order to enable CSS Shaders on more platforms. Right now shaders only build on Apple Mac platform.
Attachments
Patch V1
(20.53 KB, patch)
2012-01-17 07:59 PST
,
Alexandru Chiculita
zimmermann
: review+
zimmermann
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Alexandru Chiculita
Comment 1
2012-01-17 07:59:19 PST
Created
attachment 122771
[details]
Patch V1
Nikolas Zimmermann
Comment 2
2012-01-18 01:52:33 PST
Comment on
attachment 122771
[details]
Patch V1 View in context:
https://bugs.webkit.org/attachment.cgi?id=122771&action=review
Looks sane, r=me with some comments:
> Source/WebCore/css/CSSParser.cpp:6914 > + if (findDocument()) {
if (Document* document = findDocument()) { Settings* settings = document->settings()....
> Source/WebKit2/UIProcess/API/C/WKPreferencesPrivate.h:83 > // Defaults to false.
This comment is not correct, eh? Please update it to true.
Alexandru Chiculita
Comment 3
2012-01-19 23:47:39 PST
Landed in 105485:
http://trac.webkit.org/changeset/105485
Closing bug.
Adam Roben (:aroben)
Comment 4
2012-01-20 11:18:48 PST
Comment on
attachment 122771
[details]
Patch V1 View in context:
https://bugs.webkit.org/attachment.cgi?id=122771&action=review
> Source/WebKit/mac/WebView/WebPreferencesPrivate.h:192 > +#if ENABLE(CSS_SHADERS) > +- (BOOL)cssCustomFilterEnabled; > +- (void)setCSSCustomFilterEnabled:(BOOL)enabled; > +#endif
We can't expose ENABLE() settings to WebKit clients (even those using private headers). WebKit clients don't have a way of knowing what features were enabled when WebKit was compiled. I think we need to remove the #if and always implement these methods.
Simon Fraser (smfr)
Comment 5
2012-01-20 11:44:29 PST
This (or another filters patch) broke some tests, like css3/filters/custom-filter-property-computed-style.html
Alexandru Chiculita
Comment 6
2012-01-20 12:17:36 PST
(In reply to
comment #4
)
> (From update of
attachment 122771
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=122771&action=review
> > > Source/WebKit/mac/WebView/WebPreferencesPrivate.h:192 > > +#if ENABLE(CSS_SHADERS) > > +- (BOOL)cssCustomFilterEnabled; > > +- (void)setCSSCustomFilterEnabled:(BOOL)enabled; > > +#endif > > We can't expose ENABLE() settings to WebKit clients (even those using private headers). WebKit clients don't have a way of knowing what features were enabled when WebKit was compiled. I think we need to remove the #if and always implement these methods.
The methods in Settings.cpp are always compiled, so I just forgot to remove the ifdefs from all the places. Sorry about that, I will fix it tomorrow.
Simon Fraser (smfr)
Comment 7
2012-01-20 13:16:32 PST
Since this is breaking apple-internal builds, it needs to be fixed ASAP. I'll do it.
Simon Fraser (smfr)
Comment 8
2012-01-20 13:19:53 PST
Fixed in
http://trac.webkit.org/changeset/105540
.
Alexandru Chiculita
Comment 9
2012-01-20 13:28:27 PST
(In reply to
comment #8
)
> Fixed in
http://trac.webkit.org/changeset/105540
.
Thanks!
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