Bug 23426

Summary: Frame Refactor: Move isFrameSet to Document
Product: WebKit Reporter: Holger Freyther <zecke>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Mac   
OS: OS X 10.5   
Attachments:
Description Flags
Carry out the move
none
Make isFrameSet virtual sam: review+

Description Holger Freyther 2009-01-20 03:52:08 PST
Move isFrameSet to Document as commented in Frame.h.
Comment 1 Holger Freyther 2009-01-20 04:35:40 PST
Created attachment 26856 [details]
Carry out the move

I think the added null check (if correct) looks ugly and it would be a case for leaving isFrameSet in Frame. Test cases pass on the mac.
Comment 2 Darin Adler 2009-01-23 14:18:32 PST
Comment on attachment 26856 [details]
Carry out the move

> +bool Document::isFrameSet() const
> +{
> +    if (!isHTMLDocument())
> +        return false;

This should be a virtual function, then, and be overridden in HTMLDocument. That wasn't possible before when this was a function on Frame.

I'll say r=me, but it would be better to do it that way
Comment 3 Holger Freyther 2009-01-30 19:23:23 PST
Created attachment 27209 [details]
Make isFrameSet virtual

Take Darin's comment into account and make isFrameSet virtual. Reimplement it in HTMLDocument (this patch is not tested).
Comment 4 Holger Freyther 2009-01-30 19:52:20 PST
Comment on attachment 26856 [details]
Carry out the move

Landed in r40443, leaving this bug open due the new patch.
Comment 5 Sam Weinig 2009-02-03 13:06:45 PST
Comment on attachment 27209 [details]
Make isFrameSet virtual

r=me

> +bool HTMLDocument::isFrameSet() const
> +{
> +    HTMLElement *bodyElement = body();
* should be on the other side.
Comment 6 Holger Freyther 2009-02-04 05:40:46 PST
Closing it. The style fix was included.