Bug 57560 - WKCACFViewLayerTreeHost needs to tell WKCACFView where to render
Summary: WKCACFViewLayerTreeHost needs to tell WKCACFView where to render
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: Adam Roben (:aroben)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-31 10:20 PDT by Adam Roben (:aroben)
Modified: 2011-03-31 13:09 PDT (History)
3 users (show)

See Also:


Attachments
Patch (2.53 KB, patch)
2011-03-31 10:21 PDT, Adam Roben (:aroben)
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Adam Roben (:aroben) 2011-03-31 10:20:51 PDT
WKCACFViewLayerTreeHost needs to tell WKCACFView where to render
Comment 1 Adam Roben (:aroben) 2011-03-31 10:21:27 PDT
Created attachment 87758 [details]
Patch
Comment 2 WebKit Review Bot 2011-03-31 10:24:08 PDT
Attachment 87758 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebCore/ChangeLog:1:  ChangeLog entry has no bug number  [changelog/bugnumber] [5]
Total errors found: 1 in 2 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Darin Adler 2011-03-31 10:36:01 PDT
Comment on attachment 87758 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=87758&action=review

> Source/WebCore/ChangeLog:7
> +        Fixes <http://webkit.org/b/57560> WKCACFViewLayerTreeHost needs to tell WKCACFView where to

We need to teach the style checker about this alternate format for bug URLs.

> Source/WebCore/platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:47
> +    kWKCACFViewDrawingDestinationWindow = 0,
> +    kWKCACFViewDrawingDestinationImage = 1,

Do we really need to set these values explicitly.
Comment 4 Adam Roben (:aroben) 2011-03-31 12:56:01 PDT
Comment on attachment 87758 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=87758&action=review

>> Source/WebCore/ChangeLog:7
>> +        Fixes <http://webkit.org/b/57560> WKCACFViewLayerTreeHost needs to tell WKCACFView where to
> 
> We need to teach the style checker about this alternate format for bug URLs.

I think the style checker recently got a lot more strict about how the URL appears in the ChangeLog. I think it knows about the shorter URL form, but doesn't accept URLs that are not on their own line.

>> Source/WebCore/platform/graphics/ca/win/WKCACFViewLayerTreeHost.cpp:47
>> +    kWKCACFViewDrawingDestinationImage = 1,
> 
> Do we really need to set these values explicitly.

It seemed best to match the API header itself, which also sets those values. But I think we can get rid of the " = 1", which would leave us with just "= 0" on the first item. That would match how CF defines its enums.
Comment 5 Adam Roben (:aroben) 2011-03-31 13:09:18 PDT
Committed r82608: <http://trac.webkit.org/changeset/82608>