| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) | 4 * (C) 2000 Simon Hausmann (hausmann@kde.org) |
| 5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 6 * Copyright (C) 2004, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "core/dom/EventNames.h" | 34 #include "core/dom/EventNames.h" |
| 35 #include "core/html/HTMLFrameElementBase.h" | 35 #include "core/html/HTMLFrameElementBase.h" |
| 36 #include "core/html/parser/HTMLParserIdioms.h" | 36 #include "core/html/parser/HTMLParserIdioms.h" |
| 37 #include "core/page/Frame.h" | 37 #include "core/page/Frame.h" |
| 38 #include "core/page/FrameView.h" | 38 #include "core/page/FrameView.h" |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace WebCore { |
| 41 | 41 |
| 42 using namespace HTMLNames; | 42 using namespace HTMLNames; |
| 43 | 43 |
| 44 HTMLBodyElement::HTMLBodyElement(const QualifiedName& tagName, Document* documen
t) | 44 HTMLBodyElement::HTMLBodyElement(const QualifiedName& tagName, Document& documen
t) |
| 45 : HTMLElement(tagName, document) | 45 : HTMLElement(tagName, document) |
| 46 { | 46 { |
| 47 ASSERT(hasTagName(bodyTag)); | 47 ASSERT(hasTagName(bodyTag)); |
| 48 ScriptWrappable::init(this); | 48 ScriptWrappable::init(this); |
| 49 } | 49 } |
| 50 | 50 |
| 51 PassRefPtr<HTMLBodyElement> HTMLBodyElement::create(Document* document) | 51 PassRefPtr<HTMLBodyElement> HTMLBodyElement::create(Document& document) |
| 52 { | 52 { |
| 53 return adoptRef(new HTMLBodyElement(bodyTag, document)); | 53 return adoptRef(new HTMLBodyElement(bodyTag, document)); |
| 54 } | 54 } |
| 55 | 55 |
| 56 PassRefPtr<HTMLBodyElement> HTMLBodyElement::create(const QualifiedName& tagName
, Document* document) | 56 PassRefPtr<HTMLBodyElement> HTMLBodyElement::create(const QualifiedName& tagName
, Document& document) |
| 57 { | 57 { |
| 58 return adoptRef(new HTMLBodyElement(tagName, document)); | 58 return adoptRef(new HTMLBodyElement(tagName, document)); |
| 59 } | 59 } |
| 60 | 60 |
| 61 HTMLBodyElement::~HTMLBodyElement() | 61 HTMLBodyElement::~HTMLBodyElement() |
| 62 { | 62 { |
| 63 } | 63 } |
| 64 | 64 |
| 65 bool HTMLBodyElement::isPresentationAttribute(const QualifiedName& name) const | 65 bool HTMLBodyElement::isPresentationAttribute(const QualifiedName& name) const |
| 66 { | 66 { |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 } | 314 } |
| 315 | 315 |
| 316 void HTMLBodyElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const | 316 void HTMLBodyElement::addSubresourceAttributeURLs(ListHashSet<KURL>& urls) const |
| 317 { | 317 { |
| 318 HTMLElement::addSubresourceAttributeURLs(urls); | 318 HTMLElement::addSubresourceAttributeURLs(urls); |
| 319 | 319 |
| 320 addSubresourceURL(urls, document().completeURL(getAttribute(backgroundAttr))
); | 320 addSubresourceURL(urls, document().completeURL(getAttribute(backgroundAttr))
); |
| 321 } | 321 } |
| 322 | 322 |
| 323 } // namespace WebCore | 323 } // namespace WebCore |
| OLD | NEW |