RESOLVED FIXED 65777
Add testing for --force-compositing-mode to windows.internal
https://bugs.webkit.org/show_bug.cgi?id=65777
Summary Add testing for --force-compositing-mode to windows.internal
Adrienne Walker
Reported 2011-08-05 10:42:38 PDT
There's currently no way to test the force compositing mode flag in DRT. This should be fixed.
Attachments
Patch (8.60 KB, patch)
2011-08-05 16:17 PDT, Adrienne Walker
no flags
Patch (9.07 KB, patch)
2011-08-08 12:53 PDT, Adrienne Walker
no flags
Patch (10.22 KB, patch)
2011-08-08 13:33 PDT, Adrienne Walker
no flags
Patch (12.38 KB, patch)
2011-08-08 15:22 PDT, Adrienne Walker
abarth: review+
Adrienne Walker
Comment 1 2011-08-05 16:17:41 PDT
Gustavo Noronha (kov)
Comment 2 2011-08-05 18:01:56 PDT
James Robinson
Comment 3 2011-08-05 18:27:38 PDT
I believe when touching window.internals you have to muck about with a whole bunch of export files. Is that right, Dimitri?
Dimitri Glazkov (Google)
Comment 4 2011-08-05 18:40:49 PDT
(In reply to comment #3) > I believe when touching window.internals you have to muck about with a whole bunch of export files. Is that right, Dimitri? Yes indeedy. That's what those busted EWS bubbles say.
Adam Barth
Comment 5 2011-08-05 18:49:11 PDT
Comment on attachment 103130 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=103130&action=review > Source/WebCore/testing/Internals.cpp:195 > +void Internals::setForceCompositingMode(Document* document, bool enabled, ExceptionCode& ec) > +{ > + if (!document) { > + ec = INVALID_ACCESS_ERR; > + return; > + } > + > + Settings* settings = document->settings(); > + if (!settings) { > + ec = INVALID_ACCESS_ERR; > + return; > + } > + settings->setForceCompositingMode(enabled); > +} This looks like a bunch of boilerplate. Should we make a macro so do this work? I guess it's the first one, so maybe we should wait until we have more than one. :)
WebKit Review Bot
Comment 6 2011-08-05 19:22:46 PDT
Hajime Morrita
Comment 7 2011-08-07 19:34:56 PDT
(In reply to comment #5) > (From update of attachment 103130 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=103130&action=review > > > Source/WebCore/testing/Internals.cpp:195 > > +void Internals::setForceCompositingMode(Document* document, bool enabled, ExceptionCode& ec) > > +{ > > + if (!document) { > > + ec = INVALID_ACCESS_ERR; > > + return; > > + } > > + > > + Settings* settings = document->settings(); > > + if (!settings) { > > + ec = INVALID_ACCESS_ERR; > > + return; > > + } > > + settings->setForceCompositingMode(enabled); > > +} > > This looks like a bunch of boilerplate. Should we make a macro so do this work? I guess it's the first one, so maybe we should wait until we have more than one. :) It would be cool if WebKitIDL supported [ConvertNullToException=INVALID_ACCESS_ERR].
Adrienne Walker
Comment 8 2011-08-08 12:53:44 PDT
Gustavo Noronha (kov)
Comment 9 2011-08-08 13:12:11 PDT
Adrienne Walker
Comment 10 2011-08-08 13:33:32 PDT
Adrienne Walker
Comment 11 2011-08-08 15:22:48 PDT
Adrienne Walker
Comment 12 2011-08-08 19:08:05 PDT
(In reply to comment #11) > Created an attachment (id=103305) [details] > Patch Finally. All green. :) Does anybody have any feedback other than reducing boilerplate?
Adrienne Walker
Comment 13 2011-08-09 12:27:35 PDT
Note You need to log in before you can comment on or make changes to this bug.