RESOLVED FIXED 77382
[Windows] Add API to enable inverted color drawing on a WebView
https://bugs.webkit.org/show_bug.cgi?id=77382
Summary [Windows] Add API to enable inverted color drawing on a WebView
Andy Estes
Reported 2012-01-30 16:21:55 PST
[Windows] Add API to enable inverted color drawing on a WebView
Attachments
Patch (11.56 KB, patch)
2012-01-30 16:42 PST, Andy Estes
no flags
Patch (278.44 KB, patch)
2012-02-12 17:53 PST, Andy Estes
aroben: review+
Andy Estes
Comment 1 2012-01-30 16:42:37 PST
Adam Roben (:aroben)
Comment 2 2012-01-31 06:42:00 PST
Comment on attachment 124630 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=124630&action=review Can you add pixel tests for this? We should test both the accelerated and non-accelerated cases. > Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp:280 > +void CACFLayerTreeHost::setShouldInvertColors(bool shouldInvertColors) > +{ > + UNUSED_PARAM(shouldInvertColors); > +} I think it would be clearer to put the parameter name in the header file and omit it here.
Andy Estes
Comment 3 2012-02-12 17:38:03 PST
Comment on attachment 124630 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=124630&action=review >> Source/WebCore/platform/graphics/ca/win/CACFLayerTreeHost.cpp:280 >> +} > > I think it would be clearer to put the parameter name in the header file and omit it here. I think I'll just omit it from both locations. That seems to be our style for parameter names that add no information.
Andy Estes
Comment 4 2012-02-12 17:53:35 PST
Adam Roben (:aroben)
Comment 5 2012-02-13 05:34:59 PST
Comment on attachment 126694 [details] Patch I don't think we can check in LayoutTests/platform/win/inverted-colors/non-composited-expected.png, right? It shows inverted drawing, but that won't work until a new WebKitQuartzCoreAdditions has been released.
Andy Estes
Comment 6 2012-02-13 11:10:31 PST
(In reply to comment #5) > (From update of attachment 126694 [details]) > I don't think we can check in LayoutTests/platform/win/inverted-colors/non-composited-expected.png, right? It shows inverted drawing, but that won't work until a new WebKitQuartzCoreAdditions has been released. Since this only tests the non-composited path, which has no dependency on WebKitQuartzCoreAdditions, we can check it in.
Andy Estes
Comment 7 2012-02-13 13:59:26 PST
Note You need to log in before you can comment on or make changes to this bug.