Bug 106961

Summary: Add the ability for a RenderLayerBacking to have a layer that renders backgrounds.
Product: WebKit Reporter: Simon Fraser (smfr) <simon.fraser>
Component: New BugsAssignee: Simon Fraser (smfr) <simon.fraser>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, dino, eric, ojan.autocc, simon.fraser, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch dino: review+

Simon Fraser (smfr)
Reported 2013-01-15 17:02:52 PST
Add the ability for a RenderLayerBacking to have a layer that renders backgrounds.
Attachments
Patch (17.80 KB, patch)
2013-01-15 17:40 PST, Simon Fraser (smfr)
dino: review+
Simon Fraser (smfr)
Comment 1 2013-01-15 17:40:23 PST
Dean Jackson
Comment 2 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?
Simon Fraser (smfr)
Comment 3 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!
Simon Fraser (smfr)
Comment 4 2013-01-15 18:03:24 PST
Note You need to log in before you can comment on or make changes to this bug.