Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(120)

Issue 7911043: NOT FOR REVIEW - preliminary bg attachment fixed work

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 9 months ago by vollick
Modified:
12 years, 9 months ago
Reviewers:
danakj, hartmanng
Base URL:
git://git.webkit.org/WebKit.git@master
Visibility:
Public.

Description

NOT FOR REVIEW - preliminary bg attachment fixed work BUG=

Patch Set 1 #

Patch Set 2 : . #

Total comments: 4

Patch Set 3 : . #

Total comments: 8

Patch Set 4 : . #

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -21 lines) Patch
A + LayoutTests/platform/chromium/compositing/fixed-body-background-positioned.html View 1 2 chunks +6 lines, -3 lines 0 comments Download
A LayoutTests/platform/chromium/compositing/fixed-body-background-positioned-expected.png View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + LayoutTests/platform/chromium/compositing/fixed-body-background-positioned-expected.txt View 1 1 chunk +0 lines, -7 lines 0 comments Download
M Source/WebCore/page/Settings.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/WebCore/page/Settings.in View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/WebCore/platform/graphics/GraphicsLayer.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/WebCore/platform/graphics/chromium/GraphicsLayerChromium.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/WebCore/rendering/RenderLayerBacking.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/WebCore/rendering/RenderLayerBacking.cpp View 1 2 3 4 7 chunks +12 lines, -8 lines 0 comments Download
M Source/WebCore/rendering/RenderLayerCompositor.cpp View 1 2 3 4 3 chunks +25 lines, -2 lines 0 comments Download
M Source/WebKit/chromium/public/WebSettings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebSettingsImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/WebKit/chromium/src/WebSettingsImpl.cpp View 1 1 chunk +6 lines, -2 lines 0 comments Download
M Tools/DumpRenderTree/chromium/DumpRenderTree.cpp View 1 4 chunks +5 lines, -0 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestRunner/public/WebPreferences.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestRunner/src/WebPreferences.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestShell.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M Tools/DumpRenderTree/chromium/TestShell.cpp View 1 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5
hartmanng
Is the png really needed? Just asking because I make these by accident and don't ...
12 years, 9 months ago (2013-03-20 20:54:27 UTC) #1
vollick
Yep, the png was on purpose. https://codereview.appspot.com/7911043/diff/2001/Source/WebCore/rendering/RenderLayerBacking.cpp File Source/WebCore/rendering/RenderLayerBacking.cpp (right): https://codereview.appspot.com/7911043/diff/2001/Source/WebCore/rendering/RenderLayerBacking.cpp#newcode871 Source/WebCore/rendering/RenderLayerBacking.cpp:871: #if PLATFORM(CHROMIUM) On ...
12 years, 9 months ago (2013-03-20 21:08:28 UTC) #2
hartmanng
lgtm
12 years, 9 months ago (2013-03-20 21:09:07 UTC) #3
danakj
yum, plumbing. i'm a noob so i have questions. https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/RenderLayerBacking.cpp File Source/WebCore/rendering/RenderLayerBacking.cpp (right): https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/RenderLayerBacking.cpp#newcode871 Source/WebCore/rendering/RenderLayerBacking.cpp:871: ...
12 years, 9 months ago (2013-03-20 21:54:54 UTC) #4
vollick
12 years, 9 months ago (2013-03-21 00:43:51 UTC) #5
Thanks for the review!

https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/Re...
File Source/WebCore/rendering/RenderLayerBacking.cpp (right):

https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/Re...
Source/WebCore/rendering/RenderLayerBacking.cpp:871: #if PLATFORM(CHROMIUM)
On 2013/03/20 21:54:54, danakj wrote:
> how come mac doesn't need this?

Good question. Mac does its registration in
RenderLayerCompositor::fixedRootBackgroundLayerChanged (which gets called from
the RenderLayerBacking when the background layer is created). That makes the
assumption that the background layer is only ever going to be used for fixed
root backgrounds (currently true). I've moved this code to the same spot for
symmetry.

https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/Re...
Source/WebCore/rendering/RenderLayerBacking.cpp:882:
frameView->addViewportConstrainedObject(renderer());
On 2013/03/20 21:54:54, danakj wrote:
> is it ok to add the same renderer() more than once? would that happen?
Yep, it's ok. It's a set.

https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/Re...
File Source/WebCore/rendering/RenderLayerCompositor.cpp (right):

https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/Re...
Source/WebCore/rendering/RenderLayerCompositor.cpp:2290: return
renderViewBacking &&
On 2013/03/20 21:54:54, danakj wrote:
> Can you explain why false if !renderViewBacking, other than safari would be?
You have to have a backing to have a composited fixed root bg layer -- it's what
manages its creation, insertion into the mini hierarchy, positioning, etc.

https://codereview.appspot.com/7911043/diff/15001/Source/WebCore/rendering/Re...
Source/WebCore/rendering/RenderLayerCompositor.cpp:2291:
renderView->document()->settings() &&
On 2013/03/20 21:54:54, danakj wrote:
> m_renderView?

This had me confused. I wondered "how could this ever compile? I must have the
#PLATFORM thing wrong." But no, it just didn't compile. Apparently I.. I
uploaded without even compiling. So much shame.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b