hyatt : smfr: there's code that is trying to look for the <body> background [11:12am ]dethbakin : hyatt: yeah, that' a horrible hack [11:12am ]hyatt : smfr: and you do it by trying to grab the first child of the root renderer [11:13am ]hyatt : smfr: but there's a nice clean way to obtain the body renderer [11:13am ]smfr : hyatt: it's probably wrong; dino copied it from somewhere [11:13am ]hyatt : document()->body()->renderer() [11:13am ]smfr : k [11:13am ]hyatt : (body() can be 0 of course) [11:13am ]hyatt : smfr: it's perfectly legal to do this: [11:13am ]hyatt : <head style="display:block"> [11:13am ]hyatt : <title style="display:block">Yo [11:13am ]hyatt : </head> [11:13am ]hyatt : <body> [11:13am ]hyatt : Also yo [11:13am ]hyatt : so getting the firstChild is just wrong
Created attachment 121890 [details] Patch
Comment on attachment 121890 [details] Patch r=me
http://trac.webkit.org/changeset/104628