Bug 18556 - Rename Frame::renderer() to contentRenderer()
Summary: Rename Frame::renderer() to contentRenderer()
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Eric Seidel (no email)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-04-17 14:29 PDT by Eric Seidel (no email)
Modified: 2008-04-18 15:03 PDT (History)
2 users (show)

See Also:


Attachments
patch (24.08 KB, patch)
2008-04-17 14:46 PDT, Eric Seidel (no email)
bdakin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Seidel (no email) 2008-04-17 14:29:19 PDT
Rename Frame::renderer() to contentRenderer()

There was a fixme in the code.  I fixed it, it was bothering me (and causing some minor confusion).
Comment 1 Eric Seidel (no email) 2008-04-17 14:46:08 PDT
Created attachment 20638 [details]
patch

I'd like hyatt or darin to look at this.

This is not just a rename.  I also simplified a few cases where the code did things like this:
m_frame->document()->renderer()->view() instead of m_frame->view() or other such nonsense.
Comment 2 Beth Dakin 2008-04-18 10:41:12 PDT
Comment on attachment 20638 [details]
patch

r=me!
Comment 3 Darin Adler 2008-04-18 11:16:16 PDT
Comment on attachment 20638 [details]
patch

+    // FIXME: is root always a RenderView? if so, static_cast at initialization
+    ASSERT(root->isRenderView());

This assert is wrong and the FIXME should be removed. The root is always a RenderView when subtree is false, but never is when subtree is true.

Everything else looks fine.
Comment 4 Eric Seidel (no email) 2008-04-18 11:53:42 PDT
(In reply to comment #3)
> (From update of attachment 20638 [details] [edit])
> +    // FIXME: is root always a RenderView? if so, static_cast at
> initialization
> +    ASSERT(root->isRenderView());
> 
> This assert is wrong and the FIXME should be removed. The root is always a
> RenderView when subtree is false, but never is when subtree is true.
> 
> Everything else looks fine.

Interesting.  I removed the ASSERT and changed the if as part of:
https://bugs.webkit.org/show_bug.cgi?id=18585

(when I found the ASSERT was being hit by the layout tests).

I really should squash these two bugs into one, and the patches likewise.
Comment 5 Eric Seidel (no email) 2008-04-18 15:03:07 PDT
Committing to http://svn.webkit.org/repository/webkit/trunk ...
	M	WebCore/ChangeLog
	M	WebCore/WebCore.base.exp
	M	WebCore/editing/Editor.cpp
	M	WebCore/loader/FrameLoader.cpp
	M	WebCore/page/DragController.cpp
	M	WebCore/page/EventHandler.cpp
	M	WebCore/page/Frame.cpp
	M	WebCore/page/Frame.h
	M	WebCore/page/FrameView.cpp
	M	WebCore/rendering/RenderTreeAsText.cpp
	M	WebCore/svg/graphics/SVGImage.cpp
	M	WebKit/mac/ChangeLog
	M	WebKit/mac/Misc/WebCoreStatistics.mm
	M	WebKit/mac/WebView/WebRenderNode.mm
Committed r32231