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

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

Issue 66643004: Remove QualifiedName argument from most HTMLElement::create functions (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Hack for XML prefix Created 7 years, 1 month 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
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 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2006, 2009 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 14 matching lines...) Expand all
25 #include "core/html/HTMLFrameElement.h" 25 #include "core/html/HTMLFrameElement.h"
26 26
27 #include "HTMLNames.h" 27 #include "HTMLNames.h"
28 #include "core/html/HTMLFrameSetElement.h" 28 #include "core/html/HTMLFrameSetElement.h"
29 #include "core/rendering/RenderFrame.h" 29 #include "core/rendering/RenderFrame.h"
30 30
31 namespace WebCore { 31 namespace WebCore {
32 32
33 using namespace HTMLNames; 33 using namespace HTMLNames;
34 34
35 inline HTMLFrameElement::HTMLFrameElement(const QualifiedName& tagName, Document & document) 35 inline HTMLFrameElement::HTMLFrameElement(Document& document)
36 : HTMLFrameElementBase(tagName, document) 36 : HTMLFrameElementBase(frameTag, document)
37 , m_frameBorder(true) 37 , m_frameBorder(true)
38 , m_frameBorderSet(false) 38 , m_frameBorderSet(false)
39 { 39 {
40 ASSERT(hasTagName(frameTag));
41 ScriptWrappable::init(this); 40 ScriptWrappable::init(this);
42 } 41 }
43 42
44 PassRefPtr<HTMLFrameElement> HTMLFrameElement::create(const QualifiedName& tagNa me, Document& document) 43 PassRefPtr<HTMLFrameElement> HTMLFrameElement::create(Document& document)
45 { 44 {
46 return adoptRef(new HTMLFrameElement(tagName, document)); 45 return adoptRef(new HTMLFrameElement(document));
47 } 46 }
48 47
49 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&) 48 bool HTMLFrameElement::rendererIsNeeded(const RenderStyle&)
50 { 49 {
51 // For compatibility, frames render even when display: none is set. 50 // For compatibility, frames render even when display: none is set.
52 return isURLAllowed(); 51 return isURLAllowed();
53 } 52 }
54 53
55 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*) 54 RenderObject* HTMLFrameElement::createRenderer(RenderStyle*)
56 { 55 {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 m_frameBorderSet = !value.isNull(); 87 m_frameBorderSet = !value.isNull();
89 // FIXME: If we are already attached, this has no effect. 88 // FIXME: If we are already attached, this has no effect.
90 } else if (name == noresizeAttr) { 89 } else if (name == noresizeAttr) {
91 if (renderer()) 90 if (renderer())
92 renderer()->updateFromElement(); 91 renderer()->updateFromElement();
93 } else 92 } else
94 HTMLFrameElementBase::parseAttribute(name, value); 93 HTMLFrameElementBase::parseAttribute(name, value);
95 } 94 }
96 95
97 } // namespace WebCore 96 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698