Bug 23426 - Frame Refactor: Move isFrameSet to Document
Summary: Frame Refactor: Move isFrameSet to Document
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-20 03:52 PST by Holger Freyther
Modified: 2009-02-04 05:40 PST (History)
0 users

See Also:


Attachments
Carry out the move (7.26 KB, patch)
2009-01-20 04:35 PST, Holger Freyther
no flags Details | Formatted Diff | Diff
Make isFrameSet virtual (2.64 KB, patch)
2009-01-30 19:23 PST, Holger Freyther
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.