| Summary: | Support multiple signatures of diagnostic logging. | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Jer Noble <jer.noble> | ||||||||||||||||||||
| Component: | New Bugs | Assignee: | Jer Noble <jer.noble> | ||||||||||||||||||||
| Status: | RESOLVED FIXED | ||||||||||||||||||||||
| Severity: | Normal | CC: | andersca, bweinstein, calvaris, commit-queue, darin, d-r, eric.carlson, esprehn+autocc, fmalita, glenn, gyuyoung.kim, japhet, pdr, philipj, schenney, sergio, webkit-bug-importer | ||||||||||||||||||||
| Priority: | P2 | Keywords: | InRadar | ||||||||||||||||||||
| Version: | 528+ (Nightly build) | ||||||||||||||||||||||
| Hardware: | Unspecified | ||||||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||||||
| Attachments: |
|
||||||||||||||||||||||
|
Description
Jer Noble
2014-11-13 01:02:04 PST
Created attachment 241477 [details]
Patch
I think this client should live on MainFrame instead of Page. Darin, what do you think? I agree. Almost anything new we think about adding to Page we could instead add to MainFrame. Frame/MainFrame doesn't seem to have the same kind of "client" infrastructure as page does. In fact, it looks like Page passes its own loaderClientForMainFrame into MainFrame when it creates it. Should MainFrame take a MainFrameClients struct (I guess passed into it inside of or part of PageClients) in its constructor? And what makes this all weirder is that WebPage is created first, then Page, then MainFrame, then WebFrame. So if a client is going to exist at construction time, it's got to be WebPage which creates it. We could have WebFrame set its client on MainFrame after they're all constructed, but that might result in logging messages getting dropped if we add logs which fire in between when Page is constructed and when WebFrame sets its clients on it. And WebFrame currently doesn't have any of its own clients. It's given a client by WebPage. So I guess I don't understand what makes MainFrame the best place to put these new clients? // FIXME: Rename this to PageConfiguration and move it to its own class.
struct PageClients { ... };
This would be a lot easier if that FIXME was fixed. As it is, the class-member-class PageClients can't be forward declared.
Created attachment 241592 [details]
Patch
Created attachment 241619 [details]
Patch
Attachment 241619 [details] did not pass style-queue:
ERROR: Source/WebCore/WebCore.exp.in:0: Source/WebCore/WebCore.exp.in should be sorted, use Tools/Scripts/sort-export-file script [list/order] [5]
Total errors found: 1 in 27 files
If any of these errors are false positives, please file a bug against check-webkit-style.
Created attachment 241624 [details]
Patch
Created attachment 241629 [details]
Patch
Created attachment 241634 [details]
Patch
Created attachment 241728 [details]
Patch
Created attachment 242091 [details]
Patch
Created attachment 242093 [details]
Patch
Committed r176499: <http://trac.webkit.org/changeset/176499> |