Bug 93423 - [chromium] Only use public Platform API in NonCompositedContentHost
Summary: [chromium] Only use public Platform API in NonCompositedContentHost
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: James Robinson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-07 18:43 PDT by James Robinson
Modified: 2012-08-08 14:17 PDT (History)
9 users (show)

See Also:


Attachments
Patch (17.15 KB, patch)
2012-08-07 19:10 PDT, James Robinson
enne: review+
enne: commit-queue-
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description James Robinson 2012-08-07 18:43:34 PDT
[chromium] Only use public Platform API in NonCompositedContentHost
Comment 1 James Robinson 2012-08-07 19:10:32 PDT
Created attachment 157084 [details]
Patch
Comment 2 WebKit Review Bot 2012-08-07 19:12:48 PDT
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Comment 3 Adrienne Walker 2012-08-08 11:08:24 PDT
Comment on attachment 157084 [details]
Patch

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

R=me, with one comment nit.

> Source/WebCore/ChangeLog:10
> +        This renames the "NonCompositedContentHost" flag to "useLCDText", which is the primary purpose of the flag. We
> +        also use this flag to control whether we have border texels or not on the "root" layer, but I can't think of a
> +        clean name that encapsulates both behaviors.

That's a way better name.  If you know you're using LCD text then you also know that the layer can't have a transform that's anything other than an integer translation, so therefore doesn't need border texels.  Therefore, I'd argue that it encapsulates both.

> Source/Platform/chromium/public/WebContentLayer.h:70
> +    // Set to draw a system-defined checkerboard if the compositor would otherwise draw a tile in this layer
> +    // and the actual contents are unavailable. If false, the compositor will just draw nothing for these tiles.
> +    // Defaults to false.

If false, I think we draw the background color of that layer?
Comment 4 James Robinson 2012-08-08 11:15:16 PDT
(In reply to comment #3)
> 
> > Source/Platform/chromium/public/WebContentLayer.h:70
> > +    // Set to draw a system-defined checkerboard if the compositor would otherwise draw a tile in this layer
> > +    // and the actual contents are unavailable. If false, the compositor will just draw nothing for these tiles.
> > +    // Defaults to false.
> 
> If false, I think we draw the background color of that layer?

Ah yes, I was mistaken.
Comment 5 James Robinson 2012-08-08 14:17:56 PDT
Committed r125088: <http://trac.webkit.org/changeset/125088>