WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
101484
Clean up confused use of Document::renderer and renderView
https://bugs.webkit.org/show_bug.cgi?id=101484
Summary
Clean up confused use of Document::renderer and renderView
Elliott Sprehn
Reported
2012-11-07 10:02:20 PST
Clean up confused use of Document::renderer and renderView
Attachments
Patch
(10.78 KB, patch)
2012-11-07 10:14 PST
,
Elliott Sprehn
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Elliott Sprehn
Comment 1
2012-11-07 10:14:09 PST
Created
attachment 172828
[details]
Patch
Ojan Vafai
Comment 2
2012-11-07 10:42:40 PST
Comment on
attachment 172828
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=172828&action=review
> Source/WebCore/dom/Element.cpp:652 > + return document()->view()->contentsToScreen(renderer()->absoluteBoundingBoxRectIgnoringTransforms());
Don't you still need to grab the frameView()? I'm confused how this compiled.
Elliott Sprehn
Comment 3
2012-11-07 10:50:05 PST
Comment on
attachment 172828
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=172828&action=review
>> Source/WebCore/dom/Element.cpp:652 >> + return document()->view()->contentsToScreen(renderer()->absoluteBoundingBoxRectIgnoringTransforms()); > > Don't you still need to grab the frameView()? I'm confused how this compiled.
document()->view() is the FrameView! :) document()->renderView() is the RenderView. Alas we have so many views. This code was crazy before because it expanded to: renderer()->m_node->document()->renderView()->frameView() so we went out into the render tree only to come back to ourself through m_node and then to the document and back into the render tree and then finally to the frame view... it was the rube goldberg of methods.
Ojan Vafai
Comment 4
2012-11-07 10:55:46 PST
Comment on
attachment 172828
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=172828&action=review
>>> Source/WebCore/dom/Element.cpp:652 >>> + return document()->view()->contentsToScreen(renderer()->absoluteBoundingBoxRectIgnoringTransforms()); >> >> Don't you still need to grab the frameView()? I'm confused how this compiled. > > document()->view() is the FrameView! :) document()->renderView() is the RenderView. Alas we have so many views. > > This code was crazy before because it expanded to: > > renderer()->m_node->document()->renderView()->frameView() so we went out into the render tree only to come back to ourself through m_node and then to the document and back into the render tree and then finally to the frame view... it was the rube goldberg of methods.
Oh right. I see. Lol.
WebKit Review Bot
Comment 5
2012-11-07 15:37:40 PST
Comment on
attachment 172828
[details]
Patch Clearing flags on attachment: 172828 Committed
r133813
: <
http://trac.webkit.org/changeset/133813
>
WebKit Review Bot
Comment 6
2012-11-07 15:37:44 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