[Webkit-unassigned] [Bug 64126] Background leaks for two nested divs

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jul 15 11:24:23 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=64126


Simon Fraser (smfr) <simon.fraser at apple.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #100907|                            |review-
               Flag|                            |




--- Comment #2 from Simon Fraser (smfr) <simon.fraser at apple.com>  2011-07-15 11:24:23 PST ---
(From update of attachment 100907)
View in context: https://bugs.webkit.org/attachment.cgi?id=100907&action=review

> LayoutTests/transforms/2d/antialiasing-pixel-cracks.html:10
> +			There should not be a border

We try to avoid text in pixel results because of platform differences. You can make it an HTML comment.

> Source/WebCore/ChangeLog:8
> +        we need to turn antialiasing in the cases when we do not need it: when

... turn off...

> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:721
> +    if (!canEnableAntialiasing())
> +        CGContextSetShouldAntialias(platformContext(), false);

I think this is going to have unwanted side effects. You're changing a lot of behavior here.

> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:845
> +    if (!canEnableAntialiasing())
> +        CGContextSetShouldAntialias(platformContext(), false);

You should call canEnableAntialiasing() just once, and use a flag to reset it.

> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:851
> +    if (!canEnableAntialiasing())
> +        CGContextSetShouldAntialias(platformContext(), true);

These aren't going to nest correctly if you always set it back to true.

> Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp:1159
> +bool GraphicsContext::canEnableAntialiasing(void)

How is this different from !AffineTransform::isIdentityOrTranslationOrFlipped()?

> Source/WebCore/platform/graphics/cg/ImageCG.cpp:188
> +    if (!ctxt->canEnableAntialiasing())
> +        CGContextSetShouldAntialias(ctxt->platformContext(), false);

I think this is going to have unwanted side effects. You're changing a lot of behavior here.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list