WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
134168
Make offset from ancestor computation explicit by moving it to the callers.
https://bugs.webkit.org/show_bug.cgi?id=134168
Summary
Make offset from ancestor computation explicit by moving it to the callers.
zalan
Reported
2014-06-21 19:15:20 PDT
Instead of passing the offset by pointer and call compute when the offset is null.
Attachments
Patch
(32.27 KB, patch)
2014-06-21 20:44 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(32.26 KB, patch)
2014-06-21 20:50 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Patch
(32.54 KB, patch)
2014-06-22 19:36 PDT
,
zalan
no flags
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
zalan
Comment 1
2014-06-21 20:44:07 PDT
Created
attachment 233555
[details]
Patch It has source dependency on
bug 134156
, won't compile as it is.
zalan
Comment 2
2014-06-21 20:50:24 PDT
Created
attachment 233556
[details]
Patch
Simon Fraser (smfr)
Comment 3
2014-06-22 11:18:53 PDT
Comment on
attachment 233556
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=233556&action=review
> Source/WebCore/rendering/RenderLayer.cpp:3581 > + LayoutRect boundingBox = layer->boundingBox(rootLayer, layer->offsetFromAncestor(rootLayer));
I think it would be cleaner for boundingBox to always return a local box (so remove the parameter), and for the caller to offset the result.
> Source/WebCore/rendering/RenderLayer.cpp:5382 > + calculateRects(clipRectsContext, renderer().view().documentRect(), layerBounds, backgroundRect, foregroundRect, outlineRect, offsetFromAncestor(clipRectsContext.rootLayer));
Should check to see if any callers have already computed offsetFromAncestor.
zalan
Comment 4
2014-06-22 19:36:44 PDT
Created
attachment 233582
[details]
Patch
zalan
Comment 5
2014-06-22 19:36:59 PDT
Comment on
attachment 233582
[details]
Patch EWSing
WebKit Commit Bot
Comment 6
2014-06-22 21:28:43 PDT
Comment on
attachment 233582
[details]
Patch Clearing flags on attachment: 233582 Committed
r170282
: <
http://trac.webkit.org/changeset/170282
>
WebKit Commit Bot
Comment 7
2014-06-22 21:28:47 PDT
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