Bug 106961 - Add the ability for a RenderLayerBacking to have a layer that renders backgrounds.
Summary: Add the ability for a RenderLayerBacking to have a layer that renders backgro...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Simon Fraser (smfr)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-15 17:02 PST by Simon Fraser (smfr)
Modified: 2013-01-15 18:03 PST (History)
6 users (show)

See Also:


Attachments
Patch (17.80 KB, patch)
2013-01-15 17:40 PST, Simon Fraser (smfr)
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2013-01-15 17:02:52 PST
Add the ability for a RenderLayerBacking to have a layer that renders backgrounds.
Comment 1 Simon Fraser (smfr) 2013-01-15 17:40:23 PST
Created attachment 182885 [details]
Patch
Comment 2 Dean Jackson 2013-01-15 17:58:02 PST
Comment on attachment 182885 [details]
Patch

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

> Source/WebCore/ChangeLog:8
> +        In some cases we need a compositing layer to renders its background into

missing words near "to renders"

> Source/WebCore/rendering/RenderLayerBacking.cpp:759
> +        FloatSize backgroundSize = contentsSize;
> +        IntSize backgroundOffset = m_graphicsLayer->offsetFromRenderer();
> +        m_backgroundLayer->setPosition(FloatPoint());
> +        if (backgroundSize != m_backgroundLayer->size()) {
> +            m_backgroundLayer->setSize(backgroundSize);

Why do you need the local variable backgroundSize?
Comment 3 Simon Fraser (smfr) 2013-01-15 18:00:27 PST
(In reply to comment #2)
> > Source/WebCore/rendering/RenderLayerBacking.cpp:759
> > +        FloatSize backgroundSize = contentsSize;
> > +        IntSize backgroundOffset = m_graphicsLayer->offsetFromRenderer();
> > +        m_backgroundLayer->setPosition(FloatPoint());
> > +        if (backgroundSize != m_backgroundLayer->size()) {
> > +            m_backgroundLayer->setSize(backgroundSize);
> 
> Why do you need the local variable backgroundSize?

This will be used later!
Comment 4 Simon Fraser (smfr) 2013-01-15 18:03:24 PST
http://trac.webkit.org/changeset/139815