Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: Source/core/html/HTMLBodyElement.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/html/HTMLBodyElement.h ('k') | Source/core/html/HTMLButtonElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/core/html/HTMLBodyElement.h ('k') | Source/core/html/HTMLButtonElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698