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

Side by Side Diff: Source/core/html/HTMLFrameSetElement.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/HTMLFrameSetElement.h ('k') | Source/core/html/HTMLHRElement.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, 2009, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
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 25 matching lines...) Expand all
36 #include "core/html/HTMLDimension.h" 36 #include "core/html/HTMLDimension.h"
37 #include "core/html/HTMLFrameElement.h" 37 #include "core/html/HTMLFrameElement.h"
38 #include "core/loader/FrameLoaderClient.h" 38 #include "core/loader/FrameLoaderClient.h"
39 #include "core/page/Frame.h" 39 #include "core/page/Frame.h"
40 #include "core/rendering/RenderFrameSet.h" 40 #include "core/rendering/RenderFrameSet.h"
41 41
42 namespace WebCore { 42 namespace WebCore {
43 43
44 using namespace HTMLNames; 44 using namespace HTMLNames;
45 45
46 HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document* document) 46 HTMLFrameSetElement::HTMLFrameSetElement(const QualifiedName& tagName, Document& document)
47 : HTMLElement(tagName, document) 47 : HTMLElement(tagName, document)
48 , m_border(6) 48 , m_border(6)
49 , m_borderSet(false) 49 , m_borderSet(false)
50 , m_borderColorSet(false) 50 , m_borderColorSet(false)
51 , m_frameborder(true) 51 , m_frameborder(true)
52 , m_frameborderSet(false) 52 , m_frameborderSet(false)
53 , m_noresize(false) 53 , m_noresize(false)
54 { 54 {
55 ASSERT(hasTagName(framesetTag)); 55 ASSERT(hasTagName(framesetTag));
56 ScriptWrappable::init(this); 56 ScriptWrappable::init(this);
57 setHasCustomStyleCallbacks(); 57 setHasCustomStyleCallbacks();
58 } 58 }
59 59
60 PassRefPtr<HTMLFrameSetElement> HTMLFrameSetElement::create(const QualifiedName& tagName, Document* document) 60 PassRefPtr<HTMLFrameSetElement> HTMLFrameSetElement::create(const QualifiedName& tagName, Document& document)
61 { 61 {
62 return adoptRef(new HTMLFrameSetElement(tagName, document)); 62 return adoptRef(new HTMLFrameSetElement(tagName, document));
63 } 63 }
64 64
65 bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) con st 65 bool HTMLFrameSetElement::isPresentationAttribute(const QualifiedName& name) con st
66 { 66 {
67 if (name == bordercolorAttr) 67 if (name == bordercolorAttr)
68 return true; 68 return true;
69 return HTMLElement::isPresentationAttribute(name); 69 return HTMLElement::isPresentationAttribute(name);
70 } 70 }
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 Node* frameNode = children()->namedItem(name); 219 Node* frameNode = children()->namedItem(name);
220 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag)) 220 if (!frameNode || !frameNode->hasTagName(HTMLNames::frameTag))
221 return 0; 221 return 0;
222 Document* document = toHTMLFrameElement(frameNode)->contentDocument(); 222 Document* document = toHTMLFrameElement(frameNode)->contentDocument();
223 if (!document || !document->frame()) 223 if (!document || !document->frame())
224 return 0; 224 return 0;
225 return document->domWindow(); 225 return document->domWindow();
226 } 226 }
227 227
228 } // namespace WebCore 228 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLFrameSetElement.h ('k') | Source/core/html/HTMLHRElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698