WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75730
Repaint all graphics layers when their renderer offset changes
https://bugs.webkit.org/show_bug.cgi?id=75730
Summary
Repaint all graphics layers when their renderer offset changes
Adrienne Walker
Reported
2012-01-06 12:35:15 PST
Repaint all graphics layers when their renderer offset changes
Attachments
Patch
(3.68 KB, patch)
2012-01-06 13:04 PST
,
Adrienne Walker
no flags
Details
Formatted Diff
Diff
Test case, move offset handling
(9.32 KB, patch)
2012-01-11 17:35 PST
,
Adrienne Walker
no flags
Details
Formatted Diff
Diff
Add include for EFL, no review needed
(9.35 KB, patch)
2012-01-11 18:44 PST
,
Adrienne Walker
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Adrienne Walker
Comment 1
2012-01-06 13:04:24 PST
Created
attachment 121478
[details]
Patch
Adrienne Walker
Comment 2
2012-01-06 13:08:20 PST
This bug is intended to fix
http://crbug.com/107769
. As the map scrolls left to right, different elements end up going into the compositing layer, changing its bounds and its offset from the renderer. It looks like the layer in question is the foreground layer, which doesn't have the same logic as the main graphics layer to invalidate itself when the offset changes. I'm working on reducing a test case for this.
James Robinson
Comment 3
2012-01-06 13:38:15 PST
Comment on
attachment 121478
[details]
Patch Looks reasonable, but I think we'll need some tests
Simon Fraser (smfr)
Comment 4
2012-01-06 13:43:46 PST
Comment on
attachment 121478
[details]
Patch I think I'd prefer that the responsibility for calling setNeedsDisplay remains with the GraphicsLayer client, and is not pushed down to GraphicsLayer. My justification is that GraphicsLayer doesn't actually use m_offsetFromRenderer in its painting code at all (but perhaps it should?)
Adrienne Walker
Comment 5
2012-01-06 13:52:45 PST
(In reply to
comment #4
)
> (From update of
attachment 121478
[details]
) > I think I'd prefer that the responsibility for calling setNeedsDisplay remains with the GraphicsLayer client, and is not pushed down to GraphicsLayer. My justification is that GraphicsLayer doesn't actually use m_offsetFromRenderer in its painting code at all (but perhaps it should?)
I'm happy to change this. However, I'm curious; is there a use case where a GraphicsLayerClient would not want to call setNeedsDisplay when the offset from the renderer changed?
Simon Fraser (smfr)
Comment 6
2012-01-06 13:55:49 PST
(In reply to
comment #5
)
> (In reply to
comment #4
) > > (From update of
attachment 121478
[details]
[details]) > > I think I'd prefer that the responsibility for calling setNeedsDisplay remains with the GraphicsLayer client, and is not pushed down to GraphicsLayer. My justification is that GraphicsLayer doesn't actually use m_offsetFromRenderer in its painting code at all (but perhaps it should?) > > I'm happy to change this. However, I'm curious; is there a use case where a GraphicsLayerClient would not want to call setNeedsDisplay when the offset from the renderer changed?
No, I think that's a sensible thing to do (at least for layers where drawsContent() == true). The first thing that RenderLayerBacking::paintContents() does is LayoutSize offset = graphicsLayer->offsetFromRenderer(); context.translate(-offset); so that could move into the caller, in which case it makes sense for GraphicsLayer to invalidate when offsetFromRenderer changes.
Adrienne Walker
Comment 7
2012-01-11 17:35:48 PST
Created
attachment 122143
[details]
Test case, move offset handling
Simon Fraser (smfr)
Comment 8
2012-01-11 17:40:54 PST
Comment on
attachment 122143
[details]
Test case, move offset handling Nice!
Gyuyoung Kim
Comment 9
2012-01-11 18:24:47 PST
Comment on
attachment 122143
[details]
Test case, move offset handling
Attachment 122143
[details]
did not pass efl-ews (efl): Output:
http://queues.webkit.org/results/11118219
Adrienne Walker
Comment 10
2012-01-11 18:44:27 PST
Created
attachment 122150
[details]
Add include for EFL, no review needed
Adrienne Walker
Comment 11
2012-01-11 19:10:13 PST
(In reply to
comment #8
)
> (From update of
attachment 122143
[details]
) > Nice!
Thanks for the super fast review. :)
WebKit Review Bot
Comment 12
2012-01-11 19:47:04 PST
Comment on
attachment 122150
[details]
Add include for EFL, no review needed Clearing flags on attachment: 122150 Committed
r104782
: <
http://trac.webkit.org/changeset/104782
>
WebKit Review Bot
Comment 13
2012-01-11 19:47:09 PST
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug